JBoss Community

Re: ClassLoader issue when using JBoss remoting in AS 7.1.1

created by Loc Tran in JBoss Remoting - View the full discussion

Hi Garcia,

 

I got the same problem!

 

Here is messge from server:

 

11:38:23,040 ERROR [org.jboss.as.ejb3.remote.protocol.versionone.VersionOneProtocolChannelReceiver] (Remoting "tranloc" task-4) Exception on channel Channel ID 3c153634 (inbound) of Remoting connection 66673ecf to /127.0.0.1:59357 from message org.jboss.remoting3.remote.InboundMessage$3@1d3ca9d7: java.io.InvalidClassException: test.manager.model.User; Class does not extend stream superclass

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:909)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1204)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

          at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37) [jboss-marshalling-1.3.11.GA.jar:1.3.11.GA]

          at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.processMessage(MethodInvocationMessageHandler.java:156)

          at org.jboss.as.ejb3.remote.protocol.versionone.VersionOneProtocolChannelReceiver.handleMessage(VersionOneProtocolChannelReceiver.java:170)

          at org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:437) [jboss-remoting-3.2.3.GA.jar:3.2.3.GA]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]

 

And this is the message from test client:

 

Dec 17, 2012 12:02:34 PM org.xnio.Xnio <clinit>

INFO: XNIO Version 3.0.3.GA

Dec 17, 2012 12:02:35 PM org.xnio.nio.NioXnio <clinit>

INFO: XNIO NIO Implementation Version 3.0.3.GA

Dec 17, 2012 12:02:35 PM org.jboss.remoting3.EndpointImpl <clinit>

INFO: JBoss Remoting version 3.2.3.GA

Dec 17, 2012 12:02:35 PM org.jboss.ejb.client.remoting.VersionReceiver handleMessage

INFO: Received server version 1 and marshalling strategies [river]

Dec 17, 2012 12:02:35 PM org.jboss.ejb.client.remoting.RemotingConnectionEJBReceiver associate

INFO: Successful version handshake completed for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@5e3ca754, receiver=Remoting connection EJB receiver [connection=Remoting connection <265a2eaa>,channel=jboss.ejb,nodename=tranloc]} on channel Channel ID c17b78c1 (outbound) of Remoting connection 56f449b8 to localhost/127.0.0.1:4447

Dec 17, 2012 12:02:35 PM org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver handleMessage

WARN: Unsupported message received with header 0xffffffff

Dec 17, 2012 12:02:41 PM org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver handleEnd

INFO: Channel Channel ID c17b78c1 (outbound) of Remoting connection 56f449b8 to localhost/127.0.0.1:4447 can no longer process messages

 

 

java.lang.reflect.UndeclaredThrowableException

          at $Proxy4.createUser(Unknown Source)

          at test.TestCreateUser.test(TestCreateUser.java:76)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)

          at org.junit.runner.JUnitCore.run(JUnitCore.java:157)

          at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)

Caused by: java.io.IOException: Channel Channel ID c17b78c1 (outbound) of Remoting connection 56f449b8 to localhost/127.0.0.1:4447 has been closed

          at org.jboss.ejb.client.remoting.ChannelAssociation$1.handleClose(ChannelAssociation.java:110)

          at org.jboss.ejb.client.remoting.ChannelAssociation$1.handleClose(ChannelAssociation.java:102)

          at org.jboss.remoting3.spi.SpiUtils.safeHandleClose(SpiUtils.java:54)

          at org.jboss.remoting3.spi.AbstractHandleableCloseable$CloseHandlerTask.run(AbstractHandleableCloseable.java:501)

          at org.jboss.remoting3.spi.AbstractHandleableCloseable.runCloseTask(AbstractHandleableCloseable.java:406)

          at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeComplete(AbstractHandleableCloseable.java:277)

          at org.jboss.remoting3.remote.RemoteConnectionChannel.closeAction(RemoteConnectionChannel.java:517)

          at org.jboss.remoting3.spi.AbstractHandleableCloseable.close(AbstractHandleableCloseable.java:153)

          at org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver.handleEnd(ChannelAssociation.java:373)

          at org.jboss.remoting3.remote.RemoteConnectionChannel$2.run(RemoteConnectionChannel.java:276)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:662)

 

 

Disconnected from the target VM, address: '127.0.0.1:60275', transport: 'socket'

 

Please update  if you already found out how to resolve

Reply to this message by going to Community

Start a new discussion in JBoss Remoting at Community