3 Replies Latest reply on Oct 24, 2002 10:55 PM by tdhak

    Hot deployment problem?

    gennadiy

      I have application packaged in one jar file and standalone java client for it. I try to use hot deployment future of jboss, but...
      1) I copy my_pp.jar into jboss_home\deploy directory
      JBoss succesfully deployed my app, and client application working well.

      2) I delete my_pp.jar from jboss_home\deploy directory
      JBoss succesfully undeployed my_app

      3) I copy the same my_app.jar into jboss_home\deploy directory. JBoss succesfully deployed my app, but client application don't work.

      This is an corresponding message from server.log:

      ----------------------------------------------------------
      16:55:39,117 ERROR [JRMPInvoker] operation failed
      java.rmi.ServerException: argument type mismatch; nested exception is:
      java.lang.IllegalArgumentException: argument type mismatch
      java.lang.IllegalArgumentException: argument type mismatch
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
      tatelessSessionContainer.java:642)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
      elessSessionInstanceInterceptor.java:77)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:96)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:167)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
      1)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
      java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContai
      ner.java:308)
      at org.jboss.ejb.Container.invoke(Container.java:630)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      55)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
      364)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      at sun.rmi.transport.Transport$1.run(Transport.java:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
      65)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
      .java:706)
      at java.lang.Thread.run(Thread.java:484)
      ----------------------------------------------------------

      and this is a corresponding method of stateless session bean's remote interface:

      public com.softoffice.bcl.transport.Response
      dispatch(String theActionID, com.softoffice.bcl.transport.Request theRequest)
      throws RemoteException;

      com.softoffice.bcl.transport.Request is an interface extends java.io.Serializable

      What is wrong?

      Regards,
      Gennadiy


        • 1. Re: Hot deployment problem?
          gennadiy

          Sorry, as for fair answer:
          1) JBoss 3 beta
          2) My ejb app uses one custom jar in jboss\lib\ext

          Regards,
          Gennadiy

          • 2. Re: Hot deployment problem?
            tdhak

            Hi, did you ever solve your problem, cos I've got the exact same problem now !!

            • 3. Re: Hot deployment problem?
              tdhak

              sorry, its not exactly the same, my stack trace reads :-

              2002-10-25 02:54:33,366 TRACE [org.jboss.ejb.plugins.LogInterceptor] Start method=create
              2002-10-25 02:54:33,368 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] Current transaction in MI is null
              2002-10-25 02:54:33,369 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] TX_REQUIRED for create
              2002-10-25 02:54:33,370 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] Thread came in with tx null
              2002-10-25 02:54:33,373 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] Starting new tx TransactionImpl:XidImpl [FormatId=257, GlobalId=pluto//37, BranchQual=]
              2002-10-25 02:54:33,374 TRACE [org.jboss.ejb.plugins.StatefulSessionInstancePool] Get instance org.jboss.ejb.plugins.StatefulSessionInstancePool@182d86#true#class tsd_software.j2ee.user_management.ejbs.implementations.UserManageSessionEJB
              2002-10-25 02:54:33,612 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] TxInterceptorCMT: In finally
              2002-10-25 02:54:33,614 TRACE [org.jboss.ejb.plugins.LogInterceptor] End method=create
              2002-10-25 02:54:33,615 TRACE [org.jboss.invocation.jrmp.server.JRMPInvoker] operation failed
              java.rmi.ServerException: null
              Embedded Exception
              $Proxy30; nested exception is:
              javax.ejb.EJBException: null
              Embedded Exception
              $Proxy30
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:119)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
              at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
              at org.jboss.ejb.StatefulSessionContainer.invokeHome(StatefulSessionContainer.java:368)
              at org.jboss.ejb.Container.invoke(Container.java:726)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
              at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362)
              at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
              at sun.rmi.transport.Transport$1.run(Transport.java:148)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
              at java.lang.Thread.run(Thread.java:536)
              Caused by: javax.ejb.EJBException: null
              Embedded Exception
              $Proxy30
              at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.createSession(StatefulSessionFilePersistenceManager.java:186)
              at org.jboss.ejb.StatefulSessionContainer.createHome(StatefulSessionContainer.java:441)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionContainer.java:756)
              at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:104)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)
              at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:128)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98)
              ... 17 more