User 7910dcb734
16-08-2012 10:01:21
Hi,
I am using JChem 5.10.2.
I have imported a number of molecule using the MolImporter class, and proceeded to run structure checker on them. I got the following for one molecule:
java.lang.ArrayIndexOutOfBoundsException: -1
at chemaxon.core.calculations.Parity.getParity(Parity.java:629)
at chemaxon.struc.MoleculeGraph.getParity(MoleculeGraph.java:3505)
at chemaxon.fixers.WedgeCleanFixer.fix(WedgeCleanFixer.java:38)
at chemaxon.checkers.runner.BasicCheckerRunner.fix(BasicCheckerRunner.java:131)
I have attached the troubled molecule. I'd appreciate some guidance on what is causing this issue, and if I (or you) can resolve it. I do not get the same exception when using the Structure Checker standalone software.
Cheers,
Brendan
ChemAxon e08c317633
16-08-2012 10:46:46
Hi,
Could you attach your Java code?
Zsolt
User 7910dcb734
16-08-2012 10:51:27
Zsolt wrote: |
Hi,
Could you attach your Java code?
Zsolt
|
Hi Zsolt,
I don't really want to upload large amounts of code. I am not doing anything particulalry complicated though. This is the nuts and bolts:
public void checkStructure(Molecule molecule) {
CheckerRunner checkerRunner = new BasicCheckerRunner(checkerConfigurationReader);
checkerRunner.setMolecule(molecule);
List<StructureCheckerResult> results = checkerRunner.checkAndWait();
for (StructureCheckerResult result : results) {
Boolean success = checkerRunner.fix(result);
}
}
Brendan
ChemAxon e08c317633
04-09-2012 13:32:10
Thanks.
We can reproduce the error, and we will fix it. Fix can be expected in Marvin 5.11.x or in 5.12 version.