This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "rmi server not working well" Watch "rmi server not working well" New topic

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 access denied ( 1 connect,resolve)
at java.lang.SecurityManager.checkPermission(
at java.lang.SecurityManager.checkConnect(
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(
at sun.rmi.transport.tcp.TCPChannel.createConnection(
at sun.rmi.transport.tcp.TCPChannel.newConnection(
at sun.rmi.server.UnicastRef.newCall(
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at engine.ComputeEngine.main(

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

Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3816

We have a seperate RMI & related forum here.

[How to ask questions] [Twitter]
Nitesh Kant

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!
It is sorta covered in the JavaRanch Style Guide.
subject: rmi server not working well
Similar Threads
RMI binding
RMI problem with Localhost
RMI Access Exceptions
RMI Server help please
RMI Server problem