[jboss-jira] [JBoss JIRA] Updated: (EJBTHREE-2038) NPE while looking up java:comp/EJBContext in @PostConstruct method

Carlo de Wolf (JIRA) jira-events at lists.jboss.org
Wed Mar 10 06:08:38 EST 2010


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

Carlo de Wolf updated EJBTHREE-2038:
------------------------------------

    Fix Version/s: as-int 1.1.23
                   EJB3_1 1.0.6
         Priority: Critical  (was: Major)


> NPE while looking up java:comp/EJBContext in @PostConstruct method
> ------------------------------------------------------------------
>
>                 Key: EJBTHREE-2038
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-2038
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1.22, Plugin 1.0.19, EJB3_1 1.0.5
>            Reporter: jaikiran pai
>            Assignee: jaikiran pai
>            Priority: Critical
>             Fix For: as-int 1.1.23, EJB3_1 1.0.6
>
>
> When java:comp/EJBContext is looked up in a method marked @PostConstruct of a bean, a NullPointerException is thrown from EJBContextFactory:
> Caused by: java.lang.NullPointerException
> 	at org.jboss.ejb3.EJBContextFactory.getObjectInstance(EJBContextFactory.java:57)
> 	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
> 	at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483)
> 	at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500)
> 	... 70 more
> Please see the referenced forum thread for complete details. I was able to reproduce this issue with a SFSB too, so it's not specific to MDBs. 

-- 
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