2012-05-29 42 views
1

喜,更新的Java小程序導致停止工作 - testJava2_1/TestVMApplet.class沒有找到

我更新後從6u31我的Java版本在Windows 7U4 7-64位,小程序停止工作。我使用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: [email protected] 
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: [email protected] 
basic: Loading Java Applet Failed... 
security: Reset deny session certificate store 

我已經嘗試了很多像禁用防火牆,禁用下一代插件在Java控制面板,清除緩存不同選擇,卸載和重新安裝(包括JRE和JDK),玩混合模式安全驗證,或許還有一些我不記得了。 我不知道還有什麼我可以嘗試使其工作..任何人都經歷了相同的並解決了它?

啊,作爲公司政策,我們必須堅持最新版本,如果可能的話,由於安全更新。

+0

*「作爲公司政策,如果可能的話,由於安全更新,我們必須堅持使用最新版本。」* 1.7尚未被視爲「生產就緒」。 Oracle不會將其作爲自動更新的一部分推出。至於這個問題,檢查錯誤數據庫,如果找不到,就提出一個錯誤。 –

+0

好吧,現在看起來Java 7是默認設置,他們開始逐漸將更新推送給所有人:https://blogs.oracle.com/henrik/entry/moving_to_java_7_as 和 http:// java .com/en/java7faq/ 。也會提高bug – Richard

回答

1

好的,問題是我在用java訪問頁面時連接了VPN(CISCO)。自Java 7以來,由於Ipv6(http://jonathangiles.net/blog/?p=1126)而出現問題。所以我從VPN連接中禁用它,並將此行添加到java運行時參數: -Djava.net.preferIPv4Stack = true

現在它工作正常。