on 03-29-2004 12:59 PM
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
I'm not sure "where you are" when you get the error, but typically classes from "java.io.*" are not legal in an EJB environment. Maybe you can save your handle in your special JNDI environment instead?
Dale
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Couold you please show me the code that is writing and reading this?
Could it be you are using an inherited class that overwrites some methods?
Regards,
Benny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.