4 Replies Latest reply on Oct 14, 2009 7:09 AM by Kirill Mikhailov

    Exception when running with JDK 1.6 Mustang

    Colin Goudie Newbie

      I'm running JBoss 4.0.4GA1 using EJB3.

      I've been running this successfully with my client software using jdk1.5.0

      I've tried to get it to work with 1.6 but I keep getting an exception thrown by the client when attempting to retreive a collection from a session bean.

      JBoss boots up fine and throws no errors; The exception is a classnotfoundexception on org.jboss.aop.adivce.Interceptor.

      All the required jars (including jboss-aop-jdk50-client.jar) are in the classpath (Nothing has changed exception compiling with jdk1.6 and running with 1.6)

      These exception is
      Got marshalling exception, exiting
      java.lang.ClassNotFoundException: [Lorg.jboss.aop.advice.Interceptor;
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
      at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:122)
      at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
      at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
      at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
      at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
      at org.jboss.remoting.Client.invoke(Client.java:525)
      at org.jboss.remoting.Client.invoke(Client.java:488)
      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:48)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61)
      at $Proxy1.createProxy(Unknown Source)
      at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:52)
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at com.tributech.tuxedo.client.core.session.LocalSession$1.run(LocalSession.java:53)
      at com.tributech.tuxedo.client.core.session.SessionMethod.run(SessionMethod.java:42)
      at com.tributech.tuxedo.client.core.session.LocalSession.run(LocalSession.java:85)
      at java.lang.Thread.run(Thread.java:619)
      Error loading classes from remote call result.
      java.lang.ClassNotFoundException: [Lorg.jboss.aop.advice.Interceptor;
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
      at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:122)
      at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
      at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
      at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
      at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
      at org.jboss.remoting.Client.invoke(Client.java:525)
      at org.jboss.remoting.Client.invoke(Client.java:488)
      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:48)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61)
      at $Proxy1.createProxy(Unknown Source)
      at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:52)
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at com.tributech.tuxedo.client.core.session.LocalSession$1.run(LocalSession.java:53)
      at com.tributech.tuxedo.client.core.session.SessionMethod.run(SessionMethod.java:42)
      at com.tributech.tuxedo.client.core.session.LocalSession.run(LocalSession.java:85)
      at java.lang.Thread.run(Thread.java:619)



      Thanks for any help you can provide

        • 1. Re: Exception when running with JDK 1.6 Mustang
          ramana Newbie

          Hi,
          I am also getting similar exception even with jdk1.5 &jboss 4.0.4G.A.

          I am sure, I set classpath in my client execution. I even tested loading class and doing dummy instantation just before actual ejb3 bean execution. working fine loading but returns same ClassNotFoundException while deserializing..

          Caused by: java.lang.ClassNotFoundException: [Lcom.ciao.search.service.ciaoogle.entities.CiaoProductShort;
          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
          at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
          at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139)
          at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
          at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1585)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
          at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:122)
          at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1753)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1711)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
          at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
          at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
          at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
          at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
          at org.jboss.remoting.Client.invoke(Client.java:525)
          at org.jboss.remoting.Client.invoke(Client.java:488)

          Is there something todo with RemotingClassLoader or?

          Thanks in advance,
          awating for your help.
          Jelda

          • 2. Re: Exception when running with JDK 1.6 Mustang
            ramana Newbie

            while searching jboss forums,
            just found this ticket..

            http://jira.jboss.com/jira/browse/JBREM-450

            I still have debug my application to see if my problem is also related to this issue.. :(

            Jelda

            • 3. Re: Exception when running with JDK 1.6 Mustang
              Colin Goudie Newbie

              Even with jboss 4.0.5.GA this is still occuring with JDK 1.6?? Does anyone have any new info on this error? I still can't get it solved.

              Thanks

              • 4. Re: Exception when running with JDK 1.6 Mustang
                Kirill Mikhailov Newbie

                This is classloader issue in jdk6
                Try setting -Dsun.lang.ClassLoader.allowArraySyntax=true
                see http://bugs.sun.com/view_bug.do?bug_id=6434149