NullPointerException: Config file not found: /chemaxon/marvi

User 248fb9fe9c

20-08-2004 14:18:10

Hi,


I'm using the Swing version of the Applet in a web browser (IE 6 on Win 2K, Sun JDK 1.4.2). When I try to paste into it, the following shows up in the Java Console:


Config file not found: /chemaxon/marvin/calculations/plugins.properties





java.lang.NullPointerException





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





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





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





at chemaxon.marvin.common.swing.e.actionPerformed(Unknown Source)





at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)





at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)





at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)





at javax.swing.DefaultButtonModel.setPressed(Unknown Source)





at javax.swing.AbstractButton.doClick(Unknown Source)





at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)





at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)





at java.awt.Component.processMouseEvent(Unknown Source)





at java.awt.Component.processEvent(Unknown Source)





at java.awt.Container.processEvent(Unknown Source)





at java.awt.Component.dispatchEventImpl(Unknown Source)





at java.awt.Container.dispatchEventImpl(Unknown Source)





at java.awt.Component.dispatchEvent(Unknown Source)





at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)





at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)





at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)





at java.awt.Container.dispatchEventImpl(Unknown Source)





at java.awt.Component.dispatchEvent(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)





java.lang.NullPointerException





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





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





at chemaxon.marvin.common.swing.e.actionPerformed(Unknown Source)





at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)





at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)





at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)





at javax.swing.DefaultButtonModel.setPressed(Unknown Source)





at javax.swing.AbstractButton.doClick(Unknown Source)





at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)





at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)





at java.awt.Component.processMouseEvent(Unknown Source)





at java.awt.Component.processEvent(Unknown Source)





at java.awt.Container.processEvent(Unknown Source)





at java.awt.Component.dispatchEventImpl(Unknown Source)





at java.awt.Container.dispatchEventImpl(Unknown Source)





at java.awt.Component.dispatchEvent(Unknown Source)





at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)





at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)





at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)





at java.awt.Container.dispatchEventImpl(Unknown Source)





at java.awt.Component.dispatchEvent(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)





(Sorry for the long trace, I wanted to be complete).





Is this file essential? The paste operation doesn't work, even though the applet is signed and it should work.





I see the file in the directory where I unpacked the Marvin Applets distribution. Do I need to copy this file to my applets directory on the web server? Or maybe include it in jmarvin.jar?





Thanks ;)

User 248fb9fe9c

20-08-2004 14:29:55

I copied chemaxon/marvin/calculations/plugins.properties into the applets directory of my web server (retaining the above directory tree). Cleaned browser cache, reloaded applet. This time the file not found NullPointerException goes away. When I do a copy I just get:


ava.lang.NullPointerException





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





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





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





at java.awt.AWTEventMulticaster.mouseReleased(Unknown


...





Ideas?





The Chemaxno certificate shows up correctly when I inspect the certificates in the Java Plug-In control panel. Maybe this is something broken in Marvin 3.4.3 and I should try an earlier release?

ChemAxon 43e6884a7a

20-08-2004 14:59:09

Yoav,


You need all files from the package, not just the jar.


If you want a thin installation, I suggest to install the "Marvin binaries" package. See the download page for details:


http://www.chemaxon.com/marvin/do-download.html#marvin-bin