3 Replies Latest reply on Aug 15, 2003 10:45 PM by Sethuramalingam Vijayakumar

    NullPointerException on LocalHomeProxy.invoke(...)

    steffenboehme Newbie

      Hi,

      i have a problem when i try to create or find a EntityBean and don't know, how i can find the mistake (not only how to find ... generally how to find :-( ...

      the following code is a part of a little client-app which should only create a new Bean ... but when the method "create" or "findByPrimaryKey" is executed, then i get the short message about the NullPointerException during the invoke-Method of the LocalHomeProxy-class.
      There is nothing about where the exception occurs (ok, the line-number in my app is there, but the exception comes from the server side, right!? but i don't know, where it occurs and i don't know, how to solve this problem ...

      The code is attached (i could not post it!) ...

      The exception is the following:

      java.lang.NullPointerException
      at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
      at $Proxy0.create(Unknown Source)
      at de.boemm.ejb.family.clients.PersonClient.main(PersonClient.java:42)
      personHome = (PersonHome) initialContext.lookup("local/PersonEJB");

      it's very short ... it says me nothing :-(

      Can somebody help me!?

      tnx
      Steffen