I'm getting a SocketPermission exception
java.security.PrivilegedActionException:
java.lang.reflect.InvocationTargetException:
java.security.AccessControlException: access denied
(java.net.SocketPermission localhost:8080 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
sun.plugin.protocol.jdk12.http.HttpURLConnection.connectStep1(Unknown
Source)
at
sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown
Source)
at
clickstream.ClickStreamApplet.sendElapsedTime(ClickStreamApplet.java:57)
at java.lang.reflect.Method.invoke(Native Method)
at sun.plugin.liveconnect.PrivilegedCallMethodAction.run(Unknown
Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.liveconnect.SecureInvocation.CallMethod(Unknown Source)
when I open a URL connection from an applet to a servlet on the same
machine that served the applet (localhost:8080). This works in
Netscape 4.x and IE, but not in Netscape 6, which is using Java 1.3.
I thought that I don't need to sign the applet if it's connecting back
to the server that dished it out.
I saw a few posts on this in deja, but no solution. Some of the posts
have been from a year and half ago!
--
Regards
Milind