MarvinSketch in Firefox 1.5 with MolFormatException

User 6bec43dc6c

23-09-2008 09:49:38

Hi,





I'm using MarvinSketch in my web interface and one of my users reported a bug with Firefox 1.5 which I had not noted before. I preset the molfile in the applet parameter with an empty molfile or load one up from a previous query. I get the following stack trace exception. I've tested this with the current version 5.1.1 and an older version of Marvin Sketch 5.0.3. The strang thing is that this does not happen in Firefox 2 or 3 so it seems specific to firefox 1.5. My Java on my browser is JRE version 1.6_07.





You can see the url where I'm using it as its publicly facing:


http://www.ebi.ac.uk/chebi/advancedSearchForward.do





Here is my applet code:


<applet id="editor" name="MSketch" width="400" height="350" code="JMSketch.class" codebase="applets/marvinSketch" archive="jmarvin.jar">


<param name="autoscale" value="true"/>





<param name="mol" value="\


Marvin 04270821502D \


\


0 0 0 0 0 0 999 V2000\


M END\


" />





</applet>





Here is the exception:


chemaxon.formats.MolFormatException: Molecule cannot be imported


at chemaxon.marvin.io.MRecordImporter.readDoc(Unknown Source)


at chemaxon.marvin.util.MolLoader.a(Unknown Source)


at chemaxon.marvin.util.MolLoader.run(Unknown Source)


at chemaxon.marvin.common.swing.MolPanel.startLoader(Unknown Source)


at chemaxon.marvin.sketch.swing.SketchPanel.setMol(Unknown Source)


at JMSketch.b(Unknown Source)


at JMSketch.run(Unknown Source)


at java.lang.Thread.run(Unknown Source)





Thanks,


Paula

ChemAxon 7c2d26e5cf

25-09-2008 17:09:54

Can you attach the whole HTML or at least the applet code sniplet in a separate file?


I do not see from the code where are extra spaces, since the forum editor trim them.

User 6bec43dc6c

26-09-2008 08:56:26

Hi,





You can get the full html code on this link:


http://www.ebi.ac.uk/chebi/advancedSearchForward.do





I've currently downgraded to MarvinSketch version 5.0.3, however if I search and return to back to the applet I get the same error.





Version 5.1.1 won't load the page without a stack trace error.





Cheers,


Paula

ChemAxon 7c2d26e5cf

29-09-2008 10:27:57

Thanks for the example.


We have checked it but we have not managed to reproduce this bug in this Firefox version.


Do you think it is a critical issue? Firefox 1.5 is a ancient browser, as I know it has not been supported yet and it is unreachable on Mozilla site.

User 6bec43dc6c

07-10-2008 12:45:55

My only concern is that some Linux versions still use the older Firefox but you right its not an essential fix.