hi all,
the detailed problem is
The server runs on a machine other than the client.I try to send
a message from the client, process it in the server and get back
the result into the client applet.The outline is like this.
Server machine IP : 192.168.1.107
Server side:
At the command line I type:
C:\start rmiregistry
C:\java -Djava.security.policy=grantperm.policy AddServer
both the rmiregistry and the server start up fine.
Client side
IP :192.168.1.110)
At the command line I type:
C:\appletviewer AddClient.java
the applet starts up but as soon as the contents of the applet are
displayed the following exception comes at the client machine:
java.net.AccessControlexception access denied (java.net.SocketPermission
192.168.1.107:1099 connect,resolve)
there is no other further action at the client.
the server is still running fine
can u please explain why this happens.the 'grantperm policy' file contains:
grant
{ // allow everything for now
permission java.security.AllPermission;
};
and is in the same directory as the AddServerImpl and AddServer files.
srijan