my dog learned polymorphism*
The moose likes Distributed Java and the fly likes rmi server not working well Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "rmi server not working well" Watch "rmi server not working well" New topic
Author

rmi server not working well

abhishek kunal
Ranch Hand

Joined: Jul 27, 2009
Posts: 42
i have a compute engine which will serve as a remote service provider (simple rmi thing), now don't know what security things it needs and how to get that.... here is what i get when i try to run the remote implementation class


java.security.AccessControlException: access denied (java.net.SocketPermission 1
27.0.0.1:1099 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:323)
at java.security.AccessController.checkPermission(AccessController.java:
546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
at java.net.Socket.connect(Socket.java:513)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:180)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
SocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
SocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198
)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at engine.ComputeEngine.main(ComputeEngine.java:30)


any idea about what's going wrong over here?? help please





Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3817

We have a seperate RMI & related forum here.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Looks like you have enabled security manager. If you need it then you should specify proper permissions in the java security file otherwise do not enable the security manager.

Google for more information on java security manager and java security file.


apigee, a better way to API!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rmi server not working well
 
Similar Threads
RMI binding
RMI problem with Localhost
RMI Access Exceptions
RMI Server help please
RMI Server problem