这个例外意味着什么?我该如何解决这个问题?JAVA

这个例外意味着什么?我该如何解决这个问题?JAVA,java,applet,Java,Applet,我正在使用IcePDF组件在我的网页上查看JApplet格式的pdf。但出于某种原因,我得到了这个错误。有人能告诉我为什么会发生这种情况以及如何解决它吗 Exception in thread "thread applet-applet.KitKitApplet.class-1" java.lang.StackOverflowError at java.util.PropertyPermissionCollection.implies(Unknown Source) at jav

我正在使用IcePDF组件在我的网页上查看JApplet格式的pdf。但出于某种原因,我得到了这个错误。有人能告诉我为什么会发生这种情况以及如何解决它吗

Exception in thread "thread applet-applet.KitKitApplet.class-1" java.lang.StackOverflowError
    at java.util.PropertyPermissionCollection.implies(Unknown Source)
    at java.security.Permissions.implies(Unknown 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)

看来你遇到了。程序正在尝试读取小程序沙盒不允许其读取的系统属性,随后的
SecurityException
没有被IcePDF正确处理。

编译的某些内容没有调试符号,这就是为什么到处都会看到未知源。最主要的是不言而喻,您的SecurityManager没有设置正确的权限来执行java.lang.System.getProperty()。您需要配置小程序安全权限,以允许该库访问它试图获取的任何属性。您可能需要重新编写代码才能工作。

当当前线程耗尽堆栈空间时,会导致此异常。当函数递归次数过多时会发生这种情况,通常是由于非终止递归。

嗨,Michael,我下载了最新版本4.0.1。我应该停止使用这个组件吗?或者有其他选择吗?@Nitesh:不巧的是,这个bug还没有被修复。查看bug报告是否会引导您了解如何在特定情况下解决此问题;您还可以使用调试器找出程序试图访问的系统属性以及如何避免这种情况。