aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
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: 41
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: 4659
    
    5

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: 41
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: 4659
    
    5

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.
 
Consider Paul's rocket mass heater.
 
subject: Java RMI Error unmarshaling return header