我正在构建一个想要在浏览器中运行的 JavaFX GUI。GUI 连接到 Jersey Webservice,如果我将 JavaFX 代码作为独立运行,则可以正常运行,但是,如果我在浏览器中运行,则会出现以下异常。我已经对我的 jar 文件进行了自签名,但问题仍然存在:
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "com.sun.jersey.core.util.ReaderWriter.BufferSize" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.FXAppletSecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at com.sun.jersey.core.util.ReaderWriter.getBufferSize(ReaderWriter.java:91)
at com.sun.jersey.core.util.ReaderWriter.(ReaderWriter.java:87)
提前致谢。