Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI Server connection problem on XP ?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
This is a copy of this thread. Closing this one as the other has more information.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic