cannot start jchem cartridge server

User 22c79b610c

09-07-2008 18:22:19

I'm setting everything by using instructions in http://www.chemaxon.com/jchem/doc/admin/cartridge.html#readmefirst, but on the step: "Starting JChem Server" getting following error:





$ bash server.sh start


+ /usr/lib/jvm/java-6-sun/bin/java -server -Xmx700m -Djava.util.logging.config.class=chemaxon.jchem.cartridge.util.LoggingConfigurator -Dchemaxon.jchem.cartridge.config.file=conf/jcart.properties -Djava.awt.headless=true -classpath ./../lib/jchem.jar:/opt/sqldeveloper/jdbc/lib/ojdbc14.jar: chemaxon.jchem.cartridge.rmi.impl.AdminImpl start


java.lang.NullPointerException


at chemaxon.license.LicenseReader.setLicenseFile(LicenseReader.java:157)


at chemaxon.license.LicenseHandler.setLicenseFile(LicenseHandler.java:213)


at chemaxon.jchem.cartridge.rmi.impl.AdminImpl.loadLicenses(AdminImpl.java:83)


at chemaxon.jchem.cartridge.rmi.impl.AdminImpl.startServer(AdminImpl.java:205)


at chemaxon.jchem.cartridge.rmi.impl.AdminImpl.main(AdminImpl.java:315)


+ set +x





please help,





Alex

ChemAxon aa7c50abf8

10-07-2008 08:27:43

Alex,





This is a bug in JChem 5.0.6. It will be fixed in the next JChem release.





In the meantime, you can use the following workaround:





Move the license file from the licenses sub-directory into ${HOME}/.chemaxon/ directory -- where ${HOME} is the home directory of the user who will start the cartridge server process. (On Windows, it needs to be copied in the "%HOMEDRIVE%%HOMEPATH%\chemaxon" directory of the user who starts the cartridge server process.)





Thank you for reporting this problem and sorry for the inconvenience.





Peter

User 22c79b610c

11-07-2008 17:30:40

After I changed location of license file I tried to start the server, but get the same error.





Alex

ChemAxon aa7c50abf8

11-07-2008 19:48:33

Alex,





Have you actually moved the license file to the new location as suggested? Is there anything left in the licenses directory?





Thanks


Peter

User 22c79b610c

14-07-2008 17:22:15

thanks Peter,





it works. now I can start and install JChem cartridge. However, after successful test I tried to open JChemManager and it got frozen. It looks like its trying to connecting to database, mouse cursor is busy and I cant do anything but close it.





Any ideas?





Alex

ChemAxon e274e1bada

15-07-2008 10:15:59

Hi Alex,





Please check the result of 'java -version' command. JChem should only be used with Sun Java. if your default JRE to differ from it please add the installed Sun JRE bin directory to your PATH variable, and it should appear before your current Java.





Related topic:


http://www.chemaxon.com/forum/ftopic3913.html





Regards, Edvard

User 22c79b610c

15-07-2008 19:58:17

it works now, thank you,

ChemAxon aa7c50abf8

30-07-2008 09:49:02

JChem 5.0.7 has been released with a fix for the NullPointerException problem.