Skip to content

CE-Symm fails with 'does not look like a valid mmCIF file!' errors #91

@sbliven

Description

@sbliven

Using the latest version gives a lot of error messages like this:

2411 [pool-2-thread-1] ERROR org.biojava.nbio.structure.io.mmcif.SimpleMMcifParser - This does not look like a valid mmCIF file! The first line should start with 'data_', but is: 'null'

Followed by a NPE:

2497 [pool-2-thread-1] ERROR workers.CeSymmWorker - Could not complete job: 4hhb
java.lang.NullPointerException
	at org.biojava.nbio.structure.io.ChargeAdder.addCharges(ChargeAdder.java:55) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.mmcif.SimpleMMcifConsumer.addCharges(SimpleMMcifConsumer.java:995) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.mmcif.SimpleMMcifConsumer.documentEnd(SimpleMMcifConsumer.java:799) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.mmcif.SimpleMMcifParser.triggerDocumentEnd(SimpleMMcifParser.java:1180) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.mmcif.SimpleMMcifParser.parse(SimpleMMcifParser.java:395) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.MMCIFFileReader.getStructure(MMCIFFileReader.java:111) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.io.LocalPDBDirectory.getStructureById(LocalPDBDirectory.java:345) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.align.util.AtomCache.loadStructureFromCifByPdbId(AtomCache.java:1048) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.align.util.AtomCache.getStructureForPdbId(AtomCache.java:1029) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.SubstructureIdentifier.loadStructure(SubstructureIdentifier.java:316) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.align.client.StructureName.loadStructure(StructureName.java:549) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at org.biojava.nbio.structure.align.util.AtomCache.getStructure(AtomCache.java:424) ~[cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at workers.CeSymmWorker.run(CeSymmWorker.java:58) [cesymm-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]

This is a known issue that was patched in BioJava (biojava/biojava#464 and biojava/biojava#683) following changes in the RCSB URLs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions