更新Java会导致applet停止工作 - 找不到testJava2_1 / TestVMApplet.class

时间:2012-05-29 17:02:09

标签: java applet

平,

在Windows 7-64位上将我的java版本从6u31更新到7u4后,applet停止工作。我使用java-32位,浏览器也是32位(尝试IE9和Firefox 12.0),唯一的原因是更新java。 我使用了来自http://www.java.com/en/download/testjava.jsp的测试,得到了这个结果:

 security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
 security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
 security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
 security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
 security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
 security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
 security: property package.definition value null
 security: property package.definition new value com.sun.javaws
 security: property package.definition value com.sun.javaws
 security: property package.definition new value com.sun.javaws,com.sun.deploy
 security: property package.definition value com.sun.javaws,com.sun.deploy
 security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
 security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
 security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
 security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
 security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
 basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@1cc55fb
 basic: Plugin2ClassLoader.addURL parent called for http://www.java.com/applet/TestVM2-test.jar
 network: Cache entry not found [url: http://www.java.com/applet/TestVM2-test.jar, version: null]
 network: Connecting http://www.java.com/applet/TestVM2-test.jar with proxy=DIRECT
 network: Connecting http://www.java.com:80/ with proxy=DIRECT
 network: Cache entry not found [url: http://www.java.com/applet/TestVM2-test.jar, version: null]
 network: Cache entry not found [url: http://www.java.com/applet/TestVM2-test.jar, version: null]
 network: Connecting http://www.java.com/applet/TestVM2-test.jar with proxy=DIRECT
 network: Connecting http://www.java.com:80/ with proxy=DIRECT
 network: Connecting http://www.java.com/applet/TestVM2-test.jar with proxy=DIRECT
 network: Connecting http://www.java.com:80/ with proxy=DIRECT
 java.net.SocketException: Permission denied: connect

 bla bla bla

network: Cache entry not found [url: http://www.java.com/applet/TestVM2-test.jar, version: null]
network: Connecting http://www.java.com/applet/TestVM2-test.jar with proxy=DIRECT
network: Connecting http://www.java.com:80/ with proxy=DIRECT
network: Cache entry not found [url: http://www.java.com/applet/TestVM2-test.jar, version: null]
network: Cache entry not found [url: http://www.java.com/applet/TestVM2-test.jar, version: null]
network: Connecting http://www.java.com/applet/TestVM2-test.jar with proxy=DIRECT
network: Connecting http://www.java.com:80/ with proxy=DIRECT
network: Connecting http://www.java.com/applet/TestVM2-test.jar with proxy=DIRECT
network: Connecting http://www.java.com:80/ with proxy=DIRECT
java.net.SocketException: Permission denied: connect

bla bla bla

network: Cache entry not found [url: http://www.java.com/applet/, version: null]
network: Cache entry not found [url: http://www.java.com/applet/testJava2_1/TestVMApplet.class, version: null]
network: Connecting http://www.java.com/applet/testJava2_1/TestVMApplet.class with proxy=DIRECT
network: Connecting http://www.java.com:80/ with proxy=DIRECT
network: Cache entry not found [url: http://www.java.com/applet/testJava2_1/TestVMApplet/class.class, version: null]
network: Connecting http://www.java.com/applet/testJava2_1/TestVMApplet/class.class with proxy=DIRECT
network: Connecting http://www.java.com:80/ with proxy=DIRECT
java.lang.ClassNotFoundException: testJava2_1.TestVMApplet.class

bla bla bla

basic: load: class testJava2_1/TestVMApplet.class not found.
java.lang.ClassNotFoundException: testJava2_1.TestVMApplet.class

bla bla bla

Ignored exception: java.lang.ClassNotFoundException: testJava2_1.TestVMApplet.class
basic: Dialog type is not candidate for embedding
basic: Removed progress listener: sun.plugin.util.ProgressMonitorAdapter@1cc55fb
basic: Loading Java Applet Failed...
security: Reset deny session certificate store

我已经尝试了很多不同的选择,例如禁用防火墙,禁用Java控制面板上的下一代插件,清除缓存,卸载和重新安装(JRE和JDK),使用混合模式安全验证,也许还有一些我不记得了。 我不知道还有什么我可以尝试让它发挥作用..任何人经历过同样的事情并解决了它?

啊,作为公司政策,如果可能的话,我们必须坚持使用最新版本,因为安全性更新。

1 个答案:

答案 0 :(得分:1)

好的,问题是我在使用java访问页面时连接了VPN(CISCO)。从Java 7开始,由于Ipv6(http://jonathangiles.net/blog/?p=1126)存在问题。所以我从VPN连接禁用它并将此行添加到java运行时参数: -Djava.net.preferIPv4Stack =真

现在它工作正常。