SketchPane bug?

User a0ee4512d1

23-02-2009 22:17:08

I used ViewPane to display a molecule structure. When I edit the structure, I got the sketchpane; in the sketchpane, if I chose edit->preference, I got the following exception. The version should be jchem5.1, the latest one.























Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException


        at chemaxon.marvin.common.swing.MolPanel.doPreferences(MolPanel.java:2311)


        at chemaxon.marvin.common.swing.action.PreferencesAction.doAction(PreferencesAction.java:35)


        at chemaxon.marvin.swing.MAction.actionPerformed(MAction.java:236)


        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)


        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)


        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)


        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)


        at javax.swing.AbstractButton.doClick(AbstractButton.java:334)


        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)


        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)


        at java.awt.Component.processMouseEvent(Component.java:5583)


        at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)


        at java.awt.Component.processEvent(Component.java:5348)


        at java.awt.Container.processEvent(Container.java:2010)


        at java.awt.Component.dispatchEventImpl(Component.java:4050)


        at java.awt.Container.dispatchEventImpl(Container.java:2068)


        at java.awt.Component.dispatchEvent(Component.java:3885)


        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)


        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)


        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)


        at java.awt.Container.dispatchEventImpl(Container.java:2054)


        at java.awt.Window.dispatchEventImpl(Window.java:1791)


        at java.awt.Component.dispatchEvent(Component.java:3885)


        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)


        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)


        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)


        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)


        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)


        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

ChemAxon 40e8f9506d

24-02-2009 08:40:43

Hello,





could you please check your version in the Sketch window? Go to Help, About MarvinSKetch, and copy&paste the info from there (version, op. system and java version).





My colleague will reply soon.





regards, Annamaria

ChemAxon 7c2d26e5cf

24-02-2009 15:09:41

We have tested it but we have not found any error.





It may be a configuration problem on your side. Probably, a resource file are missing from your Marvin Beans / JChem directory or an wrong Java version is used.





Can you give more info about your software environment (os type, Java version)?





How did you install Marvin Beans or JChem package?