Bookmark Topic Watch Topic
  • New Topic

RMI Server connection problem on XP ?

 
Dimple
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
when i complie the following code on W98 it works fine but if i run this code on XP, its giving the error !!!

code:
java -Djava.rmi.server.codebase=file:/C:\serverstorage/ -Djava.security.manager -Djava.security.policy=java.policy DSImpl 169.1.1.1 data.txt

Error:
Server Exception : java.security.AccessControlException: access denied (java.net
.SocketPermission 169.1.1.1:1099 connect,resolve)

How to solve this problem ?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
"Dimple Simple" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

What's in your security policy file? All permissions or have you set specific permissions? Are the JVMs the same version on both machines?

Also, I'm not sure if this affects the problem you are having any or not, but the URL in your java.rmi.server.codebase property should look like -



Thanks! and welcome to the JavaRanch!
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is a copy of this thread. Closing this one as the other has more information.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!