[jboss-jira] [JBoss JIRA] Updated: (JBMETA-207) NullPointerException during deployment of EJB3 methods with zero parameters
Magesh Kumar B (JIRA)
jira-events at lists.jboss.org
Tue Nov 24 04:54:30 EST 2009
[ https://jira.jboss.org/jira/browse/JBMETA-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Magesh Kumar B updated JBMETA-207:
----------------------------------
Workaround Description: Specify @RolesAllowed on each business method instead of at Class level
> NullPointerException during deployment of EJB3 methods with zero parameters
> ---------------------------------------------------------------------------
>
> Key: JBMETA-207
> URL: https://jira.jboss.org/jira/browse/JBMETA-207
> Project: JBoss Metadata
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 1.0.0.GA
> Environment: JBoss-5.1.0-GA, JDK 1.6.0_07-b06-153 (Apple/Sun JVM, 64-bit on OS/X), EJB3 w/ descriptor overrides
> Reporter: Zachary Bedell
> Assignee: Andrew Lee Rubinger
> Attachments: fixJBMETA207.patch
>
>
> Deploying an EJB3 based EAR results in an NPE with the below stack trace. The problem appears to manifest with EJB3's containing methods that take zero arguments. There are also XML descriptor based attributes for several of the metadata elements. To the best of my knowledge the descriptors only augment, not override anything specified in annotations.
> Patch for this should be trivial (an additional null check on line 83 of RolesAllowedProcessor.java should do it). I'm in the process of attempting to get JBMETA built from source and integrated into my stack. Will attach patch & tests unless someone beats me to it.
> The stack:
> 09:44:51,219 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfszip:/jboss/jboss-eap-5.0/server/ucmsfc/deploy/ucms.ear/ state=ClassLoader mode=Manual requiredState=PostClassLoader
> org.jboss.deployers.spi.DeploymentException: Cannot process metadata
> at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
> at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:181)
> at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:93)
> at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
> at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
> at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
> at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
> at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:59)
> at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
> at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:355)
> at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
> at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:310)
> at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:241)
> at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
> at org.jboss.Main.boot(Main.java:216)
> at org.jboss.Main$1.run(Main.java:546)
> at java.lang.Thread.run(Thread.java:637)
> Caused by: java.lang.NullPointerException
> at org.jboss.metadata.annotation.creator.ejb.jboss.RolesAllowedProcessor.process(RolesAllowedProcessor.java:83)
> at org.jboss.metadata.annotation.creator.ejb.jboss.RolesAllowedProcessor.process(RolesAllowedProcessor.java:48)
> at org.jboss.metadata.annotation.creator.AbstractProcessor.processClass(AbstractProcessor.java:215)
> at org.jboss.metadata.annotation.creator.AbstractProcessor.processClass(AbstractProcessor.java:172)
> at org.jboss.metadata.annotation.creator.ejb.jboss.AbstractEnterpriseBeanProcessor.process(AbstractEnterpriseBeanProcessor.java:151)
> at org.jboss.metadata.annotation.creator.ejb.jboss.AbstractEnterpriseBeanProcessor.process(AbstractEnterpriseBeanProcessor.java:94)
> at org.jboss.metadata.annotation.creator.ejb.jboss.AbstractEnterpriseBeanProcessor.process(AbstractEnterpriseBeanProcessor.java:52)
> at org.jboss.metadata.annotation.creator.AbstractCreator.process(AbstractCreator.java:154)
> at org.jboss.metadata.annotation.creator.AbstractCreator.processMetaData(AbstractCreator.java:87)
> at org.jboss.metadata.annotation.creator.ejb.jboss.JBoss50Creator.create(JBoss50Creator.java:109)
> at org.jboss.deployment.OptAnnotationMetaDataDeployer.processJBossMetaData(OptAnnotationMetaDataDeployer.java:134)
> at org.jboss.deployment.OptAnnotationMetaDataDeployer.processMetaData(OptAnnotationMetaDataDeployer.java:84)
> at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:177)
> ... 31 more
--
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