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

    Client  Exception - java.lang.NullPointerException

    Prakash Newbie

      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);

      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
      Prakash K.B.