2 Replies Latest reply on Sep 30, 2005 4:23 AM by Chetan Aggarwal

    ejbhandle.getEJBObject() in JBOSS 4.0.2 throwing NullPointer

    Chetan Aggarwal Newbie

      Hi all,

      I am using ejbHandle.getEJBObject() method in my code as follows:

      MySession mysession = (MySession) ejbHandle.getEJBObject();

      where MySession is a stateful bean.

      This code was working in 4.0.1 version but it is not working in 4.0.2.

      Its throwing NullPointerException .

      Please help.

      Thanks and regards
      Chetan

        • 1. Re: ejbhandle.getEJBObject() in JBOSS 4.0.2 throwing NullPoi
          Darran Lofthouse Master

          Could you actualy post the exception with stack trace, the name of the exception alone is not enough information to see what is happening!

          • 2. Re: ejbhandle.getEJBObject() in JBOSS 4.0.2 throwing NullPoi
            Chetan Aggarwal Newbie

            Hi,

            java.rmi.RemoteException: Error during getEJBObject; nested exception is:
            java.lang.NullPointerException

            at org.jboss.proxy.ejb.handle.StatefulHandleImpl.getEJBObject(StatefulHandleImpl.java:172)

            at com.adp.ebs.flt.client.requests.AuthenticateRequest.executeService(AuthenticateRequest.java:105)

            at com.adp.ebs.flt.client.framework.FLTClientManager.authenticate(FLTClientManager.java:108)

            at com.adp.ebs.flt.client.fltscreen.LoginDialog.login(LoginDialog.java:269)


            Caused by: java.lang.NullPointerException

            at org.jboss.security.jndi.LoginInitialContextFactory.getInitialContext(LoginInitialContextFactory.java:64)

            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)

            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)

            at javax.naming.InitialContext.init(InitialContext.java:219)

            at javax.naming.InitialContext.(InitialContext.java:175)

            at org.jboss.proxy.ejb.handle.StatefulHandleImpl.getEJBObject(StatefulHandleImpl.java:159)

            ... 32 more



            Please suggest something
            Thanks and regards,
            chetan