[jboss-jira] [JBoss JIRA] Resolved: (JBAS-5477) Ejb3Deployer does not create DeploymentScope for DeploymentUnit with no parent

Scott M Stark (JIRA) jira-events at lists.jboss.org
Thu Apr 24 07:15:15 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBAS-5477?page=all ]

Scott M Stark resolved JBAS-5477.
---------------------------------

    Resolution: Done

Its past the NPE and trying to install the mbeans, but there is a problem with an internal api change causing a failure now.

04:07:04,173 ERROR [STDERR] Caused by: java.lang.RuntimeException: Call setBeanContext, not setTargetObject
04:07:04,173 ERROR [STDERR] 	at org.jboss.ejb3.interceptors.container.ContainerMethodInvocation.setTargetObject(ContainerMethodInvocation.java:120)
04:07:04,173 ERROR [STDERR] 	at org.jboss.ejb3.service.ServiceContainer.populateInvocation(ServiceContainer.java:473)
04:07:04,173 ERROR [STDERR] 	at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:371)
04:07:04,174 ERROR [STDERR] 	at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:343)
04:07:04,174 ERROR [STDERR] 	at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:215)
04:07:04,174 ERROR [STDERR] 	... 62 more


> Ejb3Deployer does not create DeploymentScope for DeploymentUnit with no parent
> ------------------------------------------------------------------------------
>
>                 Key: JBAS-5477
>                 URL: http://jira.jboss.com/jira/browse/JBAS-5477
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB3
>            Reporter: Andrew Lee Rubinger
>         Assigned To: Scott M Stark
>            Priority: Blocker
>             Fix For: JBossAS-5.0.0.CR1
>
>         Attachments: service-test.jar
>
>
> Revision 72296:
> http://fisheye.jboss.org/browse/JBossAS/trunk/ejb3/src/main/org/jboss/ejb3/deployers/Ejb3Deployer.java?r1=71162&r2=72296
> ...has made the change that a null scope is passed into the ctor of Ejb3JBoss5Deployment, causing an NPE later down the chain:
> Caused by: java.lang.NullPointerException
>         at org.jboss.ejb3.deployers.JBoss5DeploymentScope.getEjbContainer(JBoss5DeploymentScope.java:155)
>         at org.jboss.ejb3.Ejb3Deployment.getEjbContainer(Ejb3Deployment.java:388)
>         at org.jboss.ejb3.EJBContainer.resolveEjbContainer(EJBContainer.java:1320)
> ...etc
> I'd tried setting:
>    scope = new JBoss5DeploymentScope(unit);
> ...in the case that parent==null, but this leads to deployment errors of other services on Startup.  Additionally,
>    unit.getAttachment(DeploymentScope.class)
> ...returns null.
> To test, run the "service" integration tests from the EJB3 TestSuite. 

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

        



More information about the jboss-jira mailing list