Molconvert and generating cas number

User c1ce6b3d19

21-04-2016 17:42:18

I was receiving an error regarding the DH (Diffie-Hellman) keypair needed during a molconvert conversion to cas#.  It seems that the solution is to use Java 1.8 or higher.  Can you shed any light on this issue?


 


Example errors:


JChem version: 15.6.15.0 


 


select jcf.molConvert('c1ccccc1', 'name:cas#') from dual


       *


Error at line 1


ORA-29532: Java call terminated by uncaught Java exception: java.rmi.ServerException: 


    RemoteException occurred in server thread; nested exception is: 


                chemaxon.jchem.cartridge.sharedorajcsrv.rmi.StructureFormatException: Failure retrieving CAS Registry Number: 


    java.lang.RuntimeException: Could not generate DH keypair


 


ORA-06512: at "JCHEM.JCHEM_CORE_PKG", line 316


ORA-06512: at "JCHEM.JCF", line 774


ORA-06512: at "JCHEM.JCF", line 753


ORA-06512: at "JCHEM.JCF", line 717


 


OR


 


~ jonathanlee$ molconvert -s c1ccccc1 name:cas#


 


 error: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive)


~ jonathanlee$ molconvert -h




Molecule File Converter, version 15.11.16.0, (C) 1999-2015 ChemAxon Ltd.


...


~ jonathanlee$ java -version


java version "1.6.0_65"


Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)





Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)


 


I believe it is related to older Java versions being unable to create encryption numbers greater than 1024 bits.  One possible reason is that I believe the CAS numbers are being generated from the cactus website (https://cactus.nci.nih.gov/chemical/structure) which asks for 2048 bit encryption.  




Thanks, 


Jonathan Lee

ChemAxon 044c6721bc

22-04-2016 08:30:21

Hi John,


Yes, the CAS numbers are generated from the cactus website, so the Java 1.6 can be the cause.


Janos