On Fri, May 29, 2009 at 12:46 AM, Egon Willighagen
<egon.willigha...@gmail.com> wrote:
> 2009/5/28 Om <ompan...@gmail.com>:
>> (1) cannot find symbol in class
>> org.openscience.cdk.io.MDLWriter.mw.setSdFields(map);
>
> Use the new SDFWriter.

Thanks, the usage of SDFWriter has solved my problem.

>> (2) When I comment mw.setSdFields(map) line, I get the structure (no
>> SD tag) printed out with following null pointer Exception
>>
>> Reason: null java.lang.NullPointerException
>>        at java.io.Reader.<init>(Reader.java:61)
>>        at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
>>        at 
>> org.openscience.cdk.layout.TemplateHandler.loadTemplates(TemplateHandler.java:98)
>>        at 
>> org.openscience.cdk.layout.TemplateHandler.<init>(TemplateHandler.java:83)
>>        at 
>> org.openscience.cdk.layout.StructureDiagramGenerator.setMolecule(StructureDiagramGenerator.java:131)
>>        at 
>> org.openscience.cdk.layout.StructureDiagramGenerator.setMolecule(StructureDiagramGenerator.java:221)
>>        at Smile2Str.GetStr(csv2sdf.java:47)
>>        at csv2sdf.main(csv2sdf.java:102)
>>
>> Attached is code and data file
>
> That sounds like a bug. Which jar(s) are you using?
>

I am using cdk-1.2.0.jar with jdk1.6.0_11.

> Egon

Thanks
om

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to