[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-1430) Cannot use @Service startup beans : java.lang.RuntimeException: Call setBeanContext, not setTargetObject
Carlo de Wolf (JIRA)
jira-events at lists.jboss.org
Mon Sep 29 06:28:23 EDT 2008
[ https://jira.jboss.org/jira/browse/EJBTHREE-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carlo de Wolf resolved EJBTHREE-1430.
-------------------------------------
Fix Version/s: 1.0.0-Beta4
(was: HEAD)
Resolution: Done
> 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: 1.0.0-Beta4
>
>
> 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