File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.rmi.UnmarshalException

 
ilwyvd illtvd
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try many times , but still have the errors
my Client.jar contains
1. all of Client classes
2. suncertify\server\RemoteDataServer_stub.class
when I use
java -jar Client.jar 197.1.1.1:1099 the problem
occurs:
initial url rmi://197.1.1.1:1099/ServerManager
FBNDataModeller : java.rmi.UnmarshalException: error unmarshalling return; neste
d exception is:
java.lang.ClassNotFoundException: suncertify.server.RemoteDataServer_Stu
b
the client contains all the *_stub.class.
but I use :
java suncertify.client.Client 197.1.1.1 1099
it works, why? it also works when I use:
java -Djava.rmi.server.codebase=file:///suncertify/server.jar -jar client.jar
I have to use :
"package suncertify.server" in all classes in server,and this arouse the client can not find
the suncertify.server.RemoteDataServer_Stu
b,help,how to resolve this problem.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic