[jbossseam-issues] [JBoss JIRA] Resolved: (JBSEAM-1176) Allow entity bean to have protected empty constructor

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Apr 13 11:17:58 EDT 2007

     [ http://jira.jboss.com/jira/browse/JBSEAM-1176?page=all ]

Pete Muir resolved JBSEAM-1176.

    Fix Version/s: 1.3.0.BETA1
       Resolution: Done

I've committed a fix to CVS for this, but I'm not sure how to reproduce.  Could you test for me?

> Allow entity bean to have protected empty constructor
> -----------------------------------------------------
>                 Key: JBSEAM-1176
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1176
>             Project: JBoss Seam
>          Issue Type: Bug
>    Affects Versions: 1.2.1.GA
>         Environment: JBoss 4.0.5
>            Reporter: c_inconnu
>         Assigned To: Pete Muir
>             Fix For: 1.3.0.BETA1
> EJB3 spec allows entities with protected constructor, then Seam should do too. For example, with a User class having a protected empty constructor, we end up with :
> Error Rendering View[/register.xhtml]
> org.jboss.seam.InstantiationException: Could not instantiate Seam component: user
>         at org.jboss.seam.Component.newInstance(Component.java:1740)
>         at org.jboss.seam.Component.getInstance(Component.java:1643)
>         at org.jboss.seam.Component.getInstance(Component.java:1610)
>         at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:53)
>        .........
> The forum thread : http://www.jboss.com/index.html?module=bb&op=viewtopic&t=106115

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list