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

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

    synotix

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

        • 1. Re: java.rmi.ServerException: null; nested exception is: jav
          will.houck

          I'm also having the same problem from a jsp custom tag. Can anyone help or at least confirm that this is a bug?

          • 2. Re: java.rmi.ServerException: null; nested exception is: jav
            emmanuel_bonnet

            I have the same pb and same message.
            My conf is PC NT4 SP6.

            The code looks all right and looks like yours
            --------------------------------------
            QuoteHandlerHome home = getHome();
            quoteHandler = home.create();

            ....
            ....

            public static QuoteHandlerHome getHome() throws NamingException
            {
            InitialContext initialContext = new InitialContext();
            try
            {
            Object objRef = initialContext.lookup(QuoteHandlerHome.JNDI_NAME);
            QuoteHandlerHome home = (QuoteHandlerHome)PortableRemoteObject.narrow(objRef, QuoteHandlerHome.class);
            return home;
            }
            finally
            {
            initialContext.close();
            }
            }
            -------------------------------------------------