Sure.. here's an example CDX file that fails.
I've neutered it to protect confidential information, i checked that it still produced the error, however.
My guess is that molconvert is choking on the chemdraw graphics. I included a screenshot of what the file looks like in case you can't see it w/ chemdraw.
Also, many chemdraw files contain multiple molecules inside each file.. I don't suppose there is a way to split each one into a unique SDF entry ?
--Adam
The following is the terminal output I get when executing molconvert (see first line for execution params) on this file.
aless$ ./molconvert -vv sdf /Users/aless/Desktop/AllCDX/AllCDX_Local/TestCase.cdx -o moo.sdf
Reading file 1: /Users/aless/Desktop/AllCDX/AllCDX_Local/TestCase.cdx (cdx format) ...
/Users/aless/Desktop/AllCDX/AllCDX_Local/TestCase.cdx: error
java.lang.NullPointerException
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessGraphic(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessGroup(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessGroup(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessGroup(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessPage(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessCDX(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.readMol(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXImport.readMol(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXRecordReader.nextRecord(Unknown Source)
at chemaxon.marvin.io.MRecordImporter.startReadingNext(Unknown Source)
at chemaxon.marvin.io.MRecordImporter.readRecord(Unknown Source)
at chemaxon.marvin.io.MRecordImporter.readDoc0(Unknown Source)
at chemaxon.marvin.io.MRecordImporter.readDoc(Unknown Source)
at chemaxon.formats.MolImporter.readDoc(Unknown Source)
at chemaxon.formats.MolConverter.readDoc(Unknown Source)
at chemaxon.formats.MolConverter.convert0(Unknown Source)
at chemaxon.formats.MolConverter.convert(Unknown Source)
at chemaxon.formats.MolConverter.main(Unknown Source)
java.lang.NullPointerException
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessGraphic(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessGroup(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessGroup(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessGroup(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessPage(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.preprocessCDX(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXObjectReader.readMol(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXImport.readMol(Unknown Source)
at chemaxon.marvin.io.formats.cdx.CDXRecordReader.nextRecord(Unknown Source)
at chemaxon.marvin.io.MRecordImporter.startReadingNext(Unknown Source)
at chemaxon.marvin.io.MRecordImporter.readRecord(Unknown Source)
at chemaxon.marvin.io.MRecordImporter.readDoc0(Unknown Source)
at chemaxon.marvin.io.MRecordImporter.readDoc(Unknown Source)
at chemaxon.formats.MolImporter.readDoc(Unknown Source)
at chemaxon.formats.MolConverter.readDoc(Unknown Source)
at chemaxon.formats.MolConverter.convert0(Unknown Source)
at chemaxon.formats.MolConverter.convert(Unknown Source)
at chemaxon.formats.MolConverter.main(Unknown Source)