Technical Support Forum Index
Technical Support Forum
Access ChemAxon scientists and developers here. For confidential or other support please email.
The time now is Tue Feb 09, 2010 12:42 pm
 <b>Register</b> (required to post and download)Register (required to post and download)
 Username:    Password:   Remember login       
 FAQFAQ   SearchSearch   DigestsDigests 
Applets and Java plugin2 issue with Java (>=1.6.0_15)
To watch this topic for replies  Register (enables digests) or give email address:
Reply to topic    Home -> Forums -> Support -> Drawing & visualization: Marvin/Sketch /View /Space -> Applets and Java plugin2 issue with Java (>=1.6.0_15)

Display posts from previous:        View previous topic :: View next topic    
Author Message
ifajth
Joined: 03 Dec 2007
Posts: 58
ChemAxon personnel

View user's profile



Back to top
Post subject: Applets and Java plugin2 issue with Java (>=1.6.0_15)
Link to postPosted: Thu Sep 24, 2009 1:12 pm  Reply with quote

ChemAxon found a serious incompatibility issue between Marvin Applets and the Next Generation Java plugin (also known as plugin2 introduced in Java 1.6.0_10) with 1.6.0_15 and higher versions: Sometimes, when an applet is restarted a NoClassDefFoundError is thrown.

Details:
If the classes of a package are separated into two or more jar files, and the applet is restarted before all the classes of a package are downloaded into the cache, then upon downloading a jar that contains another class of the source package, this class will not be found in the downloaded resources and a NoClassDefFoundError is thrown from AppletClassLoader.

The cause of the error:
The AppletClassloader discovers the ClassPath and downloads the jar which contains the class, and after the new jar is downloaded the AppletClassLoader tries to load the class but fails. The fallback mechanism then tries to load the class file from the codebase of the applet, but there are no class files in the codebase, so an error is raised.

Since inside Marvin we have packages for applets that are separated into more jars (for different reasons) this affects the Marvin code deeply and it is hard to redesign it quickly.

A complete bug report has already been posted to Sun, and we are now trying to identify where this issue should be fixed. Until the final solution is achived, we suggest to use one of the following two workarounds:
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.

We are really sorry for any inconvenience caused by this issue. We will notify you in this topic if we have any further information.
Should you have any questions related to this issue please do not hesitate to ask us in this topic.

The Support Team

ifajth
Joined: 03 Dec 2007
Posts: 58
ChemAxon personnel

View user's profile



Back to top
Post subject: Sun dispatched our bug reports
Link to postPosted: Tue Oct 06, 2009 2:08 pm  Reply with quote

Sun has dispatched our bug report in their bug database.

Our bug reports can be found at:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6888527
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6888528

 

aalba
Joined: 10 Jun 2008
Posts: 12


View user's profile



Back to top
Post subject: Problem Observed as well on SUN 1.6.0_16
Link to postPosted: Tue Nov 17, 2009 11:22 pm  Reply with quote

The same issue has been observed on IE 7 and IE 8 with Sun plugins version 1.6.0_16

 

Are there any estimates for a fix?

aalba
Joined: 10 Jun 2008
Posts: 12


View user's profile



Back to top
Post subject: SUN declining responsibility
Link to postPosted: Tue Nov 17, 2009 11:31 pm  Reply with quote

To whom it may concern,

 

The two bugs reports form the links above are closed as not reproducible on Verision 1.6.0_18 which is not currently available fo download form http://java.sun.com/javase/downloads/index.jsp. The latest JRE available is update Java 6 update 17.

aalba
Joined: 10 Jun 2008
Posts: 12


View user's profile



Back to top
Post subject: Problem still present at 1.6.0_17
Link to postPosted: Wed Nov 18, 2009 1:42 am  Reply with quote

After updating to Java 6 update 17 the issue persists on IE 7 and 8.

ifajth
Joined: 03 Dec 2007
Posts: 58
ChemAxon personnel

View user's profile



Back to top
Post subject:
Link to postPosted: Wed Nov 18, 2009 6:35 am  Reply with quote

Yes unfortunatelly they can not reproduce the bug, because they trying with class files next to the jar files, and in this way the security exception they got is normal. It seemed to me they have not tried with only the jar files.

In the sun developer comment of the bug, was only one thing i have not tried ever, i have never enumerated all the jar files for the codebase property since this list have to take place in the manifest of the main jar as the ClassPath. After the suggestion, i have tried this, but nothing happens, and the problem persist with enumerated jars also.

I have tested this with an early access build of 1.6.0_18 and the problem is persist with that too.

I would rahter not give estimations since we are not absolutely sure about the root of the problem, so currently we do not have any plan on how to fix this.

The only thing i can tell is that, now we are concentrating on the last fixes for the feature set of Marvin and Jchem 5.3 release, after the release is out, we will investigate further possibilities on this class loading problem.

Display posts from previous:   
Reply to topic    Home -> Forums -> Drawing & visualization: Marvin/Sketch /View /Space -> Applets and Java plugin2 issue with Java (>=1.6.0_15) All times are GMT + 1 Hour
Page 1 of 1
To watch this topic for replies   Register (enables digests) or give email address  
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum