OptionalDataException « error « Java I/O Q&A





1. unmarshalling return; nested exception is: java.io.OptionalDataException    coderanch.com

Hi, I am having the scenario in which Iam having a method getSessionStatus()in RemoteSystemManagerInterface with no arguments.When this is compiled in j1sdk 1.4.2 and running in server having jre 1.3.1 it is working fine.If i change the server environment to j2sdk 1.4.2_05 it is throwing unmarshalling return; nested exception is: java.io.OptionalDataException from the stub. Help me please.The Stack Trace is given ...

2. OptionalDataException    coderanch.com

public class OptionalDataException extends ObjectStreamException Unexpected data appeared in an ObjectInputStream trying to read an Object. Occurs when the stream contains primitive data instead of the object that is expected by readObject. The EOF flag in the exception is true indicating that no more primitive data is available. The count field contains the number of bytes available to read. Field Summary: ...

3. java.io.OptionalDataException    coderanch.com

Hi, I got an exception while reading data from server.I am using swing client and rmi.I am using IPlanet web server and servlets.Jdk version is 1.4.2_05 The exception is given below: error unmarshalling return; nested exception is: java.io.OptionalDataException. Could any one explain. I am attaching the folloowing code The following method is from RemoteListener class public void run() { Vector sessions ...

4. java.io.OptionalDataException    coderanch.com

Hi, I am having the scenario in which Iam having a method getSessionStatus()in RemoteSystemManagerInterface with no arguments.When this is compiled in j2sdk 1.4.2 and running in server environment having jre 1.3.1 it is working fine.If i change the server environment to j2sdk 1.4.2_05 it is throwing unmarshalling return; nested exception is: java.io.OptionalDataException from the stub. The Stack Trace is given below ...

5. OptionalDataException....???    coderanch.com

Hello all, I was trying to read an arraylist from an inputstream... which was sent by servlet to my swing client... During this it threw a OptionalDataException on my Tomcat console.. I know that When I am try to read the object when the next element in the stream is premitive data type then this excepion is generates.. But I don't ...

6. java.io.OptionalDataException    forums.oracle.com