Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems starting an application using "exec()" from signed applet..

Status
Not open for further replies.

grenwald

Programmer
Jan 13, 2000
1
IE
<br>
Evening all, <br>
Currently I'm trying to start a lightweight server using the exec() method in Java, it works in an application, but fails in a signed applet running in ie4 with the following <br>
security exceptions... does anybody know how to achieve this.<br>
<br>
com.ms.security.SecurityExceptionEx[Host]<br>
at com/ms/security/PolicyEngine.deepCheck (PolicyEngine.java)<br>
at com/ms/security/PolicyEngine.checkPermission (PolicyEngine.java)<br>
at com/ms/security/StandardSecurityManager.chk<br>
(StandardSecurityManager.java)<br>
at com/ms/security/StandardSecurityManager.checkExec<br>
(StandardSecurityManager.java)<br>
at java/lang/Runtime.exec (Runtime.java)<br>
at java/lang/Runtime.exec (Runtime.java)<br>
at execTest.init (execTest.java:22)<br>
at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)<br>
at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)<br>
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)<br>
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)<br>
at com/ms/applet/AppletPanel.run (AppletPanel.java)<br>
at java/lang/Thread.run (Thread.java)<br>
Error executing process<br>
java.lang.NullPointerException<br>
at execTest.init (execTest.java:29)<br>
at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)<br>
at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)<br>
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)<br>
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)<br>
at com/ms/applet/AppletPanel.run (AppletPanel.java)<br>
at java/lang/Thread.run (Thread.java<br>
<br>
<br>
any help would be greatfully used..<br>
<br>
Regards Kenneth..
 
This sounds like the security restrictions imposed by the browser. You either have to make the server available from the same location as the applet is at or you have to trick the browser into thinking that it's the same by using remote servers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top