1 Reply Latest reply on Mar 19, 2002 6:15 AM by prakash_kbp

    Client  Exception - java.lang.NullPointerException

    prakash_kbp

      Hello friends,
      I had deployed a simple session bean which has method that displays simple text. For testing purpose, I had succesfully Deployed the same on BAS, Oracle9iAS, WebLogic & WebSphere App Servers..
      With JBoss, even very simple for deployment (copy paste ! thanks to JBoss deveopers).
      But getting java.lang.NullPointerException from client.
      Home interface getting properly, remote method also creating.
      Here is the code I am using for Client -

      Context ctx = new InitialContext();
      Object ref = ctx.lookup("test/testQryClass");
      System.out.println("Lookup Done");
      testQryClassHome qryObject = (testQryClassHome) PortableRemoteObject.narrow(ref, testQryClassHome.class);
      System.out.println("Home interface Done");
      testQryClass qry=qryObject.create();
      System.out.println("Remote Creation Done ..: "+qry);
      qry.dispText();

      Here is the Client O/P -

      Lookup Done
      Home interface Done
      Remote Creation Done ..: test/testQryClass:Stateless
      Exception Occur : null
      Exception : java.lang.NullPointerException

      Any suggestion/clue to solve this problem will be helpful
      thanks
      Prakash K.B.