• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unmarshalException

 
Ying Ren
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic