W
wimxa
I have been searching on the Internet about this, but no real success.
I am using JBoss 4.2.1-GA. I have ClassA and ClassB, with interfaces
IClassA and IClassB and a stateless session bean returning IClassA
(while actually returning ClassB instance). I get the exception when I
try to fetch it.
Here is the stack trace:
---------- stack trace start
ERROR SocketClientInvoker - Got marshalling exception, exiting
java.lang.ClassNotFoundException: test.domain.ClassB
at
org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:
82)
at
org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:
76)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:
174)
at java.ibjectInputStream.readNonProxyDesc(ObjectInputStream.java:
1544)
at java.ibjectInputStream.readClassDesc(ObjectInputStream.java:
1466)
at
java.ibjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1699)
at java.ibjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.ibjectInputStream.readObject(ObjectInputStream.java:348)
at
org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:
122)
at java.ibjectInputStream.readExternalData(ObjectInputStream.java:
1755)
at
java.ibjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1717)
at java.ibjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.ibjectInputStream.defaultReadFields(ObjectInputStream.java:
1908)
at java.ibjectInputStream.readSerialData(ObjectInputStream.java:
1832)
at
java.ibjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1719)
at java.ibjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.ibjectInputStream.readObject(ObjectInputStream.java:348)
at
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:
239)
at
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:
133)
at
org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:
120)
at
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:
943)
at
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:
584)
at
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:
122)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:
62)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:
61)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:
53)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:
72)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:
103)
at $Proxy0.getIClassA(Unknown Source)
at test.client.TestClient.test1(TestClient.java:163)
at test.client.TestClient.run(TestClient.java:237)
at test.client.TestClient.main(TestClient.java:290)
---------- stack trace end
I am using JBoss 4.2.1-GA. I have ClassA and ClassB, with interfaces
IClassA and IClassB and a stateless session bean returning IClassA
(while actually returning ClassB instance). I get the exception when I
try to fetch it.
Here is the stack trace:
---------- stack trace start
ERROR SocketClientInvoker - Got marshalling exception, exiting
java.lang.ClassNotFoundException: test.domain.ClassB
at
org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:
82)
at
org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:
76)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:
174)
at java.ibjectInputStream.readNonProxyDesc(ObjectInputStream.java:
1544)
at java.ibjectInputStream.readClassDesc(ObjectInputStream.java:
1466)
at
java.ibjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1699)
at java.ibjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.ibjectInputStream.readObject(ObjectInputStream.java:348)
at
org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:
122)
at java.ibjectInputStream.readExternalData(ObjectInputStream.java:
1755)
at
java.ibjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1717)
at java.ibjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.ibjectInputStream.defaultReadFields(ObjectInputStream.java:
1908)
at java.ibjectInputStream.readSerialData(ObjectInputStream.java:
1832)
at
java.ibjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1719)
at java.ibjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.ibjectInputStream.readObject(ObjectInputStream.java:348)
at
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:
239)
at
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:
133)
at
org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:
120)
at
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:
943)
at
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:
584)
at
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:
122)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:
62)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:
61)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:
53)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:
72)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:
103)
at $Proxy0.getIClassA(Unknown Source)
at test.client.TestClient.test1(TestClient.java:163)
at test.client.TestClient.run(TestClient.java:237)
at test.client.TestClient.main(TestClient.java:290)
---------- stack trace end