hy, everybody!
I am in trouble. I am using Java3D in my applets, i read the graphic�s objects definitions from a file. When i run on the appletViewer all run ok, but  when i run the applet on IE and i try to read the files, the following error appear on the Java Console
 
Exception occurred during event dispatching:
java.security.AccessControlException: access denied (java.net.SocketPermission servernt:80 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.connect(Unknown Source)
 at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
 at java.net.URL.openStream(Unknown Source)
 at Tesis7.LayerApart.createLayer(LayerApart.java:56)
.......................
 
I do the following to read the files:
URL theFile= new URL(myApplet.getDocumentBase(),"http://servernt:80/edith/tesis/aparts.txt");
DataInputStream in = new DataInputStream(theFile.openStream()); ///(line 56 of LayerApart)
String line = in.readLine(); 
......
 
what can i do to solve the problem?
Thank you in advance for any help you can give me.
Edith
 

Edith N. Lovos
APU
Intervan SRL
Saavedra 393
Viedma-Rio Negro
Te: +54 2920 426969
[EMAIL PROTECTED]
www.intervan.com.ar

Reply via email to