Applet problems

User eda6f877b4

05-01-2010 18:50:04

Hi,


I am still in the process of (re)creating an application that uses the jchem and marvin sketch. I am running on jchem 5.2.4.


I am facing 2 problems:


1: I cannot draw rings from the group with benezene ring. It allows me to click it but it will not draw in the canvas.


2. When displaying en the viewer the following error is reported: 'Error in module Clean 2D' giving the following stack trace:


java.lang.NoClassDefFoundError: Could not initialize class chemaxon.marvin.modules.GraphInvariants
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at chemaxon.marvin.io.formats.smiles.SmilesExport.<clinit>(Unknown Source)
    at chemaxon.marvin.modules.Clean2D.o(Unknown Source)
    at chemaxon.marvin.modules.Clean2D.modfunc(Unknown Source)
    at chemaxon.struc.MoleculeGraph.clean(Unknown Source)
    at chemaxon.struc.Molecule.clean(Unknown Source)
    at chemaxon.struc.MoleculeGraph.clean(Unknown Source)
    at chemaxon.marvin.common.swing.MolPanel.molLoaded(Unknown Source)
    at chemaxon.marvin.view.swing.ViewPanel.molLoaded(Unknown Source)
    at chemaxon.marvin.view.swing.ViewPanel.molLoaderFinished(Unknown Source)
    at chemaxon.marvin.util.MolLoader.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)


This is running at an online site and I can send you address and login information if you need to see for yourself.


The problems is not there when I run the app locally.


Regards


Dann

ChemAxon 6e93227fcc

05-01-2010 19:00:26

Hi Dann,


Could you provide more informations?


1. What applet package do you use (which version)?


2. What server do you use, IIS?


3. With what browser and JRE version did you tried it our on your client computer (also x86 or x64)?


However if you said it is running correctly locally I suspect the problem comes from IIS. Check this link, it might help you out http://www.chemaxon.com/marvin/help/developer/applets/appletfaq.html#iis.


Calin Naghi.

User eda6f877b4

06-01-2010 07:58:53

Hi Calin,


To answer your question:


1: Applet package version: 5.2.1_1 (from the applet in the browser)


2: I believe IIS server is 6.0 but will investigate...


3: Browser is both IE 8 and firefox: 3.5.6, the jre that is running is: Java 1.6.0_15.


 


You may be rigth that the error in loading the viewer is caused by mime types. I am having this hosted and will have a talk to them about this.


But the issue about the 'inactive' toolbars should not be caused by the mime types.


 


Dann

ChemAxon 6e93227fcc

07-01-2010 15:46:37

Hi Dann,


I talked to my colleagues and it might be a problem caused by latest JRE updates. These problems should be fixed in 5.3 version which will be released in few days.


If you can't wait until the new release comes out you might try other version of our applets (older or newer) and see if the problems still persist.


Calin.

User eda6f877b4

07-01-2010 20:17:41

Hi Calin,


Well I tried updating the IIS withe mime types descriped in the marvin faq and appearently all the aplet problems has now dissappeared.


So Adding the mime types seems to solve the problem after all!


Thanks for allways competent support!


Regards


Dann