[jboss-jira] [JBoss JIRA] (AS7-5770) EJB2 entity bean creation exceptions are wrapped with InvocationTargetException
Lucas Galfaso (JIRA)
jira-events at lists.jboss.org
Wed Oct 17 11:31:02 EDT 2012
[ https://issues.jboss.org/browse/AS7-5770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lucas Galfaso updated AS7-5770:
-------------------------------
Description:
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);
was:
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);
> 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);
--
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