Victor Garcia [
https://community.jboss.org/people/victorgarcia] created the discussion
"Class does not extend stream superclass"
To view the discussion, visit:
https://community.jboss.org/message/740219#740219
--------------------------------------------------------------
Hi,
I am runing a junit test using jboss-remoting to test a stateless session bean running on
JBoss 7.1.1, and a get this error:
10:51:58,765 ERROR
[org.jboss.as.ejb3.remote.protocol.versionone.VersionOneProtocolChannelReceiver] (Remoting
"bahrain" task-3) Exception on channel Channel ID 4c947d59 (inbound) of Remoting
connection 00137b1e to /127.0.0.1:2093 from message
org.jboss.remoting3.remote.InboundMessage$3@d206f9: java.io.InvalidClassException:
com.aplica.plus.tarjeta.negocio.modelo.TarjetaInteligente; 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:1314)
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_18]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[rt.jar:1.6.0_18]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_18]
Caused by: an exception which occurred:
in object of type java.lang.Class
this is signature of the method i am invoking:
public DefinicionBase findDefinicionBasePropiedades(Class<? extends
ObjetoFidelizacion> claseObjeto);
and the test is invoking the method with the class TarjetaInteligente as the parameter,
which extends ObjetoFidelizacion.
This error could be a bug in the river marshalling implementation?
Is there a way to use the serial marshalling implementation instead of river? I tried to
change the implementation for the serial marshalling in jboss and also in the test, but it
seems to be hardcoded to use the river implementation.
Thanks,
Victor Hugo Garcia
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/740219#740219]
Start a new discussion in JBoss Remoting at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]