开发者

How to resolve permission issue in applet?

开发者 https://www.devze.com 2023-04-12 14:19 出处:网络
I have one small problem with applet, I got following error. Exception in thread \"AWT-EventQueue-2\" java.lang.ExceptionInInitializerError

I have one small problem with applet, I got following error.

Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError
    at applet.JSGD_Register.jButtonInitActionPerformed(JSGD_Register.java:861)
    at applet.JSGD_Register.access$1(JSGD_Register.java:841)
    at applet.JSGD_Register$2.actionPerformed(JSGD_Register.java:195)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at开发者_StackOverflow中文版 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jnifplib)
    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.checkLink(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at SecuGen.FDxSDK.jni.JFPLib.<clinit>(JFPLib.java:68)
    ... 27 more

Why this occurs and how to resolve it?


First of all read this document - What Applets Can and Cannot Do? ** and decide what kind of code an applet allows. As @AndrewThompson pointed out (see comment) that signed applets do not have the security restrictions because they are digitally signed (signature) which proves that they came untampered from a particular trusted author.

For more information about signed applets check out :

  1. Security in Rich Internet Applications
  2. Understanding Signing and Verification
0

精彩评论

暂无评论...
验证码 换一张
取 消