Skip to Content
0
Former Member
Mar 29, 2004 at 11:59 AM

OptionalDataException when reading serialized handle (was6.40 sneak preview

72 Views

Hello, I'm trying to read a serialised handle (EJBHandle serialized to an ObjectOutputStream) and I have:

java.io.OptionalDataException

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1294)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)

at com.sap.engine.services.ejb.handle.HandleImpl.readStub(HandleImpl.jav

a:120)

at com.sap.engine.services.ejb.handle.HandleImpl.readObject(HandleImpl.j

ava:73)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838

)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1

646)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)

Any ideas anyone?

Thanks,

JP