Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnmarshalException over RMI

 
Doug Avery
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I run my app over RMI from two jar files, one for the client and one for the server, everthing works great. Next I wrote a tester to run multiple clients against the server. Each 'client' in the test is an extension of thread and tries to make a connection to the server and call methods on the db. When I run this, however, I get an java.rmi.UnmarshalException with a nested java.lang.ClassNotFoundException for my stub, complaining of no security manager. This happens even when I'm only trying to run one instance of the 'client'.
Why the different response when making the RMI connection from the 'run' method of a thread?
Will implementing a default security manager remedy this?
 
Doug Avery
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
D'oh!
Please disregard this post.
I should have known better than to try and test with my kids in the room.
Forgot to copy the stub.
Sorry to drag you in here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic