0 Replies Latest reply on Aug 14, 2002 5:39 PM by Fang Yang

    ClassNotFoundException happens when upgrading to Jboss 3.0.1

    Fang Yang Newbie

      I'm calling a remote method of stateless EJB, passing my serializable value object as one of the parameters. Everything was ok until I upgraded Jboss to 3.0.1 yesterday. The following exception was thrown:

      15:40:55,926 ERROR [STDERR] java.lang.ClassNotFoundException: [Lcom.mycompany.myvalueobject;
      15:40:55,936 ERROR [STDERR] at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
      15:40:55,936 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
      15:40:55,936 ERROR [STDERR] at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
      15:40:55,936 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      15:40:55,936 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
      15:40:55,936 ERROR [STDERR] at org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:41)
      15:40:55,936 ERROR [STDERR] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1503)
      15:40:55,936 ERROR [STDERR] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
      15:40:55,936 ERROR [STDERR] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1550)
      15:40:55,936 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1261)
      15:40:55,936 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      15:40:55,936 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      15:40:55,936 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      15:40:55,946 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      15:40:55,956 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      15:40:55,966 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      15:40:55,966 ERROR [STDERR] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1593)
      15:40:55,966 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1261)
      15:40:55,966 ERROR [STDERR] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
      15:40:55,966 ERROR [STDERR] at org.jboss.invocation.MarshalledValue.get(MarshalledValue.java:68)
      15:40:55,966 ERROR [STDERR] at org.jboss.invocation.MarshalledInvocation.getValue(MarshalledInvocation.java:276)
      15:40:55,966 ERROR [STDERR] at org.jboss.invocation.Invocation.getArguments(Invocation.java:264)
      15:40:55,966 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)
      15:40:55,966 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      15:40:55,966 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
      15:40:55,966 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
      15:40:55,966 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
      15:40:55,966 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
      15:40:55,966 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
      15:40:55,966 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
      15:40:55,966 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
      15:40:55,976 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:711)
      15:40:55,976 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      15:40:55,976 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:370)
      15:40:55,976 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      15:40:55,976 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      15:40:55,976 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      15:40:55,976 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
      15:40:55,976 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      15:40:55,976 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.java:148)
      15:40:55,976 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
      15:40:55,976 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      15:40:55,976 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      15:40:55,976 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      15:40:55,976 ERROR [STDERR] at java.lang.Thread.run(Thread.java:536)
      15:40:55,976 ERROR [LogInterceptor] RuntimeException:
      java.lang.IllegalArgumentException: wrong number of arguments
      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.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
      at org.jboss.ejb.Container.invoke(Container.java:711)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:370)
      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 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)

      Did we change any classloading logic? Thanks,
      Thanks a lot,