ArrayIndexOutOfBoundsException

User c23c5e9da4

01-12-2007 17:33:23

java.lang.ArrayIndexOutOfBoundsException: 7


at chemaxon.sss.search.StructureSearch.restoreHitIndexes(StructureSearch.java:1284)


at chemaxon.sss.search.StructureSearch.findNext0(StructureSearch.java:5437)


at chemaxon.sss.search.StructureSearch.findFirst0(StructureSearch.java:5217)


at chemaxon.sss.search.StructureSearch.findFirst(StructureSearch.java:5177)


at chemaxon.sss.search.MolSearch.findNextEnumerated(MolSearch.java:1114)


at chemaxon.sss.search.MolSearch.findNextFiltered(MolSearch.java:1004)


at chemaxon.sss.search.MolSearch.findFirst(MolSearch.java:896)

ChemAxon a3d59b832c

01-12-2007 21:22:17

Hi Trevor,





Could you send the query and target molecules for this search? Were you using the latest JChem version?





Cheers,


Szabolcs

User c23c5e9da4

03-12-2007 15:44:28

This is using the latest chem but I don't have access to the structures that generated this unfortunately.

ChemAxon a3d59b832c

04-12-2007 11:05:15

I see. We will need to reproduce the problem in order to fix it.


Is it possible to somehow get the query molecule at least?


Then we could try to search in a large database to reproduce the bug.





If the stack trace was in a log file, the query structure may be logged somewhere before or after the error message? (For example, for the JChem web application example, each query is reported in the log file.)





Szabolcs

User c23c5e9da4

04-12-2007 15:54:13

It is really hard to capture information for these runtime exceptions - there is no local exception handling anywhere near this code since this isn't a documented exception that the method can throw.

ChemAxon a3d59b832c

05-12-2007 09:40:35

You are right. In future JChem versions we will catch all exceptions inside search classes and include the query and target molecules in the error message. (These errors are relatively rare, so they won't fill up log files.)





JChem 3.2.12 is already in the testing phase and we are not planning more patch releases for 3.2, so most probably this functionality will appear in the next major release, JChem 5.0.





Szabolcs