Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

"Error unmarshaling return header", but return type is void

843793Aug 16 2002 — edited Aug 19 2002

I don't understand this. My remote call works, but the calling code gets an exception.

The remote method has this signature:
public void mymethod(Object value) throws RemoteException;
- The code/process that implements mymethod has logging statements that appear in the log, so I know that it is successfully getting called, printing stuff about value, and getting to the end.

- The code/process that calls mymethod gets this exception from the remote call:
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
    java.io.EOFException
java.io.EOFException
    at java.io.DataInputStream.readByte(DataInputStream.java:219)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:181)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
    at MyRemoteClass.mymethod
    ... (rest is my code)
Maybe it's because I do not understand what it means by "unmarshaling return header", but it doesn't sound to be like it should be trying to unmarshal anything when the return type is void.

??!!!??!?!
Anyone?

/Mel

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 16 2002
Added on Aug 16 2002
1 comment
7,324 views