Security exception with Applets..
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lalit_Choudhary
Posted On:   Monday, September 3, 2001 05:47 AM

Applet throwing security exception when trying to load it with IE 5.0 using plugin,I am quite sure it's not doing anything with the local file system.. Exact exception is java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at sun.applet.AppletSecurity.checkAccess(Unknown Source) at java.lang.Thread.checkAccess(Unknown Source) at java.lang.Thread.setPriority(Unknown Source) at java.lang.Thread.init(Unknown Source   More>>

Applet throwing security exception when trying to load it with IE 5.0 using plugin,I am quite sure it's not doing anything with the local file system..
Exact exception is


java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at sun.applet.AppletSecurity.checkAccess(Unknown Source)

at java.lang.Thread.checkAccess(Unknown Source)

at java.lang.Thread.setPriority(Unknown Source)

at java.lang.Thread.init(Unknown Source)

at java.lang.Thread. (Unknown Source)

at javax.swing.TimerQueue.start(Unknown Source)

at javax.swing.TimerQueue. (Unknown Source)

at javax.swing.TimerQueue.sharedInstance(Unknown Source)

at javax.swing.JApplet. (Unknown Source)

at e_seriesgui.AppletLogin. (AppletLogin.java:47)

at java.lang.Class.newInstance0(Native Method)

at java.lang.Class.newInstance(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

   <<Less

Re: Security exception with Applets..

Posted By:   Kevin_Riff  
Posted On:   Tuesday, September 4, 2001 11:58 AM

You seem to be trying to set the priority of a thread you didn't create. Don't do that.
About | Sitemap | Contact