Loading multiple mol files in mView applet

User 2f24778469

10-09-2009 19:09:06

I've been having trouble loading up multiple mol files in a single
mView applet. Everything works fine with them individually, but when I
try to load them into a mView table, the applet crashes.


The error window gives this stacktrace:


java.io.IOException: Cannot import file in format xyz
    at chemaxon.marvin.util.JavaLangUtil.newIOException(Unknown Source)
    at chemaxon.marvin.util.MolLoader.a(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 JMView.init(Unknown Source)
    at JMViewLaunch.changeSlapshToApplet(Unknown Source)
    at AppletLaunch$2.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)
Caused by: java.lang.NoClassDefFoundError: chemaxon/marvin/modules/BondsFromCoords
    at chemaxon.marvin.io.formats.xyz.XYZImport.setOptions(Unknown Source)
    at chemaxon.marvin.io.MRecordImporter.<init>(Unknown Source)
    ... 16 more




A single mol file works:


<embed width="100" height="100" type="application/x-java-applet;version=1.3" 
pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"
codebase="/path/to/marvin" archive="appletlaunch.jar" code="JMViewLaunch"
mol="@javascript-URI-encoded@667082%0A%20%20-OEChem-02060611582D%0A%0A%2017%2018%20%200%20%20%20%20%201%20%200%20%200%20%200%20%200%20%200999%20V2000%0AFdFWe7qV60%0AHtDWn8pV60%0AicFW28sV66%0AgMHWv6tV60%0AqtDWN8nV60%0Am6CWKAqV60%0As7CWW9mV60%0ApLHWl6vV80%0ALNAW3BnV60%0AB7JWM5sV80%0ANNAW8BpV60%0AlNHW56pV60%0Axd8WtBmV80%0AKeFWq6mV60%0ACsDWb9tV60%0AIOHWh5nV60%0A7Y6WW8nV60%0A10202%0A10301%0A10C01%0A20501%0A20601%0A30401%0A30F01%0A40802%0A40A01%0A50701%0A50E02%0A60B02%0A70902%0A90B01%0A90D01%0AC0G02%0AD0H01%0AE0G01%0AM%20%20END%0A"
implicith="@javascript-URI-encoded@heteroterm" molbg="@javascript-URI-encoded@%23ffffff" rendering="@javascript-URI-encoded@wireframe"/>


But trying to embed multiple structures fails:


<embed width="100" height="100" type="application/x-java-applet;version=1.3" 
pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"
codebase="/path/to/marvin" archive="appletlaunch.jar" code="JMViewLaunch"
cell1="@javascript-URI-encoded@597410%0A%20%20-OEChem-02060611582D%0A%0A%2017%2018%20%200%20%20%20%20%201%20%200%20%200%20%200%20%200%20%200999%20V2000%0AFF2WEk0W60%0Asl5WEk0W60%0AwV0Whk1W60%0AX04Whk1W66%0Abm%2BVEk0W60%0Abm%2BVKj%2BV60%0AFF2WKj%2BV60%0ABV7Whk1W80%0AG1zVtizV60%0AwV0WtizV60%0AG1zVhk1W60%0AHHxVKj%2BV60%0Asl5WKj%2BV80%0AHHxVEk0W60%0AfWvVahzV80%0AX04Wbl3W60%0ANltV1i%2BV60%0A10302%0A10401%0A10701%0A20401%0A20802%0A20D01%0A30501%0A40G0n%0A50602%0A50B01%0A60901%0A60A01%0A70A02%0A90C02%0AB0E02%0AC0E01%0AC0F01%0AF0H01%0AM%20%20END%0A"
cell0="@javascript-URI-encoded@7847186%0A%20%20-OEChem-02060612442D%0A%0A%2017%2018%20%200%20%20%20%20%201%20%200%20%200%20%200%20%200%20%200999%20V2000%0A7r%2BVQe0W60%0A7r%2BVug%2BV60%0AyX0WYe1W60%0AH8zVOc1W60%0AH8zVrhzV60%0A1Z0WOizV60%0AKF2Wze0W60%0A3TxVQe0W60%0A3TxVug%2BV60%0AjD2Wpm%2BV60%0AZw3W-d1W66%0AJnvVTjzV80%0Anb5W2g0W60%0A0w3WOZ3W60%0A%2BJtVb9-V60%0AYc7WYz1W80%0AdZ5W7k%2BV80%0A10202%0A10301%0A10401%0A20501%0A20601%0A30702%0A40802%0A50902%0A60A02%0A70A01%0A70B01%0A80901%0A90C01%0AB0D01%0AB0E01%0AC0F01%0AD0G01%0AD0H02%0AM%20%20END%0A"
rows="@javascript-URI-encoded@1" cols="@javascript-URI-encoded@2"
implicith="@javascript-URI-encoded@heteroterm"
molbg="@javascript-URI-encoded@%23ffffff"
rendering="@javascript-URI-encoded@wireframe"/>


I used the mView examples  as a basis for my code. Any pointers on what I'm doing wrong here?

ChemAxon 7c2d26e5cf

14-09-2009 15:45:38

Thanks for reporting this issue.


We are checking it.