No reply yet, and this was drivng me crazy, so I went ahead and added
serialVersionUIDs to
the Serializable classes in the common directory.

I was having problems when jars were built on different machines.

Cheers,
Leif

Leif Mortenson wrote:

>Altrmi, welcome to Avalon :-)
>
>I built Altrmi on one machine and added it to a project. Then ran the
>client from another machine and get the following error.
>
>[ERROR] Unexpected IOE in StreamServerConnection #1
>java.io.InvalidClassException:
>org.apache.excalibur.altrmi.common.OpenConnectionRequest; Local class
>not compatible: stream classdesc serialVersionUID=1773735791378198918
>local class serialVersionUID=-1874297155983386446
>at java.io.ObjectStreamClass.validateLocalClass(Unknown Source)
>at java.io.ObjectStreamClass.setClass(Unknown Source)
>at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source)
>at java.io.ObjectInputStream.readObject(Unknown Source)
>at java.io.ObjectInputStream.readObject(Unknown Source)
>at java.io.ObjectInputStream.inputObject(Unknown Source)
>at java.io.ObjectInputStream.readObject(Unknown Source)
>at java.io.ObjectInputStream.readObject(Unknown Source)
>at
>org.apache.excalibur.altrmi.common.SerializationHelper.getInstanceFromBytes(SerializationHelper.java:98)
>at
>org.apache.excalibur.altrmi.common.SerializationHelper.getInstanceFromBytes(SerializationHelper.java:75)
>at
>org.apache.excalibur.altrmi.server.impl.ServerCustomStreamReadWriter.readRequest(ServerCustomStreamReadWriter.java:66)
>at
>org.apache.excalibur.altrmi.server.impl.ServerCustomStreamReadWriter.writeReplyAndGetRequest(ServerCustomStreamReadWriter.java:47)
>at
>org.apache.excalibur.altrmi.server.impl.StreamServerConnection.run(StreamServerConnection.java:86)
>at java.lang.Thread.run(Unknown Source)
>
>This is using the Instrument client/manager packages. This class might
>need to have a hardcoded serialVersion id.
>
>Leif
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to