Error in module Clean2D

User 2c50bae09f

02-06-2011 19:55:23

Hi,


I am a newbie for marvin. And I want to use marvin in our asp.net web page.


System and server:


windows 2003; IIS 6.0;


marvin 5.5.0.1


my code:



<script type="text/javascript" src="/marvin/marvin.js"></script>

 <script type="text/javascript">

<!--


mview_begin("/marvin", "100%", "100%"); //arguments: codebase, width, height 

mview_param( "mol", "C1=CNC=C1");


 mview_param("colorScheme","mono");  



 mview_end();



//-->



 </script>


And when I run it, it return an error.



Error in module Clean2D


java.lang.RuntimeException: java.lang.ExceptionInInitializerError
 at chemaxon.marvin.util.MarvinModule.load(Unknown Source)
 at chemaxon.struc.gearch.MoleculeGraphGearch.a(Unknown Source)
 at chemaxon.struc.gearch.MoleculeGraphGearch.getGrinv(Unknown Source)
 at chemaxon.struc.MoleculeGraph.getGrinv(Unknown Source)
 at chemaxon.marvin.modules.Clean2D.a(Unknown Source)
 at chemaxon.marvin.modules.Clean2D.a(Unknown Source)
 at chemaxon.marvin.modules.Clean2D.a(Unknown Source)
 at chemaxon.marvin.modules.Clean2D.a(Unknown Source)
 at chemaxon.marvin.modules.Clean2D.modfunc(Unknown Source)
 at chemaxon.struc.MoleculeGraph.clean(Unknown Source)
 at chemaxon.struc.Molecule.clean(Unknown Source)
 at chemaxon.struc.MoleculeGraph.clean(Unknown Source)
 at chemaxon.marvin.common.swing.MolPanel.molLoaded(Unknown Source)
 at chemaxon.marvin.view.swing.ViewPanel.molLoaded(Unknown Source)
 at chemaxon.marvin.view.swing.ViewPanel.molLoaderFinished(Unknown Source)
 at chemaxon.marvin.util.MolLoader.run(Unknown Source)
 at java.awt.event.InvocationEvent.dispatch(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(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)
Caused by: java.lang.ExceptionInInitializerError
 at chemaxon.struc.PeriodicSystem.a(Unknown Source)
 at chemaxon.struc.MolAtom.isotopeType(Unknown Source)
 at chemaxon.marvin.modules.GraphInvariants.<clinit>(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at chemaxon.marvin.util.MarvinModule.a(Unknown Source)
 at chemaxon.marvin.util.MarvinModule.loadClass(Unknown Source)
 at chemaxon.marvin.util.MarvinModule.load(Unknown Source)
 ... 24 more
Caused by: java.lang.NullPointerException
 at chemaxon.struc.PeriodicSystem$IsotopeDataHolder.a(Unknown Source)
 at chemaxon.struc.PeriodicSystem$IsotopeDataHolder.<clinit>(Unknown Source)
 ... 32 more


Thank you any help.


Best,


Changhe


 







ChemAxon 5433b8e56b

02-06-2011 20:53:15

Hi Changhe,


it seems, some of the recent changes modifies the error message, but i assume this error is the new equivalent of the error mentioned in this FAQ section: http://www.chemaxon.com/marvin/help/developer/applets/appletfaq.html#iis


Please try the suggested configuration modification, and check whether it fixes the problem or not. If yes, please notify me, and i can update the FAQ as well.


Regards,
Istvan

User 2c50bae09f

02-06-2011 21:39:15

Hi, Istvan,


Thank your help!


The answer fixed my problem!


Changhe