Mview 5.1.0 NPE

User 677b9c22ff

07-10-2008 01:15:13

Hi,


the following file of all sucrose stereoisomers (calculated with cxcalc)


and optimized with smi23d gives an null pointer exception error in Mview,


but not in Instant-JChem. See attached files.





Tobias


Code:



Exception in thread "AWT-EventQueue-0" java.lang.ArithmeticException: / by zero


        at chemaxon.marvin.view.swing.modules.GridBagView.visibleIndex(GridBagView.java:2772)


        at chemaxon.marvin.view.swing.modules.GridBagView.setL(GridBagView.java:1296)


        at chemaxon.marvin.view.swing.ViewPanel.setL(ViewPanel.java:2085)


        at chemaxon.marvin.view.swing.modules.GridBagCellFiller.fillCellInViewApp(GridBagCellFiller.java:41)


        at chemaxon.marvin.view.swing.ViewTableUtil.fillCell(ViewTableUtil.java:514)


        at chemaxon.marvin.view.swing.ViewTableUtil.fillCells(ViewTableUtil.java:503)


        at chemaxon.marvin.view.swing.ViewTableUtil.showMolecules(ViewTableUtil.java:211)


        at chemaxon.marvin.View.showMolecules(View.java:702)


        at chemaxon.marvin.View.access$1000(View.java:53)


        at chemaxon.marvin.View$11.run(View.java:1049)


        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)











Instant-JChem works fine:








Code:



Created new field Mmff94 Energy


Created new field Dipole Moment


Created new field xLog P


Created new field Point Group


Created new field Moments Of Inertia


Created new field Thermodynamics De, Dh, S, Dg, Cp


Structure is mapped to current field Structure


Starting to import data...





Import completed in 4s.


512 entries successfully imported.


0 Errors.


ChemAxon 8b644e6bf4

08-10-2008 15:41:32

Dear Tobias,





Thank you for the detailed report. There is a bug with displaying molecules having "," character in a property name. This will be fixed in the next release. As a workaround it is possible to display the attached structure by changing the "," characters for "." using tr in linux:





$ unzip -p 512-sucrose-stereoisomers.zip | tr "," "." | mview -





this will compromise the field name "Thermodynamics De, Dh, S, Dg, Cp".





regards,


Gabor