File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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


Ying Ren
Ranch Hand

Joined: May 24, 2002
Posts: 35
When I run my client codes, it always give me the UnmarshalException: error unmarshalling return;nested exception is
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.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

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.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: unmarshalException
It's not a secret anymore!