question:This is urgent. Client Applet on my machine using appletviewer has not been able to contact server program running in other machine.RMI is used here.I am getting exception as java.security.AccessControlException:access denied(java.net.SocketPermission 169.254.207.60:1099 connect,resolve) my server IP address is 169.254.207.60 my client IP address is 169.254.207.58 1099 is rmiregistry's port. anybody knowing answer to my problem,please help me.
posted 16 years ago
Hi Ravi, WEll ill tell u what the problem is- first see if ur code is ok and it is running well on ur local pc- second that ur not trying to read any local files etc from ur pc, and the third and most imp thing is- if all the rest is working fine, then remember that u wont be able to access any machine from applets other than those from which they are downloaded(else ull have to change the policy tool) so what u can do is that u load the applet from a webserver( appletviewers cannot work- they are for testing only on ur local pc's) and that webserver has to be on the same mc as ur RMI application, then it will work, if still u have problems feel free to mail me at firstname.lastname@example.org or email@example.com I hope this will help, Regards, Daman
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads