开发者

What does this exception mean? and how do i solve this? java

I am using IcePDF component to view pdf in JApplet on my web page. But for some reason i get this error. Can anybody tell why is this happening and how to solve it?

Exception in thread "thread applet-applet.KitKitApplet.class-1" java.lang.StackOverflowError
    at java.util.PropertyPermissionCollection.implies(Unknown Source)
    at java.security.Permissions.implies(Unknow开发者_开发问答n Source)
    at sun.security.provider.PolicyFile.implies(Unknown Source)
    at java.security.ProtectionDomain.implies(Unknown Source)
    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.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at org.icepdf.core.util.Defs.property(Defs.java:59)
    at org.icepdf.core.util.Defs.property(Defs.java:63)
    at org.icepdf.core.util.Defs.property(Defs.java:63)
    at org.icepdf.core.util.Defs.property(Defs.java:63)
    at org.icepdf.core.util.Defs.property(Defs.java:63)
    at org.icepdf.core.util.Defs.property(Defs.java:63)
    at org.icepdf.core.util.Defs.property(Defs.java:63)


Looks like you've run into this bug. The program is trying to read a system property that the applet sandbox won't allow it to read, and the ensuing SecurityException is not handled correctly by IcePDF.


This exception is caused when the current thread has exhausted it's stack space. This can happen when a function has recursed too many times, typically as a result if a non-terminating recurson.


you have something compiled without debug symbols that is why you see Unknown Source everywhere. The main thing is pretty self evident, your SecurityManager isn't setup with the correct permissions to do java.lang.System.getProperty(). You need to configure the applet security permissions to let that library access whatever property it is trying to get. You will probably have to Sign your Applet for your code to work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜