3 Replies Latest reply on Oct 2, 2010 9:44 AM by Mayur B

    Methods suddenly becoming invisible!!

    Mayur B Newbie

      Hi , Greetings to community !
      I am using JBOSS 5.1.0 GA.
      There is a standalone multithreaded java program which access
      Stateless Bean's method deplyed on server(Remote Interfaces)
      This program was running very fine for some 36 hours... and then suddenly
      methods of beans become invisible !!! :-O  [Full stack trace is given below]
      After one day of starting this program, I  deployed  a WAR file and a JAR file (containing some other beans)
      for someother purpose....This war file contains useful libs for a web application...
      but could this be reason ?? ...(beans names in two projects are different)
      Here is the Exception:
      What could be the cause of such Exceptions?
      AuthenticationRequestHandler.java Exception :
      java.lang.RuntimeException: Method com.teshwa.bingogame.clubbeans.AuthenticationBean:
      com.teshwa.bingogame.clubbeans.AuthenticationBean.storeLiveSubscriber(com.teshwa.bingogame.LiveSubscriber)
      does not exist in com.teshwa.bingogame.clubbeans.AuthenticationBean
      at org.jboss.ejb3.common.lang.SerializableMethod.toMethod(SerializableMethod.java:254)
      at org.jboss.ejb3.session.SessionSpecContainer.isHomeMethod(SessionSpecContainer.java:461)
      at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:403)
      at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
      at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
      at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
      at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)
      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
      Caused by: java.lang.NoSuchMethodException: com.teshwa.bingogame.clubbeans.AuthenticationBean.storeLiveSubscriber(com.teshwa.bingogame.LiveSubscriber)
      at java.lang.Class.getMethod(Class.java:1605)
      at org.jboss.ejb3.common.lang.SerializableMethod.toMethod(SerializableMethod.java:250)
      at org.jboss.ejb3.session.SessionSpecContainer.isHomeMethod(SessionSpecContainer.java:461)
      at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:403)
      at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
      at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
      at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
      at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)
      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:211)
      at org.jboss.remoting.Client.invoke(Client.java:1724)
      at org.jboss.remoting.Client.invoke(Client.java:629)
      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
      at $Proxy5.invoke(Unknown Source)
      at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
      at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
      at $Proxy9.storeLiveSubscriber(Unknown Source)
      at com.teshwa.protocol.authenticate.AuthenticationRequestHandler.processRequest(AuthenticationRequestHandler.java:120)
      at com.teshwa.bingo.TeshwaAuthenticator.askAuthorisation(TeshwaAuthenticator.java:48)
      at org.quickserver.net.server.impl.BasicClientHandler.processAuthorisation(BasicClientHandler.java:664)
      at org.quickserver.net.server.impl.BlockingClientHandler.run(BlockingClientHandler.java:188)
      at org.quickserver.util.pool.thread.ClientThread.executeClient(ClientThread.java:107)
      at org.quickserver.util.pool.thread.ClientThread.run(ClientThread.java:136)
      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
      at $Proxy5.invoke(Unknown Source)
      at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
      at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
      at $Proxy9.storeLiveSubscriber(Unknown Source)
      at com.teshwa.protocol.authenticate.AuthenticationRequestHandler.processRequest(AuthenticationRequestHandler.java:120)
      at com.teshwa.bingo.TeshwaAuthenticator.askAuthorisation(TeshwaAuthenticator.java:48)
      at org.quickserver.net.server.impl.BasicClientHandler.processAuthorisation(BasicClientHandler.java:664)
      at org.quickserver.net.server.impl.BlockingClientHandler.run(BlockingClientHandler.java:188)
      at org.quickserver.util.pool.thread.ClientThread.executeClient(ClientThread.java:107)
      at org.quickserver.util.pool.thread.ClientThread.run(ClientThread.java:136)

      Hi , Greetings to community !

       

      I am using JBOSS 5.1.0 GA.

      There is a standalone multithreaded java program which access

      Stateless Bean's method deployed on server(Remote Interfaces)

       

      This program was running very fine for some 36 hours... and then suddenly

      methods of beans become invisible !!! :-O  [Full stack trace is given below, getting java.lang.NoSuchMethodException:]

       

      After one day of starting this program, I  deployed  a WAR file and a JAR file (containing some other beans)

      for someother purpose....This war file contains useful libs for a web application...

      but could this be reason ?? ...(beans names in two projects are different)

       

      Here is the Exception:

      What could be the cause of such Exception? [ I will give more information if needed ....]

       

      AuthenticationRequestHandler.java Exception :

      java.lang.RuntimeException: Method com.teshwa.clubbeans.AuthenticationBean:

      com.teshwa.clubbeans.AuthenticationBean.storeLiveSubscriber(com.teshwa.LiveSubscriber)

      does not exist in com.teshwa.clubbeans.AuthenticationBean

      at org.jboss.ejb3.common.lang.SerializableMethod.toMethod(SerializableMethod.java:254)

      at org.jboss.ejb3.session.SessionSpecContainer.isHomeMethod(SessionSpecContainer.java:461)

      at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:403)

      at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)

      at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)

      at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)

      at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)

      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)

      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)

      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)

      Caused by: java.lang.NoSuchMethodException: com.teshwa.clubbeans.AuthenticationBean.storeLiveSubscriber(com.teshwa.LiveSubscriber)

      at java.lang.Class.getMethod(Class.java:1605)

      at org.jboss.ejb3.common.lang.SerializableMethod.toMethod(SerializableMethod.java:250)

      at org.jboss.ejb3.session.SessionSpecContainer.isHomeMethod(SessionSpecContainer.java:461)

      at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:403)

      at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)

      at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)

      at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)

      at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)

      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)

      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)

      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)

      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:211)

      at org.jboss.remoting.Client.invoke(Client.java:1724)

      at org.jboss.remoting.Client.invoke(Client.java:629)

      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)

      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)

      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)

      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)

      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)

      at $Proxy5.invoke(Unknown Source)

      at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)

      at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)

      at $Proxy9.storeLiveSubscriber(Unknown Source)

      at com.teshwa.protocol.authenticate.AuthenticationRequestHandler.processRequest(AuthenticationRequestHandler.java:120)

      at com.teshwa.TeshwaAuthenticator.askAuthorisation(TeshwaAuthenticator.java:48)

      at org.quickserver.net.server.impl.BasicClientHandler.processAuthorisation(BasicClientHandler.java:664)

      at org.quickserver.net.server.impl.BlockingClientHandler.run(BlockingClientHandler.java:188)

      at org.quickserver.util.pool.thread.ClientThread.executeClient(ClientThread.java:107)

      at org.quickserver.util.pool.thread.ClientThread.run(ClientThread.java:136)

      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)

      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)

      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)

      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)

      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)

      at $Proxy5.invoke(Unknown Source)

      at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)

      at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)

      at $Proxy9.storeLiveSubscriber(Unknown Source)

      at com.teshwa.protocol.authenticate.AuthenticationRequestHandler.processRequest(AuthenticationRequestHandler.java:120)

      at com.teshwa.TeshwaAuthenticator.askAuthorisation(TeshwaAuthenticator.java:48)

      at org.quickserver.net.server.impl.BasicClientHandler.processAuthorisation(BasicClientHandler.java:664)

      at org.quickserver.net.server.impl.BlockingClientHandler.run(BlockingClientHandler.java:188)

      at org.quickserver.util.pool.thread.ClientThread.executeClient(ClientThread.java:107)

      at org.quickserver.util.pool.thread.ClientThread.run(ClientThread.java:136)

       

       

      =============================================================================

       

      Heres is some  part of code :

       

      @Stateless

      public class AuthenticationBean implements AuthenticationRemote{

      @PersistenceContext (unitName=ContextMapper.MAPPINGNAME) private EntityManager manager;

      @Override

      public LiveSubscriber storeLiveSubscriber(LiveSubscriber s) {

       

      manager.persist(s);

      return s;

      }

      @Override

      public LiveClub getLiveClubById(int clubId) {

       

      return manager.find(LiveClub.class, clubId);

      }

       

      @Override

      public void removePlayer(LiveSubscriber player) {

      //LiveSubscriber ls = manager.find(LiveSubscriber.class, player.getSubscriber_id());

      try{

         // Some logic to remove subscriber

      }catch(NoResultException nr){

                   //logging===>   Subscriber either already removed / does not exists.

      }

      }

      }

       

      @Remote

      public interface AuthenticationRemote {

      public LiveSubscriber storeLiveSubscriber(LiveSubscriber s);
      public void removePlayer(LiveSubscriber player);
      public LiveClub getLiveClubById(int clubId)
      }

        • 1. Re: Methods suddenly becoming invisible!!
          Mayur B Newbie

          Today I did a test. Program was running  and I uploaded a jar file , unrelated to running project and this activity baught the running program to a halt..same exception. How can uploading something to deploy folder bring problems to running project?

           

          I restarted the server.. now all the files (of 2 projects ) were already in deploy folder ...and both the projects  running fine now!!

           

          [I am very new to jboss and ejb .... may be I missing a very small but important point in configuarion xmls!!?]

          • 2. Re: Methods suddenly becoming invisible!!
            jaikiran pai Master

            Mayur B wrote:

             

            Today I did a test. Program was running  and I uploaded a jar file , unrelated to running project and this activity baught the running program to a halt..same exception. How can uploading something to deploy folder bring problems to running project?

            Does that new jar contain the same classes (maybe of a different version) as the previously deployed jar?

            • 3. Re: Methods suddenly becoming invisible!!
              Mayur B Newbie

              Indeed it does!! ...but let me explain how?

              In first project There are @Entity classes with unitname mapped to ==>"projectOne"   and using databse named "database1".

               

              And in the jar, which I upload later, also contains the @Entity classes with same names  and fields , but unitname mapped to ==> "projectTwo"  and using database named "database2"  ....so I thought It should not create any problem.