Applet Security Problem.I really need your help!!!!!!!!!!!!!!!
Posted on 2001-08-15
i have an applet,i call it from server1,this applet calls(by pressing a button)calls a servlet located on server2 & this servlet connects to a database on its same server(server2)& returns the records retrieved to the calling applet which reads them via DataInputStream and display each line in a TextArea component.when i do this i get the follwing exception:
com.ms.security.SecurityExceptionEx TestApplet$ButtonHandler.actionPerformed]: cannot connect to "server2" at com/ms/security/permissions/NetIOPermission.check (NetIOPermission.java)
at com/ms/security/PolicyEngine.deepCheck (PolicyEngine.java)
at com/ms/security/PolicyEngine.checkPermission (PolicyEngine.java)
at com/ms/security/StandardSecurityManager.chk (StandardSecurityManager.java)
at com/ms/security/StandardSecurityManager.chkex (StandardSecurityManager.java)
at com/ms/security/StandardSecurityManager.checkConnect (StandardSecurityManager.java)
at com/ms/net/wininet/WininetURLConnection.connect (WininetURLConnection.java)
at com/ms/net/wininet/WininetURLConnection.getInputStream (WininetURLConnection.java)
at TestApplet$ButtonHandler.actionPerformed (TestApplet.java:31)
at java/awt/Button.processActionEvent (Button.java:256)
at java/awt/Button.processEvent (Button.java:228)
at java/awt/Component.dispatchEventImpl (Component.java:1802)
at java/awt/Component.dispatchEvent (Component.java:1739)
at java/awt/EventDispatchThread.run (EventDispatchThread.java:72)
Note : 1- the 2 servers has 2 different domains.
2- is it a signing problem? if yes i need a detailed process to make it a signed applet.(i have no experience in this issues at all)
3- shall i bring my code here?i will if you need it.
please help, i will appreciate any comment or solution.
thanx in advance.