1 Reply Latest reply on Dec 2, 2002 8:58 PM by 807581

    Exception in creating new bean (Session EJB calling CMP Entity EJB)

    807581
      Hi All,

      I am having following senerio with Sun One Application Server 7 on Win 2000.

      UserCARegistrationBean (Java Client) -> RegistrationBean (Session EJB) -> UserCABean (CMP Entity EJB)

      The Java Client lookup and invokes Session EJB. It works fine.
      Further, when the Session EJB calls the Entity EJB I get the following below.

      Any idea what could be wrong?

      Thanks for the help.

      Regards
      Satish

      ------ Exception Trace -------
      SEVERE: EJB5032: Exception in creating new bean : [{0}]
      java.lang.NullPointerException

      at it.eng.securitymanager.userca.ejb.UserCABean_1633242272_ConcreteImpl.jdoLookupPersistenceManagerFactory(UserCABean_1633242272_ConcreteImpl.java:1187)

      at it.eng.securitymanager.userca.ejb.UserCABean_1633242272_ConcreteImpl.setEntityContext(UserCABean_1633242272_ConcreteImpl.java:1219)
      at com.sun.ejb.containers.EntityContainer$EntityContextFactory.create(EntityContainer.java:2599)
      at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:176)
      at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:133)
      at com.sun.ejb.containers.EntityContainer.getPooledEJB(EntityContainer.java:1896)
      at com.sun.ejb.containers.EntityContainer.getContext(EntityContainer.java:560)
      at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
      at it.eng.securitymanager.userca.ejb.UserCABean_1633242272_ConcreteImpl_RemoteHomeImpl.create(UserCABean_1633242272_ConcreteImpl_RemoteHomeImpl.java:28)

      at it.eng.securitymanager.userca.ejb._UserCAHome_Stub.create(Unknown Source)
      at it.eng.securitymanager.registration.ejb.RegistrationBean.registerCA(RegistrationBean.java:81)
      at it.eng.securitymanager.registration.ejb.RegistrationBean_EJBObjectImpl.registerCA(RegistrationBean_EJBObjectImpl.java:52)
      at it.eng.securitymanager.registration.ejb._Registration_Stub.registerCA(Unknown Source)
      at it.eng.securitymanager.registration.client.UserCARegistrationBean.register(UserCARegistrationBean.java:94)
      at jasper.SecurityManager._userregistration._ca._Registration_jsp._jspService(_Registration_jsp.java:105)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
      at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
      at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
      at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
      at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
      at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

      SEVERE: EJB5017: Exception while running preinvoke : ejbName = [UserCABean]
      SEVERE:
      javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
      java.lang.NullPointerException
      at it.eng.securitymanager.userca.ejb.UserCABean_1633242272_ConcreteImpl.jdoLookupPersistenceManagerFactory(UserCABean_1633242272_ConcreteImpl.java:1187)

      at it.eng.securitymanager.userca.ejb.UserCABean_1633242272_ConcreteImpl.setEntityContext(UserCABean_1633242272_ConcreteImpl.java:1219)
      at com.sun.ejb.containers.EntityContainer$EntityContextFactory.create(EntityContainer.java:2599)
      at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:176)
      at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:133)
      at com.sun.ejb.containers.EntityContainer.getPooledEJB(EntityContainer.java:1896)
      at com.sun.ejb.containers.EntityContainer.getContext(EntityContainer.java:560)
      at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
      at it.eng.securitymanager.userca.ejb.UserCABean_1633242272_ConcreteImpl_RemoteHomeImpl.create(UserCABean_1633242272_ConcreteImpl_RemoteHomeImpl.java:28)

      at it.eng.securitymanager.userca.ejb._UserCAHome_Stub.create(Unknown Source)
      at it.eng.securitymanager.registration.ejb.RegistrationBean.registerCA(RegistrationBean.java:81)
      at it.eng.securitymanager.registration.ejb.RegistrationBean_EJBObjectImpl.registerCA(RegistrationBean_EJBObjectImpl.java:52)
      at it.eng.securitymanager.registration.ejb._Registration_Stub.registerCA(Unknown Source)
      at it.eng.securitymanager.registration.client.UserCARegistrationBean.register(UserCARegistrationBean.java:94)
      at jasper.SecurityManager._userregistration._ca._Registration_jsp._jspService(_Registration_jsp.java:105)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
      at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
      at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
      at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
      at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
      at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
      javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
      at com.sun.ejb.containers.EntityContainer$EntityContextFactory.create(EntityContainer.java:2607)
      at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:176)
      at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:133)
      at com.sun.ejb.containers.EntityContainer.getPooledEJB(EntityContainer.java:1896)
      at com.sun.ejb.containers.EntityContainer.getContext(EntityContainer.java:560)
      at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
      at it.eng.securitymanager.userca.ejb.UserCABean_1633242272_ConcreteImpl_RemoteHomeImpl.create(UserCABean_1633242272_ConcreteImpl_RemoteHomeImpl.java:28)

      at it.eng.securitymanager.userca.ejb._UserCAHome_Stub.create(Unknown Source)
      at it.eng.securitymanager.registration.ejb.RegistrationBean.registerCA(Registra
      WARNING: CORE3283: stderr: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      WARNING: CORE3283: stderr: java.rmi.RemoteException: nested exception is: java.lang.NullPointerException; nested exception is:
      WARNING: CORE3283: stderr: java.lang.NullPointerException
      WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.wrapException(Util.java:364)
      WARNING: CORE3283: stderr: at javax.rmi.CORBA.Util.wrapException(Util.java:277)
      WARNING: CORE3283: stderr: at it.eng.securitymanager.userca.ejb._UserCAHome_Stub.create(Unknown Source)
      WARNING: CORE3283: stderr: at it.eng.securitymanager.registration.ejb.RegistrationBean.registerCA(RegistrationBean.java:81)
      WARNING: CORE3283: stderr: at it.eng.securitymanager.registration.ejb.RegistrationBean_EJBObjectImpl.registerCA(RegistrationBean_EJBObjectImpl.java:52)
      WARNING: CORE3283: stderr: at it.eng.securitymanager.registration.ejb._Registration_Stub.registerCA(Unknown Source)
      WARNING: CORE3283: stderr: at it.eng.securitymanager.registration.client.UserCARegistrationBean.register(UserCARegistrationBean.java:94)
      WARNING: CORE3283: stderr: at jasper.SecurityManager._userregistration._ca._Registration_jsp._jspService(_Registration_jsp.java:105)
      WARNING: CORE3283: stderr: at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      WARNING: CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      WARNING: CORE3283: stderr: at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
      WARNING: CORE3283: stderr: at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
      WARNING: CORE3283: stderr: at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
      WARNING: CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
      WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
      WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
      WARNING: CORE3283: stderr: at java.security.AccessController.doPrivileged(Native Method)
      WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
      WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
      WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
      WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      WARNING: CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
      WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
      WARNING: CORE3283: stderr: Caused by: java.rmi.RemoteException: nested exception is: java.lang.NullPointerException; nested exception is:
      WARNING: CORE3283: stderr: java.lang.NullPointerException
      WARNING: CORE3283: stderr: at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:451)
      WARNING: CORE3283: stderr: at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:545)
      WARNING: CORE3283: stderr: at it.eng.securitymanager.userca.ejb.UserCABean_1633242272_ConcreteImpl_RemoteHomeImpl.create(UserCABean_1633242272_ConcreteImpl_RemoteHomeImpl.java:36)
      WARNING: CORE3283: stderr: at it.eng.securitymanager.userca.ejb._UserCAHome_Stub.create(Unknown Source)
      WARNING: CORE3283: stderr: ... 23 more
      WARNING: CORE3283: stderr: Caused by: java.lang.NullPointerException
      WARNING: CORE3283: stderr: at it.eng.securitymanager.userca.ejb.UserCABean_1633242272_ConcreteImpl.jdoLookupPersistenceManagerFactory(UserCABean_1633242272_ConcreteImpl.java:1187)
      WARNING: CORE3283: stderr: at it.eng.securitymanager.userca.ejb.UserCABean_1633242272_ConcreteImpl.setEntityContext(UserCABean_1633242272_ConcreteImpl.java:1219)
      WARNING: CORE3283: stderr: at com.sun.ejb.containers.EntityContainer$Entity
      ContextFactory.create(EntityContainer.java:2599)
      WARNING: CORE3283: stderr: at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:176)
      WARNING: CORE3283: stderr: at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:133)
      WARNING: CORE3283: stderr: at com.sun.ejb.containers.EntityContainer.getPooledEJB(EntityContainer.java:1896)
      WARNING: CORE3283: stderr: at com.sun.ejb.containers.EntityContainer.getContext(EntityContainer.java:560)
      WARNING: CORE3283: stderr: at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
      WARNING: CORE3283: stderr: at it.eng.securitymanager.userca.ejb.UserCABean_1633242272_ConcreteImpl_RemoteHomeImpl.create(UserCABean_1633242272_ConcreteImpl_RemoteHomeImpl.java:28)
      WARNING: CORE3283: stderr: ... 24 more
      ------ Exception Trace End -------