1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Java applets fail to load, all browsers

Discussion in 'Software' started by Nakor BlueRider, Oct 12, 2008.

  1. Nakor BlueRider

    Nakor BlueRider Private E-2

    When attempting to load any web page with a Java applet (for example, the Sun web page for checking if Java is working here) the applet fails to load showing a red x in the corner. The status bar either displays "Applet [AppletNameHere] notinited" or "Java applet failed load".

    Running XP Pro x64 edition, same issue on both IE7 (32-bit) and FireFox 3. (IE7 64-bit is having a whole other issue so I wasn't able to test effectively on that.) Incidentally, while the current official release of Java does not support Chrome, a prerelease version on the Sun site does, but resulted in the exact same problem in Chrome as in FF3 and IE7.

    I've totally removed (including cleaning up the left behind folders in local/all users App. Data and Program/Common Files) Java and in my attempts to fix it tried reinstalling different versions (one at a time, removing each between): 1.5.0_16, 1.6.0_07 (current), and 1.6.0_10RC2 (prerelease) all failed in very similar fashion, with slightly different worded errors in the console.

    The only thing I could glean off the Java site is that is has to do with Proxy settings. I do not use a proxy of any sort (just a straight modem, not even a router). FireFox and IE are both set correctly not to use a Proxy. In the Java Control Panel, I've set the proxy to use browser, and to Direct Connection, neither to any avail. I have a proxy I can try to use, so I tried setting it to that, but it failed in the exact same manner. I've disabled my firewall (BitDefender Internet Security), PeerGuardian 2 and AdBlock Plus in FireFox with no change. I ran proxycfg at the command line and verified that it is set to direct connection as well.

    I currently have version 1.6.0_10RC2 installed, it's console errors were very similar to the current official release, but somewhat more detailed than Update 7's, so I'll post that for now. Logging is on, trace is set to the highest setting.

    Code:
    Java Plug-in 1.6.0_10-rc2
    Using JRE version 1.6.0_10-rc2 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\MyUserName
    ----------------------------------------------------
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    ----------------------------------------------------
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1aa9f99
    network: Cache entry not found [url: http://www.java.com/applet/testvmDynamicJavaComPopUp819.class, version: null]
    network: Connecting http://www.java.com/applet/testvmDynamicJavaComPopUp819.class with proxy=DIRECT
    network: Connecting http://www.java.com:80/ with proxy=DIRECT
    network: Connecting http://www.java.com/applet/testvmDynamicJavaComPopUp819.class with cookie "preturnPage=; Starload=star-fep3-zn-star-ext3; JSESSIONID=efeff12fb3b0041816e5a6fec02; JROUTE=g2vz; s_cc=true; s_sq=%5B%5BB%5D%5D"
    network: Connecting http://www.java.com:80/ with proxy=DIRECT
    network: Cache entry not found [url: http://www.java.com/applet/testvmDynamicJavaComPopUp819/class.class, version: null]
    network: Connecting http://www.java.com/applet/testvmDynamicJavaComPopUp819/class.class with proxy=DIRECT
    network: Connecting http://www.java.com:80/ with proxy=DIRECT
    network: Connecting http://www.java.com/applet/testvmDynamicJavaComPopUp819/class.class with cookie "preturnPage=; Starload=star-fep3-zn-star-ext3; JSESSIONID=efeff12fb3b0041816e5a6fec02; JROUTE=g2vz; s_cc=true; s_sq=%5B%5BB%5D%5D"
    network: Connecting http://www.java.com:80/ with proxy=DIRECT
    basic: load: class testvmDynamicJavaComPopUp819.class not found.
    load: class testvmDynamicJavaComPopUp819.class not found.
    java.lang.ClassNotFoundException: testvmDynamicJavaComPopUp819.class
    	at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    	at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.SocketException: Unexpected end of file from server
    	at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    	at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    	at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    	at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    	at java.net.HttpURLConnection.getResponseCode(Unknown Source)
    	at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    	at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    	at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	... 7 more
    Exception: java.lang.ClassNotFoundException: testvmDynamicJavaComPopUp819.class
    
    Here's hoping someone has a clue; I've been banging my head against the wall with this one for a few days and getting nowhere fast. I don't even really need Java for much, but at this point it's irritating the heck out of me that I can't fix it lol. Any thoughts would be much appreciated.
     
  2. Nakor BlueRider

    Nakor BlueRider Private E-2

    Java Ra failed to remove 6U10, so I removed it by hand, restarted, and installed 6U7 again as before, and it's back to that state. The problem is still the same as the last time I did so ("Applet [Name] notinited", followed by "Loading Java Applet Failed"); only difference is the console report is a little different. In case it helps any, here it is, trace set to max as before:

    Code:
    Java Plug-in 1.6.0_07
    Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\MyUserName
    ----------------------------------------------------
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    p:   reload proxy configuration
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    ----------------------------------------------------
    basic: Stopping applet ...
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@14f8dab
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@107077e, refcount=0
    basic: Caching classloader: sun.plugin.ClassLoaderInfo@107077e
    basic: Current classloader cache size: 1
    basic: Done ...
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    basic: Quiting applet ...
    basic: Joined applet thread ...
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@107077e, refcount=1
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@a9ae05
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: completed perf rollup
    network: Cache entry not found [url: http://www.java.com/applet/testvmDynamicJavaComPopUp819.class, version: null]
    network: Connecting http://www.java.com/applet/testvmDynamicJavaComPopUp819.class with proxy=DIRECT
    network: Connecting http://www.java.com/applet/testvmDynamicJavaComPopUp819.class with cookie "preturnPage=; s_sq=%5B%5BB%5D%5D; s_cc=true; JROUTE=g2vz; JSESSIONID=f2db12fafde9bffffffff85b660108d5230c; Starload=star-fep4"
    network: Cache entry not found [url: http://www.java.com/applet/testvmDynamicJavaComPopUp819/class.class, version: null]
    network: Connecting http://www.java.com/applet/testvmDynamicJavaComPopUp819/class.class with proxy=DIRECT
    network: Connecting http://www.java.com/applet/testvmDynamicJavaComPopUp819/class.class with cookie "preturnPage=; s_sq=%5B%5BB%5D%5D; s_cc=true; JROUTE=g2vz; JSESSIONID=f2db12fafde9bffffffff85b660108d5230c; Starload=star-fep4"
    load: class testvmDynamicJavaComPopUp819.class not found.
    java.lang.ClassNotFoundException: testvmDynamicJavaComPopUp819.class
    	at sun.applet.AppletClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    	at sun.applet.AppletPanel.createApplet(Unknown Source)
    	at sun.plugin.AppletViewer.createApplet(Unknown Source)
    	at sun.applet.AppletPanel.runLoader(Unknown Source)
    	at sun.applet.AppletPanel.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    basic: Exception: java.lang.ClassNotFoundException: testvmDynamicJavaComPopUp819.class
    
     
  3. durris

    durris Private E-2

    Nakor Blue Rider,

    I have exactly the same problem as you

    I have 3 XP-SP2 machines that I've had the problem on, one now works but I have absolutely no idea how I got it to, though I am wondering about whether my router firewall is the problem - just changed from a simple Netgear to a Cisco, which is much more complex, and which I had configurfed for me, so won't find it easy to sort. I think the machine that worked sprung to life when I went back to the old router, but this behaviour doesn't appear to be repeatable

    However, can I therefore ask, what sort of connection to the internet do you have? Does it have a firewall of its own?

    And does anyone here know whether to have Java applets work you ned a communication back in to your machine on a port that would be blocked incoming (i.e. comes back on a different port to anything such as a request that went out)
     
  4. durris

    durris Private E-2

    It's the router firewall, in some way.

    Didn't believe it could have been coincidence, so controlled test is:

    - test site I use is http://java.com/en/download/help/testvm.xml
    - uninstall all Java versions using add/remove progs, manually delete all java folders etc
    - download "offline" v6_07 Java from http://java.com/en/download/manual.jsp
    - disable software firewall, install Java
    - go to test page as above - via the Cisco router the error is "Java Applet Failed to Load..." and a red X where the Java display should be
    - I then turn off my new Cisco router and start my old router which is a Netgear DG834Gv4 with a completely factory-shipped firewall config
    - connect computers via this Netgear router
    - revisit the test site - applet now runs and ends with dancing man - even with the software firewall back on
    - having had it work once, turn off Netgear, turn Cisco back on
    - test page will now work (!) via Cisco router
    - have now done this with two other laptops, reproducibly, in addition to the one I was originally wasn't sure how I got it to work
     
  5. Nakor BlueRider

    Nakor BlueRider Private E-2

    Colour me incredibly confused. Of all things it was the anti-virus causing the problem. That's only a bit of a stretch of course. But more specifically, of all things it was the instant messenger scanning. I turn off IM scanning, Java works fine. I turn on IM scanning, no more Java.

    Mega weird.

    It's fine, since I don't use messengers at all, and therefore don't have any installed. In fact I went as far as to set a local policy to block windows messenger from constantly loading itself. Hmm - I wonder if that messed things up . . . anyway. As is usually the case for me, tack one more onto the list of solutions that make absolutely no sense whatsoever. Thanks for the ideas guys.

    Oh, and to answer your question Durris, although I guess it's not too important now, I do not have a router, it was a striaght cable connection.
     

Share This Page

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds