[jboss-jira] [JBoss JIRA] (AS7-5770) EJB2 entity bean creation exceptions are wrapped with InvocationTargetException

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Fri Nov 9 13:05:18 EST 2012


     [ https://issues.jboss.org/browse/AS7-5770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated AS7-5770:
----------------------------------

    Fix Version/s: 7.1.4.Final (EAP)

    
> EJB2 entity bean creation exceptions are wrapped with InvocationTargetException
> -------------------------------------------------------------------------------
>
>                 Key: AS7-5770
>                 URL: https://issues.jboss.org/browse/AS7-5770
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.1.1.Final
>         Environment: Mac OSX, Java 7
>            Reporter: Lucas Galfaso
>            Assignee: Maas van den Berg
>             Fix For: 7.2.0.Alpha1, 7.1.4.Final (EAP)
>
>
> When ejbCreate throws an exception, the exception is wrapped in InvocationTargetException. The root cause looks like it is at
> CmpEntityBeanEjbCreateMethodInterceptorFactory::invokeEjbCreate
> and the line
> ejbCreate.invoke(instance.getInstance(), params);
> this class overrided this method from EntityBeanEjbCreateMethodInterceptorFactory that does handle this case, so it might be possible to just replace this line with
> super.invokeEjbCreate(context, ejbCreate, instance, params);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list