2 Replies Latest reply on Apr 25, 2002 5:53 AM by Emmanuel Bonnet

    java.rmi.ServerException: null; nested exception is: java.la

    Rik de Groot Newbie

      Hi,

      I recently switch from Jboss 3.0 beta to the 3.0RC1.
      Everything deploys correctly, but when i try to create
      session bean in my JSP I get the following exception.
      The code executes in 3.0beta correct. Can anyone tell me what's wrong?

      Context Done
      Lookup Done
      truePollHandlerHome Done
      Lookup Done
      PollHome Done

      exeception:: java.rmi.ServerException: null; nested exception is: java.lang.NullPointerException

      ------

      // Get a naming context
      InitialContext jndiContext = new InitialContext();
      out.println("Context Done");
      Object ref = jndiContext.lookup("com.exxentic.functional.poll/PollHandler");
      out.println("Lookup Done");
      PollHandlerHome myPollHandlerHome = (PollHandlerHome) PortableRemoteObject.narrow(ref, PollHandlerHome.class);

      Rik de Groot.

      out.println((myPollHandlerHome instanceof PollHandlerHome) + "PollHandlerHome Done");
      PollHandler myPollHandler = myPollHandlerHome.create();
      out.println("PollHandler Done");