Exception while loading MSketch.

User ab2ab2d9b0

23-10-2008 03:27:35

Please have a look at the following stack trace and help me in fixing this. I am getting this exception in the java console whenever I go to the page embedded with this applet. Anyone have ever crossed across this type of exception?





Code:
JMSketch initalization has failed in AWT-EventQueue thread:


java.lang.NullPointerException


at chemaxon.marvin.plugin.PluginFactory.getCount(Unknown Source)


at chemaxon.marvin.plugin.PluginManager.callback(Unknown Source)


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


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


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


at chemaxon.marvin.sketch.swing.SketchPanel.<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.pumpOneEventForHierarchy(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)

ChemAxon a9ded07333

23-10-2008 20:42:32

Could you give some details - maybe source code - about the page or applet you were loading when this exception occurred?


This message is rather general without knowing the circumstances to answer your question.





Best regards,


Tamás

User 03348afb2d

23-12-2008 14:20:07

Hi,


I have exactly the same error. It's not when I load an applet, but simply when I invoke msketch from the command line.


Any suggestions?





Thanks,


Shmulik


selmakies@ilc00:JChem$ ./bin/msketch


Exception during event dispatch:


java.lang.NullPointerException


at java.util.Hashtable.put(libgcj.so.7rh)


at javax.swing.plaf.basic.BasicToolBarUI.setBorderToRollover(libgcj.so.7rh)


at javax.swing.plaf.basic.BasicToolBarUI$ToolBarContListener.componentAdded(libgcj.so.7rh)


at java.awt.Container.addImpl(libgcj.so.7rh)


at javax.swing.JToolBar.addImpl(libgcj.so.7rh)


at chemaxon.marvin.uif.util.swing.ExtendedToolBar.addImpl(ExtendedToolBar.java:85)


at java.awt.Container.add(libgcj.so.7rh)


at chemaxon.marvin.sketch.swing.TemplateToolBarHandler.updateToolBar(TemplateToolBarHandler.java:240)


at chemaxon.marvin.sketch.swing.TemplateToolBarHandler.templateLoadingFinished(TemplateToolBarHandler.java:151)


at chemaxon.marvin.sketch.swing.TemplateHandler.templateLoadingFinished(TemplateHandler.java:243)


at chemaxon.marvin.sketch.swing.SketchPanel.molLoaderFinished(SketchPanel.java:3098)


at chemaxon.marvin.util.MolLoader.run(MolLoader.java:361)


at java.awt.event.InvocationEvent.dispatch(libgcj.so.7rh)


at java.awt.EventQueue.dispatchEvent(libgcj.so.7rh)


at java.awt.EventDispatchThread.run(libgcj.so.7rh)


Exception during event dispatch:


java.lang.NullPointerException


at java.util.Hashtable.put(libgcj.so.7rh)


at javax.swing.plaf.basic.BasicToolBarUI.setBorderToRollover(libgcj.so.7rh)


at javax.swing.plaf.basic.BasicToolBarUI$ToolBarContListener.componentAdded(libgcj.so.7rh)


at java.awt.Container.addImpl(libgcj.so.7rh)


at javax.swing.JToolBar.addImpl(libgcj.so.7rh)


at chemaxon.marvin.uif.util.swing.ExtendedToolBar.addImpl(ExtendedToolBar.java:85)


at java.awt.Container.add(libgcj.so.7rh)


at chemaxon.marvin.sketch.swing.TemplateToolBarHandler.updateToolBar(TemplateToolBarHandler.java:240)


at chemaxon.marvin.sketch.swing.TemplateToolBarHandler.templateLoadingFinished(TemplateToolBarHandler.java:151)


at chemaxon.marvin.sketch.swing.TemplateHandler.templateLoadingFinished(TemplateHandler.java:243)


at chemaxon.marvin.sketch.swing.SketchPanel.molLoaderFinished(SketchPanel.java:3098)


at chemaxon.marvin.util.MolLoader.run(MolLoader.java:361)


at java.awt.event.InvocationEvent.dispatch(libgcj.so.7rh)


at java.awt.EventQueue.dispatchEvent(libgcj.so.7rh)


at java.awt.EventDispatchThread.run(libgcj.so.7rh)

ChemAxon 7c2d26e5cf

23-12-2008 17:17:11

Hi,





Answering your question is very hard if we do not know your software environment and there is no detailed scenario how to reproduce this issue.





We do not know about any launching error by MarvinSketch.





I have only an intuition. I assume that you have tried to run Marvin under Linux with a non-supported Java version. Linux users often try to launch Marvin with the bundled Java of the Linux distribution (Open JDK or Kaffe) instead of the Sun distributed one.





In first round, please read the referred part of the Marvin manual and check whether your environment supplies the system requirements of Marvin. System requirements





If the proper Java is used, it can be an unknown compatibility issue.


In this case, please give the following info to be able to debug it:


- type of the operating system


- Java version


- Marvin version


- How did you installed Marvin Beans package (extracted zip archive or run platform specific installer)?


- Have you removed any resources from the package after installation?


- Did the error occur by startup or you have done any action after displaying of MarvinSketch window?