Troubleshooting
Running rmic
Q1: | Why does rmic complain that my class doesn't implement a Remote interface? |
Most likely, you either forgot to declare that your Remote interface extends Remote or you forgot to declare that your implementation class implements the Remote interface. |
Running the Server
Q1: | Why do I get an error about a missing RemoteObject_Stub class when I run the server? |
You forgot to use rmic to generate the stub and skeleton for the server class. | |
Q2: | Why do I get a security exception when I run the server? |
You probably forgot to specify a security policy with the -Djava.security.policy option. Remember, because you set up a special security manager, you must use a policy file to grant special permissions to your RMI server object. |
Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.