Java update breaks the applet

Upload core product.
Post Reply
vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Java update breaks the applet

Post by vlad »

I've just updated to "1.6.0-oem" and the applet no longer works:
Exception: java.lang.NoClassDefFoundError: jfileupload/upload/client/MApplet
Please advise.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Java update breaks the applet

Post by support »

Did you try to clean both Java and browser cache ?

vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Re: Java update breaks the applet

Post by vlad »

Yes.
It seems that only my applet stopped working, your demo works fine. Do you know what might cause the error?

vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Re: Java update breaks the applet

Post by vlad »

It seems that your demo breaks as well, but not the simple demo, but the JavaScript API version. I get the exact same error. I am also using the JSAPI plugin, so I guess that's where the problem is.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Java update breaks the applet

Post by support »

You're using 1.6.0-oem or 1.6.0_17 ?

vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Re: Java update breaks the applet

Post by vlad »

I am now using "1.6.0_17" but it fails with both versions.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Java update breaks the applet

Post by support »

Ok, I've 1.6.0_11 and it works fine. I'm going to update to 1.6.0_17 to see what's wrong.
Also, it seems that such issue occurs since 1.6.0_15 according to SUN bug database:
http://bugs.sun.com/bugdatabase/view_bu ... id=6888527
http://bugs.sun.com/bugdatabase/view_bu ... id=6888528

Know workarounds are:
1. The latest Java version installed on the computer where the applet is used should not be newer than 1.6.0_14
2. On the computer where the applet is used the Next Generation Java Plugin should be disabled. It can be made by switching the corresponding checkbox to off in the Java Control Panel's Advanced tab in the "Java Plugin" section.
Both of these workarounds need administrator privileges on the computer.

BTW: Where did you get the -oem version ?

vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Re: Java update breaks the applet

Post by vlad »

support wrote:BTW: Where did you get the -oem version ?
From the Java automatic update. First time I installed the update it was the "-oem" version. I've uninstalled the update as it was breaking the applet. When I updated again it got the "_17" version.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Java update breaks the applet

Post by support »

Can you check if workaround #2 works for you ?

vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

Re: Java update breaks the applet

Post by vlad »

It seems that the problem is also related to Java's cache system. I had it disabled on my computer, to make sure I always get the updated applet loaded in my browser.
If I enable it, the problem goes away. This also explains why my users didn't complained yet, as most of them have the default Java settings.

With the Java cache disabled, disabling also the "next generation java plugin" seems to work.
So, it works either with the two settings on, or with both off.

Post Reply