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!

        • 1. Re: METHOD NOT FOUND?!
          Dain Sundstrom Master

          Can you post a few more lines of the stack trace?

          This looks like you have a bad container configuration. Are you upgrading an application or messed with the jboss.xml file? If so, make sure you have all of the correct interceptors and such from the new JBoss 3.0 standardjboss.xml file. I assume you are using JBoss 3.0 (rc1) as you are talking about relationships.

          • 2. Re: METHOD NOT FOUND?!
            Emilio Numazaki Newbie

            Hi dsundstrom,

            The problem was just on the stubs,
            when I made a .jar, it tryied to get old classes instead of the most recent ones. So, the conf. its ok, and my problem too, anyway, thanks for your advice!