[jboss-user] [Beginners Corner] - jboss serialization jar prereqs? (remoting 2.5.0SP2)

amethod75 do-not-reply at jboss.com
Mon Mar 9 09:51:25 EDT 2009


Im using remoting 2.5.0SP2.

Having trouble running the serialization sample outside of the distribution sample tree. Im pretty sure its just a missing jar since the code is unmodified but since I have the serialization jar included i'm not sure what i'm missing. Its not in the documentation that comes with the code.  Any help would be appreciated and if there is a manual i should be reading instead of asking dumb questions a RTFM with a link would be equally appreciated.

----- snippet -----
>java -cp concurrent.jar;jboss-common-core.jar;jboss-logging-spi.jar;jboss-remoting.jar;jboss-serialization.jar;dist/jbosstest.jar SerializationClient

Calling remoting server with locator uri of: socket://localhost:5400/?serializationtype=jboss
Invoking server with request of 'NonSerializablePayload - name: foo, id: 1'

org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://localhost:5400/?serializationtype=jboss]
        at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:771)
        at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:160)
        at org.jboss.remoting.Client.invoke(Client.java:1708)
        at org.jboss.remoting.Client.invoke(Client.java:612)
        at org.jboss.remoting.Client.invoke(Client.java:600)
        at SerializationClient.makeInvocation(Unknown Source)
        at SerializationClient.main(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.jboss.remoting.transport.socket.SocketClientInvoker.createClientSocket(SocketClientInvoker.java:168)
        at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:1111)
        at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:757)
        ... 6 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jboss.serial.io.JBossObjectInputStream
        at org.jboss.remoting.serialization.impl.jboss.JBossSerializationManager.createInput(JBossSerializationManager.java:64)
        at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:75)
        at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:58)
        at org.jboss.remoting.transport.socket.ClientSocketWrapper.createInputStream(ClientSocketWrapper.java:179)
        at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:162)
        at org.jboss.remoting.transport.socket.ClientSocketWrapper.(ClientSocketWrapper.java:66)
        ... 13 more
----- snippet -----


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216219#4216219

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216219



More information about the jboss-user mailing list