这个异常是什么意思?我该如何解决这个问题?爪哇

发布于 2024-09-01 18:26:54 字数 1177 浏览 1 评论 0原文

我正在使用 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)

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(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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

傲娇萝莉攻 2024-09-08 18:26:54

您似乎遇到了此错误。该程序正在尝试读取小程序沙箱不允许其读取的系统属性,并且 IcePDF 无法正确处理随后发生的 SecurityException

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.

梦开始←不甜 2024-09-08 18:26:54

当当前线程耗尽其堆栈空间时会引发此异常。当函数递归太多次时,就会发生这种情况,通常是由于非终止递归造成的。

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.

〃安静 2024-09-08 18:26:54

你编译了一些没有调试符号的东西,这就是为什么你到处都能看到未知来源。主要的事情是不言而喻的,您的 SecurityManager 没有设置执行 java.lang.System.getProperty() 的正确权限。您需要配置小程序安全权限,以允许该库访问它试图获取的任何属性。您可能需要签署您的 Applet,以便您的代码工作。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文