我正在构建一个我想在浏览器中运行的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)
提前致谢。