[jboss-jira] [JBoss JIRA] (WFLY-5907) NullPointerException during deployment with class level @EJB and lookup

Stuart Douglas (JIRA) issues at jboss.org
Sun Jan 31 16:31:00 EST 2016


     [ https://issues.jboss.org/browse/WFLY-5907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas updated WFLY-5907:
---------------------------------
    Summary: NullPointerException during deployment with class level @EJB and lookup  (was: NullPointerException during deployment ejb-ref with mappedName)


> NullPointerException during deployment with class level @EJB and lookup
> -----------------------------------------------------------------------
>
>                 Key: WFLY-5907
>                 URL: https://issues.jboss.org/browse/WFLY-5907
>             Project: WildFly
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 9.0.2.Final
>            Reporter: Marco Zanker
>            Assignee: Stuart Douglas
>
> If deploying a ejb3 SSB with a ejb reference to another bean (in my case an old ejb 2 SSB) with a mappedName-parameter, a NullPointerException occurs.
> @EJBs({
>   @EJB(name = "ejb/MyOldEJB2LocalHome", beanInterface=MyOldEJB2LocalHome.class, beanName="oldejb.jar#MyOldEJB2", mappedName = "oldejb/MyOldEJB2Local"),
>   })
> Caused by: java.lang.NullPointerException
>         at org.jboss.as.ejb3.deployment.processors.EjbResourceInjectionAnnotationProcessor.process(EjbResourceInjectionA
> nnotationProcessor.java:166)
>         at org.jboss.as.ejb3.deployment.processors.EjbResourceInjectionAnnotationProcessor.processClass(EjbResourceInjec
> tionAnnotationProcessor.java:146)
>         at org.jboss.as.ejb3.deployment.processors.EjbResourceInjectionAnnotationProcessor.deploy(EjbResourceInjectionAn
> notationProcessor.java:106)
>         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)
> Seems, if mappedName is declared, always a  NullPointerException occurs.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list