I have an applet that's been working for a long time in Netscape 4.7x and IE, but it will not work in Netscape 6.2.1. This applet reads in an XML data file as a URL from the same machine that the applet is on. The line that is giving me the problem is:
BufferedReader br = new BufferedReader(new InputStreamReader(tocUrl.openStream()));
Where tocUrl is a valid URL to my XML document, underneath document root.
The error message I get with Netscape 6.2.1 is:
IO Error in Toc.readData: java.security.AccessControlException: access denied (java.net.SocketPermission cypci654 resolve)
java.security.PrivilegedActionException: java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
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)
I understand that an applet can not read an external file unless that file is on the same server as the applet, which is the case here. Can someone tell me how to make this work!!