P
polaris
Hello everybody,
Im using RMI to connect java applet with a remote server.
The client looks up the server successfully but when I press
any button in the client applet interface which performs remote
method invocation this message is displayed in java console:
Exception in thread "AWT-EventQueue-23" java.lang.RuntimeException:
java.security.AccessControlException: access denied
(java.net.SocketPermission 10.0.0.2:4411 connect,resolve) at
ClientApplet$ButtonHandler.actionPerformed(ClientApplet.java:153)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
I don't use any security policy to run the registry or in the server or
client.
This is the client look up code:
remoteReference = (RemoteInterface)
Naming.lookup("//localhost/"+RemoteInterface.REGISTRY_NAME);
and this is the server rebind code:
Naming.rebind(RemoteInterface.REGISTRY_NAME, remoteReference);
do i need to use any specific security policy or what?
Im using RMI to connect java applet with a remote server.
The client looks up the server successfully but when I press
any button in the client applet interface which performs remote
method invocation this message is displayed in java console:
Exception in thread "AWT-EventQueue-23" java.lang.RuntimeException:
java.security.AccessControlException: access denied
(java.net.SocketPermission 10.0.0.2:4411 connect,resolve) at
ClientApplet$ButtonHandler.actionPerformed(ClientApplet.java:153)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
I don't use any security policy to run the registry or in the server or
client.
This is the client look up code:
remoteReference = (RemoteInterface)
Naming.lookup("//localhost/"+RemoteInterface.REGISTRY_NAME);
and this is the server rebind code:
Naming.rebind(RemoteInterface.REGISTRY_NAME, remoteReference);
do i need to use any specific security policy or what?