java - SecurityManager.checkPropertyAccess 为现有系统属性抛出 AccessControlException

标签 java google-app-engine

我有一些第三方代码,它使用 SecurityManager.checkPropertyAccess(...) 来检查它是否可以访问系统属性。尽管我在 appengine-web.xml 中设置了系统属性并且可以通过 System.getProperty(...) 访问该属性,但此方法会引发 AccessControlException。有办法解决这个问题吗?

感谢您的帮助!

最佳答案

根据 Sandbox在应用程序引擎上,我猜测它是禁用的功能之一,因为它抛出了 AccessControlException

关于java - SecurityManager.checkPropertyAccess 为现有系统属性抛出 AccessControlException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9438037/

相关文章:

javascript - 我想通过jsp将我的表数据保存在mysql数据库中

java - 将 Struts 2.3 迁移到 2.5 时遇到的问题

python - 使用 CherryPy 和 Google App Engine : any updated guides? 的 "Hello World"的第一步

java - 使用Objectify在GAE上并发写入数据

java - 带有 Objectify 的基本 GAE 应用程序失败

google-app-engine - 在 App Engine 标准环境中将运行时从 Python 更改为 Go

Java-创建对象类型的数组是不好的做法吗

java - StreamSupport 收集器和 Java 7

java - JFrame "Window"及其内容没有显示,为什么?

google-app-engine - Google App Engine 开发服务器日志位置