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: EJB3_1 1.0.5, Plugin 1.0.19, 1.1.22
Reporter: jaikiran pai
Assignee: jaikiran pai
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