File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes Java RMI Error unmarshaling return header Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Java RMI Error unmarshaling return header" Watch "Java RMI Error unmarshaling return header" New topic
Author

Java RMI Error unmarshaling return header

Clayton Cramer
Ranch Hand

Joined: Aug 26, 2010
Posts: 40
I am writing a Java RMI application -- a really trivial one, and even this has been far more work than I expected. The server starts up, rebinds the name, then I start the client, and:

Java RMI Error unmarshaling return header; nested exception is:
java.io.EOFException

Where should I start looking for the cause of this? And what does this mean? The text of the error message suggests that there is a mismatch between the definition of the interface that is shared by the client and server. Am I guessing right on this? Or can someone point me in a better direction?
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4422
    
    2

Why are you writing an application that uses RMI? Why are you not using something sensible and reliable instead?
Clayton Cramer
Ranch Hand

Joined: Aug 26, 2010
Posts: 40
It looked elegant. But I see that it is now somewhat obsolete. Worse, it does not seem to be terribly reliable, perhaps because it is no longer widely used. Or perhaps the other way around: perhaps it is no longer widely used because it is not terribly reliable.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4422
    
    2

My guess is that RMI's fundamental unreliability contributed a lot to its lack of modern usage. Another huge problem is that its really hard to pass RMI through corporate firewalls, since it uses non-standard ports.
 
I agree. Here's the link: jrebel
 
subject: Java RMI Error unmarshaling return header
 
Similar Threads
RMI UnmarshalException
Sun RMI Tutorial
java.rmi.UnmarshalException: (RMIunder Linux)
UnMarshalException
Rmi in JSF giving connect problem