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?
posted 14 years ago
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.