gpt4 book ai didi

php - SecureCookiePermission 问题 - Applet 无法与最新的 Java 6 更新 29 配合使用

转载 作者:行者123 更新时间:2023-12-02 08:06:46 27 4
gpt4 key购买 nike

在我们的网站中,我们使用的小程序在升级到 Java 6 Update 29 后无法正常工作。小程序应该与服务器通信以将数据存储到数据库。 Applet 在较低版本的 Java(更新 22、26 或 27)中运行良好,并且不可能要求我们的客户降级 Java 版本。我在 Java 控制台中发现了一些错误,我认为 java 无法访问/创建 cookie 或 session (某种权限问题)。谁能帮我解决这个问题吗?

谢谢!

network: Connecting http://www.example.com:80/ with proxy=DIRECT
java.security.AccessControlException: access denied (com.sun.deploy.security.SecureCookiePermission origin.http://www.example.com:80)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at com.sun.deploy.net.cookie.DeployCookieSelector.canServeCookies(Unknown Source)
at com.sun.deploy.net.cookie.DeployCookieSelector.get(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.setCookieHeader(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.writeRequests(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at ATutorApiAdapterApplet.ATutorCommit(ATutorApiAdapterApplet.java)
at ATutorApiAdapterApplet.LMSCommit(ATutorApiAdapterApplet.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin2.liveconnect.JavaClass$MethodInfo.invoke(Unknown Source)
at sun.plugin2.liveconnect.JavaClass$MemberBundle.invoke(Unknown Source)
at sun.plugin2.liveconnect.JavaClass.invoke0(Unknown Source)
at sun.plugin2.liveconnect.JavaClass.invoke(Unknown Source)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$DefaultInvocationDelegate.invoke(Unknown Source)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo.doObjectOp(Unknown Source)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$LiveConnectWorker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
network: Server http://www.example.com/write.php requesting to set-cookie with "Coyote-2-8b928cf0=a000200:0; domain=example.com; path=/"
network: Server http://www.example.com/write.php requesting to set-cookie with "SESSION=1v1md9bphfvgrqal38vg5quba1; path=/"
ATutor cmi storage failed.
java.security.AccessControlException: access denied (java.util.PropertyPermission http.strictPostRedirect read)

最佳答案

嗯...我不太确定,但这条线是

java.security.AccessControlException: access denied (com.sun.deploy.security.SecureCookiePermission origin.http://www.example.com:80)

可能表示该小程序正在尝试以“cookie”形式访问其源,或者某些 cookie 策略设置错误的内容,或者您​​的小程序未签名。

...因为cookies tut note说的是

You must sign your RIA JAR file in order to access cookies. See the documentation for the jarsigner tool to learn how to sign JAR files.

要查看更详细的信息,您可以阅读 thisthis

祝你好运

关于php - SecureCookiePermission 问题 - Applet 无法与最新的 Java 6 更新 29 配合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8041876/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com