NullPointerException Creating a Session EJB in OC4J Using LDAP UserManager (Doc ID 292267.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Containers for J2EE - Version: 9.0.4.1.0
This problem can occur on any platform.

Symptoms

EJB application containing a servlet and SLSB.
Servlet creates an instance of the ejb and calls it's business method.
When the container, in which this application is deployed, is set to use LDAP as the UserManager,
the application throws NullPointerException while creating the bean instance.

java.lang.NullPointerException
at SampleEJBHome_StatelessSessionHomeWrapper1.create(SampleEJBHome_StatelessSessi
onHomeWrapper1.java:39)
at bcc.idiv.ait.TestSampleEJB.init(TestSampleEJB.java:28)
at com.evermind[Oracle Application Server Containers for J2EE 10g(9.0.4.1.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2130)
at com.evermind[Oracle Application Server Containers for J2EE 10g(9.0.4.1.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4560)
at com.evermind[Oracle Application Server Containers for J2EE 10g(9.0.4.1.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2598)
at com.evermind[Oracle Application Server Containers for J2EE 10g(9.0.4.1.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:643)
at com.evermind[Oracle Application Server Containers for J2EE 10g(9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind[Oracle Application Server Containers for J2EE 10g(9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind[Oracle Application Server Containers for J2EE 10g(9.0.4.1.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:536)

This error occurs even though the application as such is not configured for any kind of authentication.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms