Exceptions in MarvinSketch startup

User 60b60eaf80

19-01-2009 09:54:32

Hi, we are encountering two exceptions when starting JMSketch as Applet.





Code:
java.lang.NullPointerException: in is null


    at java.util.zip.ZipInputStream.(Unknown Source)


    at chemaxon.struc.PeriodicSystem.a(Unknown Source)


    at chemaxon.struc.PeriodicSystem.(Unknown Source)


    at chemaxon.marvin.sketch.swing.actions.template.AtomActionFactory.createActions(Unknown Source)


    at chemaxon.marvin.uif.module.action.ActionSet.a(Unknown Source)


    at chemaxon.marvin.uif.module.action.ActionSet.a(Unknown Source)


    at chemaxon.marvin.uif.module.action.ActionSet.installActions(Unknown Source)


    at chemaxon.marvin.uif.module.support.DefaultModuleConfiguration.createLocalActions(Unknown Source)


    at chemaxon.marvin.uif.module.GUIModule.b(Unknown Source)


    at chemaxon.marvin.uif.module.GUIModule.getActions(Unknown Source)


    at chemaxon.marvin.uif.module.GUIModule.getMenuBarController(Unknown Source)


    at chemaxon.marvin.uif.module.GUIModule.getMenuBar(Unknown Source)


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


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


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


    at JMSketch.a(Unknown Source)


    at JMSketch.a(Unknown Source)


    at JMSketch$1.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)


Invalid factory class class chemaxon.marvin.sketch.swing.actions.template.AtomActionFactory


java.lang.NullPointerException


    at chemaxon.struc.PeriodicSystem.getElementCount(Unknown Source)


    at chemaxon.marvin.sketch.swing.actions.template.AtomActionFactory.createActions(Unknown Source)


    at chemaxon.marvin.uif.module.action.ActionSet.a(Unknown Source)


    at chemaxon.marvin.uif.module.action.ActionSet.a(Unknown Source)


    at chemaxon.marvin.uif.module.action.ActionSet.installActions(Unknown Source)


    at chemaxon.marvin.uif.module.support.DefaultModuleConfiguration.createLocalActions(Unknown Source)


    at chemaxon.marvin.uif.module.GUIModule.b(Unknown Source)


    at chemaxon.marvin.uif.module.GUIModule.getActions(Unknown Source)


    at chemaxon.marvin.uif.module.GUIModule.getMenuBarController(Unknown Source)


    at chemaxon.marvin.uif.module.GUIModule.getMenuBar(Unknown Source)


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


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


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


    at JMSketch.a(Unknown Source)


    at JMSketch.a(Unknown Source)


    at JMSketch$1.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)


  





   we are using this to embed it into our side








Code:



<embed id="ext-gen929" type="application/x-java-applet;version=1.3" pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html" name="JMSketch" codebase="./marvin" archive="jmarvin.jar" code="JMSketch" menubar="false" detach="hide" undetachbyx="false" autoscale="true" width="160" height="160">


<noembed>


YOU CANNOT SEE A JAVA APPLET HERE


</noembed>


ChemAxon 909aee4527

19-01-2009 10:06:47

Hi,





this seems to be the same problem as in this topic: http://www.chemaxon.com/forum/ftopic4322.html





Did you just simply extract Marvin Applets to the marvin subdirectory without any change in it?





Kind regards,





Judit

ChemAxon 909aee4527

19-01-2009 14:21:38

Thank you for the feedback in the other topic. We are glad that it could be solved.