4 Replies Latest reply on Nov 4, 2003 12:34 PM by Vijay Kandy

    Return reference to another session bean

    Vijay Kandy Newbie

      Hello,

      Can a stateless session bean have a method that can lookup, create and return a reference to a stateful session bean?

      When I try to do that, I get this stack trace:
      java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      java.rmi.ServerException: RuntimeException; nested exception is:
      java.lang.NullPointerException
      java.rmi.ServerException: RuntimeException; nested exception is:
      java.lang.NullPointerException
      java.lang.NullPointerException
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)

      Can someone help?

      Thanks.