aspose file tools*
The moose likes Distributed Java and the fly likes unmarshalling return; nested exception is: java.io.OptionalDataException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "unmarshalling return; nested exception is: java.io.OptionalDataException" Watch "unmarshalling return; nested exception is: java.io.OptionalDataException" New topic
Author

unmarshalling return; nested exception is: java.io.OptionalDataException

mupparaju srinivasa rao
Greenhorn

Joined: Apr 16, 2004
Posts: 9
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 below




java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.io.OptionalDataException
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:164)
at com.orillion.webcast.system.RemoteSystemManagerImpl_Stub.getSessionStatus(RemoteSystemManagerImpl_Stub.java:1121)
at com.orillion.webcast.RemoteConnectionListener.run(RemoteConnectionListener.java:43)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.io.OptionalDataException
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1294)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.util.LinkedList.readObject(LinkedList.java:706)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:297)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:146)
... 3 more

regards,
MSR
[ February 21, 2005: Message edited by: mupparaju srinivasa rao ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unmarshalling return; nested exception is: java.io.OptionalDataException
 
Similar Threads
Dynamic Class Downloading Simple Question
java.io.OptionalDataException
Invocation TargetException
jboss-4.0.1sp1 Client exception
Strange problem when chaning java version