User 3afdb4ab90
26-03-2013 21:33:10
I have one particular cdx(binary) string that causes an error popup using MarvinView. Unfortunately, I cannot include that proprietary molecule's cdx string here. The applet works fine for many other cdx inputs. I also tried using mview_param("onError", ""); and mview_param("alertError", false); to catch the error, but this did not change the error popup.
<script>
var width = 800;
var height = 300;
mview_name = "MView";
mview_begin("/marvin", width, height);
mview_param("border", "1");
mview_param("mol", form1.cdx.value);
mview_param("molFormat", "cdx");
mview_end();
</script>
Versions:
Product Version:
MarvinView 5.12.0
Build Date:
2013-03-05
Internal build id:
5.12.0_b79
Operating System:
x86 Windows 7 6.1
Java:
Oracle Corporation Java 1.7.0_17
The popup error and stack trace:
ERROR:
Molfile cannot be loaded because an error occured:
java.lang.NullPointerException
#ffffffffffffffff
STACK TRACE:
java.lang.NullPointerException
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.a(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.readMol(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.readDocument(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXImport.readDocument(Unknown Source)
at chemaxon.marvin.io.MRecordImporter.b(Unknown Source)
at chemaxon.marvin.io.MRecordImporter.a(Unknown Source)
at chemaxon.marvin.io.MRecordImporter.b(Unknown Source)
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.view.swing.ViewPanel.startstop(Unknown Source)
at chemaxon.marvin.applet.AbstractMarvinApplet$3.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)