0 Replies Latest reply on Feb 1, 2005 3:29 PM by Eric Townsley

    New Method Add Problem

    Eric Townsley Newbie

      We have an existing EJB running under JBoss 4.0.1 from the binary
      distribution. We tried to add a method to the EJB and would receive an
      illegalstate exception in the client. In looking at the debug messages
      we never saw the new method show up in the list of methods mapped by
      SessionContainer.java. Below is the debug output, the missing method we
      added is SetOnCallForReSync. We know the method is there, we did a
      decompile with BCEL.

      To debug the problem we got the JBoss 4.0.1 source, and added some
      additional debug statements to SessionContainer.java and Container.java
      and recompiled Jboss only, not the EJB. The EJB worked correctly with
      our compiled copy, see the debug statements below. The bottom line is
      the binary distribution fails and our compiled one works with or with
      out the additional debug statements. We compiled on a SuSE 9.1 pro with
      the Sun JDK 1.4.2_04.

      We did not have these issues when we re-tested with JBoss 3.2.5. Also I
      found a similar issue for JBoss 4.0.0 at this URL

      http://junlu.com/msg/121655.html

      Any ideas on what the root problem might be?

      Debug from the binary distribution:

      2005-01-31 14:23:35,236 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Creating
      jboss.j2ee:jndiName=com.dstsystems.DSTTaMaint.DSTTaMaintEJB,service=EJB
      2005-01-31 14:23:35,241 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped DefineGroup HASH -1377581643to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.DefineGroup(java.lang.String,java.util.Vector,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,242 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped DeleteGroup HASH -1251569755to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.DeleteGroup(java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,243 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ListGroup HASH -2022220624to public java.util.Vector
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ListGroup(java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,244 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ModifyGroup HASH -1957499628to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ModifyGroup(java.lang.String,java.util.Vector,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,245 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ListGroups HASH -576352029to public java.util.Vector
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ListGroups(java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,246 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped QueryHumanoid HASH 291238548to public
      com.dstsystems.DSTTaMaint.QueryHumanoidResult
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.QueryHumanoid(java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,247 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped DefineHumanoid HASH 2139698345to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.DefineHumanoid(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,249 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped DeleteHumanoid HASH -1065842503to public java.util.Vector
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.DeleteHumanoid(java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,250 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ListPagerServices HASH -331065870to public java.util.Vector
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ListPagerServices(java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,251 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ReNameHumanoid HASH 1908394954to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ReNameHumanoid(java.lang.String,java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,252 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ListHumanoids HASH 1138756521to public java.util.Vector
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ListHumanoids(java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,253 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped SetOnCall HASH 956833646to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.SetOnCall(java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-01-31 14:23:35,254 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped Container method remove HASH -1842617161
      2005-01-31 14:23:35,259 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped Container method getHandle HASH 1182305581
      2005-01-31 14:23:35,260 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped Container method getEJBHome HASH -993218923
      2005-01-31 14:23:35,261 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped Container method getPrimaryKey HASH -131865408
      2005-01-31 14:23:35,261 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped Container method isIdentical HASH 285457048
      2005-01-31 14:23:35,262 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapping create
      2005-01-31 14:23:35,263 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapping remove
      2005-01-31 14:23:35,264 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapping remove
      2005-01-31 14:23:35,265 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapping getEJBMetaData
      2005-01-31 14:23:35,265 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapping getHomeHandle


      Debug from source compiled:

      2005-02-01 09:40:50,100 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Creating
      jboss.j2ee:jndiName=com.dstsystems.DSTTaMaint.DSTTaMaintEJB,service=EJB
      2005-02-01 09:40:50,100 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      DST:removeInterface name com.dstsystems.DSTTaMaint.DSTTaMaintEJB
      2005-02-01 09:40:50,152 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped DefineGroup HASH -1377581643to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.DefineGroup(java.lang.String,java.util.Vector,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,153 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped DeleteGroup HASH -1251569755to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.DeleteGroup(java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,154 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ListGroup HASH -2022220624to public java.util.Vector
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ListGroup(java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,155 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ModifyGroup HASH -1957499628to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ModifyGroup(java.lang.String,java.util.Vector,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,156 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ListGroups HASH -576352029to public java.util.Vector
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ListGroups(java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,157 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped QueryHumanoid HASH 291238548to public
      com.dstsystems.DSTTaMaint.QueryHumanoidResult
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.QueryHumanoid(java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,158 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped DefineHumanoid HASH 2139698345to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.DefineHumanoid(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,159 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped DeleteHumanoid HASH -1065842503to public java.util.Vector
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.DeleteHumanoid(java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,161 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ListPagerServices HASH -331065870to public java.util.Vector
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ListPagerServices(java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,162 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ReNameHumanoid HASH 1908394954to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ReNameHumanoid(java.lang.String,java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,163 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped ListHumanoids HASH 1138756521to public java.util.Vector
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.ListHumanoids(java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,164 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped SetOnCallForReSync HASH -765546423to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.SetOnCallForReSync(java.lang.String,java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,165 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped SetOnCall HASH 956833646to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.SetOnCall(java.lang.String,java.lang.String)
      throws javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,166 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped Bovine HASH -592629434to public java.lang.String
      com.dstsystems.DSTTaMaint.DSTTaMaintBean.Bovine(java.lang.String) throws
      javax.ejb.EJBException,java.rmi.RemoteException
      2005-02-01 09:40:50,167 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped Container method remove HASH -1842617161
      2005-02-01 09:40:50,168 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped Container method getHandle HASH 1182305581
      2005-02-01 09:40:50,169 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped Container method getEJBHome HASH -993218923
      2005-02-01 09:40:50,170 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped Container method getPrimaryKey HASH -131865408
      2005-02-01 09:40:50,170 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapped Container method isIdentical HASH 285457048
      2005-02-01 09:40:50,171 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapping create
      2005-02-01 09:40:50,172 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapping remove
      2005-02-01 09:40:50,173 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapping remove
      2005-02-01 09:40:50,173 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapping getEJBMetaData
      2005-02-01 09:40:50,174 DEBUG [org.jboss.ejb.StatelessSessionContainer]
      Mapping getHomeHandle