This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java RMI UnmarshalException  RSS feed

 
Arun Giridhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its been 3 days in stretch cant find solution to all this error sometimes i get UnmarshalException (server)

package structure
rmiService
--com.trial.server

-----|Addition.java

---- |AdditionInterface.java

---- |AdditionServer.java

-----security policy
security policy

grant {
permission java.security.AllPermission;
};


Addition.java




AdditionInterface



AdditionServer


after giving arguments -Djava.security.policy and -Djava.rmi.server.codebase still get this error.
Addition Server failed: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: com.trial.server.AdditionInterface


Thank you
 
Arun Giridhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont know whats going wrong.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message says that something can't find a particular class. I believe it's trying to look in the codebase to find that class. So my guess is that it isn't in your codebase. You said that you set "-Djava.rmi.server.codebase" but you didn't say what you set it to, or whether you checked that you set it correctly after seeing this message.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!