Connecting to a different host..........
843811Jul 27 2001 — edited Sep 4 2001Hi guys, well I have this problem, I have an JApplet that's a RMI client in the machine A and my RMI server is in the B machine, so I get security exceptions like these:
Client exception: checkconnect.networkhost1
sun.applet.AppletSecurityException: checkconnect.networkhost1
at sun.applet.AppletSecurity.checkConnect(AppletSecurity.java:576)
at sun.applet.AppletSecurity.checkConnect(AppletSecurity.java:618)
at sun.applet.AppletSecurity.checkConnect(AppletSecurity.java:518)
at sun.rmi.transport.proxy.AsyncConnector.<init>(RMIMasterSocketFactory.java:321)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPChannel.openSocket(TCPChannel.java:279)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:150)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:123)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:67)
I tried using policy files to grant socket permissions but it didn't work. I update the java.security file for the JRE adding the path where the policy lies and nothing, I'm still getting this awful exception.
This is the policy file:
---------------------------------------
keystore "file:d:/proys/mysecurity/userstore";
grant codeBase "file:d:/resin2.0.1/doc" {
permission java.net.SocketPermission "*:1024-65535", "accept, connect, listen, resolve";
};
---------------------------------------
What can I do? Do you know some way to workaround this?
Any help will be appreciated.
Notes: I'm using JDK1.3 and the Java Plugin 1.1.3, Netscape 4.61