User 57295192cc
25-03-2013 14:34:54
Hi,
We have an MSketchPane embedded in a dialog. The whole application is launched from an applet. File -> Save As sometimes fails silently, with a stack trace on the applet console. After a second try it seems to work. I suspect a problem related to loading classes when lazily loading the necessary jars. It only seems to happen if loading a jar takes long enough. (I couldn't reproduce the problem running everything on a local machine.)
First occasion:
java.lang.IllegalThreadStateException
chemaxon.marvin.util.MarvinModule.load(Unknown Source)
chemaxon.marvin.common.swing.MolPanel.loadLoadSaveModule(MolPanel.java:4325)
chemaxon.marvin.common.swing.MolPanel.saveMolfile(MolPanel.java:4290)
chemaxon.marvin.common.swing.MolPanel.saveMolfile(MolPanel.java:4273)
chemaxon.marvin.common.swing.MolPanel.saveMolfile(MolPanel.java:4257)
chemaxon.marvin.sketch.swing.SketchPanel.doSaveAs(SketchPanel.java:2016)
chemaxon.marvin.sketch.swing.actions.SaveAsAction.actionPerformed(SaveAsAction.java:27
Second occasion:
java.lang.RuntimeException: java.lang.ClassCastException:
< our JDialog subclass that contains MSketchPane >
cannot be cast to java.awt.Frame
at chemaxon.marvin.util.MarvinModule.load(Unknown Source)
at
chemaxon.marvin.common.swing.MolPanel.loadLoadSaveModule(MolPanel.java:4325)
at chemaxon.marvin.common.swing.MolPanel.saveMolfile(MolPanel.java:4290)
at chemaxon.marvin.common.swing.MolPanel.saveMolfile(MolPanel.java:4273)
at chemaxon.marvin.common.swing.MolPanel.saveMolfile(MolPanel.java:4257)
at chemaxon.marvin.sketch.swing.SketchPanel.doSaveAs(SketchPanel.java:2016)
at
chemaxon.marvin.sketch.swing.actions.SaveAsAction.actionPerformed(SaveAsAction.java:27)
Could you take a look at this please?
Thanks,
Pal