aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes unmarshalException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "unmarshalException" Watch "unmarshalException" New topic
Author

unmarshalException

Ying Ren
Ranch Hand

Joined: May 24, 2002
Posts: 35
Hi,
When I run my client codes, it always give me the UnmarshalException: error unmarshalling return;nested exception is java.io.EOFException
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)...
I have fought for it for a couple of days.
Please give me some hint.
BTW: I have no security manager on client or server. I used the -Djava.rmi.server.codebase in my command for running. And I also put the stubs and skeletons in my client. I have two classes:RemoteDataAccess and ConnectionFactory which created the stub classes.
Thanks
YING REN
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

What class it is lookup up in the Registry, is it correctly a Remote Object that extends UnicastRemoteObject?
Unmarshalling can come from various reasons.
1. SecurityManager, although you are saying not in this case.
2. Object you are marshalling is not Serializable. That is why I asked the above question.
3. The object you are looking up in the Registry is not there.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: unmarshalException