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

jaikiran pai (JIRA) jira-events at lists.jboss.org
Wed Oct 17 10:48:01 EDT 2012


    [ https://issues.jboss.org/browse/AS7-5770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727281#comment-12727281 ] 

jaikiran pai commented on AS7-5770:
-----------------------------------

Can you also please post the exception stacktrace that you are seeing and if possible a sample application reproducing this?

                
> 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: Feature Request
>          Components: EJB
>    Affects Versions: 7.1.1.Final
>         Environment: Mac OSX, Java 7
>            Reporter: Lucas Galfaso
>            Assignee: jaikiran pai
>
> 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)ejbCreate.invoke(instance.getInstance(), 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