Marvin Sketch startup problem (Marvin beans4.1.0)

User 60fe9bbae5

27-08-2006 01:07:31

Hi,





I installed Marvin beans 4.1.0. But I could not start up Marvini Sketch.


I attached error message as follows.


Marvin View and Marvin were lunched without any problem.


I am using Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)


Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)





java.lang.NullPointerException


at chemaxon.marvin.sketch.swing.SketchPanel.propertyChange(Unknown Source) at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source) at chemaxon.marvin.common.UserSettings.setDownWedge(Unknown Source) at chemaxon.marvin.common.swing.MolPanel.setDownWedge(Unknown Source) at chemaxon.marvin.common.swing.MolPanel.molInit(Unknown Source) at chemaxon.marvin.sketch.swing.SketchPanel.molInit(Unknown Source) at chemaxon.marvin.common.swing.MolPanel.init(Unknown Source) at chemaxon.marvin.common.swing.MolPanel.setProperties(Unknown Source) at chemaxon.marvin.sketch.swing.SketchPanel.setProperties(Unknown Source)


at chemaxon.marvin.beans.MarvinPane.setParams(Unknown Source) at chemaxon.marvin.beans.MarvinPane.init(Unknown Source) at chemaxon.marvin.beans.MSketchPane.<init>(Unknown Source) at chemaxon.marvin.beans.MSketchPane.<init>(Unknown Source) at chemaxon.marvin.Sketch.<init>(Unknown Source) at chemaxon.marvin.Sketch.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.exe4j.runtime.WinLauncher.main(Unknown Source

ChemAxon 7c2d26e5cf

28-08-2006 13:23:39

How did you launch MarvinSketch?


You have got this error in each cases or there is a special molecule when Marvin drops this exception?


Which operating system do you use?


Which Marvin installer did you download?

User 60fe9bbae5

28-08-2006 13:49:59

Hi,





I have down loaded installer from http://www.chemaxon.com/download.php?d=/data/download/marvin/marvinbeans-4_1_0-windows.exe





I started MarvinSketch by clicking of short cut of MarvinSketch.exe


And I also tried to execute msketch.bat but it led same result.

ChemAxon 7c2d26e5cf

28-08-2006 14:10:30

It can be a configuration problem on your machine because Marvin 4.1 works on my Windows.


Are you sure that there is no MarvinBeans.jar or jchem.jar in the system classpath?


Did you overwrite a previous Marvin version?

User 60fe9bbae5

03-09-2006 01:16:51

>Are you sure that there is no MarvinBeans.jar or jchem.jar in the system classpath?





I think Class path is no problem in my PC. I attached current setting below;





CLASSPATH=C:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar;C:\Program Files\jchem\lib\jchem.jar;C:\Program Files\jchem\lib;com4j.jar;C:\Program Files\Java\jre1.5.0_08\lib\ext\QTJava.zip;C:\Program Files\ChemAxon\MarvinBeans\lib\MarvinBean


s.jar





>Did you overwrite a previous Marvin version?





I uninstalled old version of Marvin beans and installed latest version.

ChemAxon 7c2d26e5cf

04-09-2006 11:10:14

Inserting both jchem.jar and MarvinBeans.jar in to the system classpath is not recommended. Mixing the code of jchem.jar and MarvinBeans.jar can cause unexpected errors. By the way, jchem.jar includes also Marvin Beans classes. In this case, the two jars may contain different Marvin versions.


Please remove both jars from the classpath and try Marvin again. (By the way, Marvin launcher's classpath already includes MarvinBeans.jar.)

User 60fe9bbae5

09-09-2006 08:29:00

I have set Class path as below, however, it does not work yet....





CLASSPATH=C:\Program Files\ChemAxon\MarvinBeans\lib\MarvinBeans.jar





It returens same error message.


Could you please give me any advice?








java.lang.NullPointerException


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


at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)


at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)


at chemaxon.marvin.common.UserSettings.setDownWedge(Unknown Source)


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


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


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


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


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


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


at chemaxon.marvin.beans.MarvinPane.setParams(Unknown Source)


at chemaxon.marvin.beans.MarvinPane.init(Unknown Source)


at chemaxon.marvin.beans.MSketchPane.<init>(Unknown Source)


at chemaxon.marvin.beans.MSketchPane.<init>(Unknown Source)


at chemaxon.marvin.Sketch.<init>(Unknown Source)


at chemaxon.marvin.Sketch.main(Unknown Source)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)


at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)


at java.lang.reflect.Method.invoke(Unknown Source)


at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)


at com.exe4j.runtime.WinLauncher.main(Unknown Source)

ChemAxon 7c2d26e5cf

11-09-2006 12:36:28

My last tipp is removing the <HOME>/chemaxon/marvin.properties file (where <HOME> is the location of your user home, e.g.: "C:\Documents and Settings\mylogin").


Probably, there is a corrupted data in this properties file ,which stores your settings, and it can cause error at initializing of the application.

User 60fe9bbae5

11-09-2006 13:54:48

By removing the marvin.properties file made it OK.


Thank you very much for your advice.