NullPointerException in AbbrevGroupCollection

User e21f251256

15-01-2010 21:30:49

We occasionally see this exception when displaying a JDialog that contains an MSketchPane.  Can anyone at Chemaxon give us a hint about what the problem might be?


This is using Marvin 5.2.04


Ryan


java.lang.NullPointerException


at java.io.StringReader.<init>(StringReader.java:33)


at chemaxon.marvin.sketch.AbbrevGroupCollection.<init>(AbbrevGroupCollection.java:62)


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


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


at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)


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


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


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


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


at java.awt.Dialog$1.run(Dialog.java:517)


at java.awt.Dialog$2.run(Dialog.java:545)


at java.security.AccessController.doPrivileged(Native Method)


at java.awt.Dialog.show(Dialog.java:543)


at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:843)


at chemaxon.marvin.common.swing.modules.ExceptionFrame.runErrorDialog(ExceptionFrame.java:167)


at chemaxon.marvin.common.swing.modules.ExceptionFrame.show(ExceptionFrame.java:141)


at chemaxon.marvin.common.swing.modules.ExceptionFrame.access$000(ExceptionFrame.java:29)


at chemaxon.marvin.common.swing.modules.ExceptionFrame$1.run(ExceptionFrame.java:98)


at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)


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


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


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


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


at java.awt.Dialog$1.run(Dialog.java:517)


at java.awt.Dialog$2.run(Dialog.java:545)


at java.security.AccessController.doPrivileged(Native Method)


at java.awt.Dialog.show(Dialog.java:543)


at java.awt.Component.show(Component.java:1300)


at java.awt.Component.setVisible(Component.java:1253)

ChemAxon 909aee4527

18-01-2010 16:22:02

Hello Ryan,


we are checking this and get back asap.


Kind regards,
Judit

ChemAxon 909aee4527

19-01-2010 13:49:16

Hi Ryan,


so far we did not manage to find the possible cause, though we can at least prevent the exception to be thrown.


You say the problem comes occasionally - de the abbreviated groups work well most of the time? (typing over the canvas or using the Insert > Groups menu item)


I suppose you have this file inside the lib/MarvinBeans.jar file, right?: /chemaxon/marvin/templates/default.abbrevgroup


Kind regards,
Judit

User c23c5e9da4

10-02-2010 08:20:56

This is happening more and more for us. It happened 10 times yesterday. It does work most of the time but occasionally throws this error.

ChemAxon 909aee4527

10-02-2010 09:13:33

Would it be a possible solution for you to upgrade to 5.3, or would you prefer staying at the 5.2.x versions?


(Currently we don't have a scheduled release for 5.2.x.)

ChemAxon 909aee4527

10-02-2010 16:15:28


It seems the problem is not related to
template handling nor abbreviated groups, this seems to be a threading related problem in the
import. Upgrading to 5.3 will not be a solution.


We will notify you as soon as we can fix the issue. We handle it with high priority.


Kind regards,
Judit


(There is another forum post that is probably the same problem: http://www.chemaxon.com/forum/ftopic5263.html)


ChemAxon 909aee4527

15-02-2010 10:57:23

Update: it seems that my colleagues have already fixed this problem in 5.3.



Please tell us if you do not prefer to upgrade to 5.3 yet and you need the fix in 5.2.x.