Alex Blewitt
Posts: 44
Nickname: alblue
Registered: Apr, 2003
|
|
Re: Exception in rmi based chat
|
Posted: Apr 5, 2004 8:43 AM
|
|
This is a security access exception, which you'll get if you don't have the security policy set up to allow outbound connections to other machines.
You'll need to have a java.policy file that contains something like: grant signedBy "YouInc" { permission java.net.SocketPermission "ipofwebserver:1024-", "connect"; };
(alternatively, you could have an unsigned client)
grant codeBase "file:/home/rmiclient/rmiclient.jar" { permission java.net.SocketPermission "ipofwebserver:1024-", "connect"; };
See the policy specifications document for more information: http://java.sun.com/j2se/1.4.2/docs/guide/security/permissions.html
|
|