This discussion is archived
8 Replies Latest reply: Oct 7, 2012 2:45 PM by odupuy RSS

Updating to java 7 causes applets to stop working

940533 Newbie
Currently Being Moderated
Hei,

After I updated my java version from 6u31 to 7u4 on a windows 7-64 bits, applets stopped working. I use java-32 bits and the browsers are also 32 bits(tried IE9 and Firefox 12.0) , and the only cause was updating the java. I used the test from http://www.java.com/en/download/testjava.jsp, and got this as result:

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


I already tried a lot of different alternatives like disabling the firewall, disabling the next generation plug-in on Java Control Panel, clearing the cache, uninstalling and re-installing (both JRE and JDK), playing with mixed mode security verification, and maybe some more I don't remember. I have no idea what else I could try to make it work.. Anyone experienced the same and solved it?
  • 1. Re: Updating to java 7 causes applets to stop working
    RogerL (Oracle) Java Champion
    Currently Being Moderated
    Hello,

    I am exactly sure what is happening. Based on part of the error logs included it seems like it could be a network issue. Are you in an environment that uses a proxy? Many business/organizations/corporations use proxies that allow/control/prevent applications in accessing the internet. If you are using a proxy and your web browser is able to connect to the internet, the settings will appear in the browser settings, so that is one place to check if you are not sure.

    The lines that lead me to this thought:

    network: Connecting http://www.java.com:80/ with proxy=DIRECT
    java.net.SocketException: Permission denied: connect


    network: Connecting http://www.java.com:80/ with proxy=DIRECT
    java.lang.ClassNotFoundException: testJava2_1.TestVMApplet.class


    Here are instructions on setting the proxy.
    http://www.java.com/en/download/help/proxy_setup.xml

    -Roger
  • 2. Re: Updating to java 7 causes applets to stop working
    940533 Newbie
    Currently Being Moderated
    Hei Roger,
    thanks for your reply. It pointed me to the right direction. In fact the problem was that I was connected on VPN (CISCO) while accessing pages with java. Since Java 7, there is a problem due to Ipv6 (http://jonathangiles.net/blog/?p=1126). So I disabled it from the VPN connection and added this line to the java runtime parameters:
    -Djava.net.preferIPv4Stack=true

    Now it's ok :)

    BR,
    Richard
  • 3. Re: Updating to java 7 causes applets to stop working
    RogerL (Oracle) Java Champion
    Currently Being Moderated
    Hi Richard,

    Good find. I want to look into the cause further.

    Reading through the thread http://www.java.net/node/703177 there is a mention of the Cisco VPN version. What is the specific name and and version of Cisco VPN is being used? Cisco's site shows version 2, 2.4, and 2.5. The most recent release is in the 2.5 family, 2.5.3055.

    http://www.cisco.com/cisco/software/release.html?mdfid=281278373&flowid=4469&softwareid=282364313&release=2.5.3055&relind=AVAILABLE&rellifecycle=&reltype=latest

    Thanks again,
    Roger
  • 4. Re: Updating to java 7 causes applets to stop working
    940533 Newbie
    Currently Being Moderated
    Hi Roger,
    the version we are using here is the 2.4.1012

    It seems it happens also with the 2.5 still as I could see in that other thread..

    Br,
    Richard
  • 5. Re: Updating to java 7 causes applets to stop working
    RogerL (Oracle) Java Champion
    Currently Being Moderated
    I have tested with 2.5.3055, the only version I have, and am not seeing the problem.

    The version listed on the java.net forum is 2.5.1025
    2.5.3055 was released 27-SEP-2011
    2.5.1025 does not actually show up on the list of releases on the cisco site. This could have been a private release or a typo.

    2.5.3055 is the 12th release in the 2.5 family with a significant number of bugs fixed through the the releases. If you have not contacted Cisco in regards to this issue with the latest 2.4 release, you may want to do so.

    -Roger
  • 6. Re: Updating to java 7 causes applets to stop working
    945111 Newbie
    Currently Being Moderated
    Thanks! I had exactly the same problem after upgrading to Java7 with networking over Cisco VPN.

    I didn't have to tweak my VPN settings at all, just add the "-Djava.net.preferIPv4Stack=true" runtime parameter to my Tomcat server.
  • 7. Re: Updating to java 7 causes applets to stop working
    gimbal2 Guru
    Currently Being Moderated
    Just to note: its not really a fix but more a workaround. Apparently your hardware is not equipped to deal with IPv6 properly which might make you run into trouble in the future as IPv4 is basically done for now. Best to keep that in mind.
  • 8. Re: Updating to java 7 causes applets to stop working
    odupuy Newbie
    Currently Being Moderated
    Same error with both IE 9 and FF 15 on W7 32 bits. I had both J1.6.0.35 and 1.7.07 enabled.

    I had the error ClassNotFoundException for testJava2_1.TestVMApplet.class on http://www.java.com/en/download/testjava.jsp.
    I have tried all the suggested tricks on the test page, reinstall the JRE, check the add ons, clear the cache...

    I have used the above trick of adding in control panel / Java / Java / View / Runtime parameters the value -Djava.net.preferIPv4Stack=true for my 2 JRE then saved
    then restarted my browser and suddenly it worked.*

    I have no Cisco equipment or sofware but doing an "IPconfig / all" on the command line, yes I have an IPv4 and IPv6.

    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . : xxx.xxx.XXX.com
    IPv4 Address. . . . . . . . . . . : 192.168.0.11
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.0.1

    Tunnel adapter Teredo Tunneling Pseudo-Interface:
    Connection-specific DNS Suffix . :
    IPv6 Address. . . . . . . . . . . : XXXX.XXXX.XXXX.XXXX.XXXX.XXXX.XXXX.XXXX.
    Link-local IPv6 Address . . . . . : fxxxxxxxxxxxxxxxxxxxxxxx
    Default Gateway . . . . . . . . . : ::

    Nowadays IPv6 is more and more common for all the ISP but all the software still prefer the IPv4 stack.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points