I'm building a client-server app, but when I try to run and connect the
client using IE I get:
java.security.AccessControlException: access denied
(java.net.SocketPermission 127.0.0.1:9112 connect,resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at NetClient.run(NetClient.java:25)
(server and client both running on local host)
When I run it via Eclipse it works fine. Is there anything wrong with my
code or is there an option somewhere in Internet Explorer blocking it?
Thanks,
Steve Hart
> I'm building a client-server app,
app? or applet?
> When I run it via Eclipse it works fine. Is there anything wrong with my
> code or is there an option somewhere in Internet Explorer blocking it?
Yes, it's called a SecurityManager
(and a damn fine thing it is too)
Check the Sun Java console for a lot
more details, you might also check the
Sun site for 'applet+security'..
--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology