2 Replies Latest reply on Apr 29, 2002 10:01 AM by Emilio Numazaki


    Emilio Numazaki Newbie

      Hi people!

      I'm having the following problem:
      My entity bean has a relationship as described below:
      Entity01 - Entity02
      Its a one to many relationship, each bean has their attributes, and Entity02 has an attribute that identifies
      the master bean (Entity01).
      Entity01 has two methods to manage all DetailObjects (using local interfaces):

      public Collection getEntities02()
      public void setEntities02(Collection entity02)

      These methods are local. so I created two methods working just like a facade to local methods, as follow:

      public Collection getEntity02(String pk);
      public void setEntity02(Collection entity02);

      where each Collection has the Entity's02 attributes.

      Ok, these last methods are declared in the remote interface, but I'm getting an Exception as follow:

      11:47:05,158 ERROR [JRMPInvoker] operation failed
      java.lang.NullPointerException: METHOD IS NOT FOUND: 175590682612627051
      at org.jboss.invocation.MarshalledInvocation.getMethod(MarshalledInvocation.java:255)

      this exception happens when I try to invoke the method setEntity02(zzz) from the remote interface.

      whats going on!?

      Its good to remember that any method implemented on ejb-jar class are declared in the local and remote interface,
      throws this exception.

      thanks for any advice!