[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1430) Cannot use @Service startup beans : java.lang.RuntimeException: Call setBeanContext, not setTargetObject

Scott McNab (JIRA) jira-events at lists.jboss.org
Thu Sep 18 04:42:22 EDT 2008


    [ https://jira.jboss.org/jira/browse/EJBTHREE-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12430142#action_12430142 ] 

Scott McNab commented on EJBTHREE-1430:
---------------------------------------

I can confirm that this issue is still present in JBossAS 5.0.0.CR2:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=142511


> Cannot use @Service startup beans : java.lang.RuntimeException: Call setBeanContext, not setTargetObject
> --------------------------------------------------------------------------------------------------------
>
>                 Key: EJBTHREE-1430
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1430
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: core
>    Affects Versions: AS 5.0.0.CR1
>            Reporter: David Causse
>            Assignee: Carlo de Wolf
>            Priority: Critical
>             Fix For: HEAD
>
>
> A working Beta4 EJB3 application is broken with CR1.
> A RuntimeException appears when my @Service bean is loaded.
> The root cause is :
> Caused by: java.lang.RuntimeException: Call setBeanContext, not setTargetObject
> 	at org.jboss.ejb3.interceptors.container.ContainerMethodInvocation.setTargetObject(ContainerMethodInvocation.java:120)
> 	at org.jboss.ejb3.service.ServiceContainer.populateInvocation(ServiceContainer.java:473)
> 	at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:371)
> 	at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:343)
> 	at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:215)
> This seems to be related to JBAS-5477.
> I have 
> @Management
> public interface StartupMgmt {...}
> and 
> @Service
> public class Startup implements StartupMgmt {
> 	   void create() throws Exception;
> 	   void start() throws Exception;
> 	   void stop() throws Exception;
> 	   void destroy();
> }

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

        



More information about the jboss-jira mailing list