User 37df300f74
09-06-2015 15:33:00
Hi,
We customized Marvin Sketch UI using customization xml and user-defined template file and call sketcher.setParams("tmpls0=:Generic:com/.../util/files/marvin.mytemplates"); It works in the earlier version (not sure which version and we are with 6.2 at this point),
Now when I start it, I got the following exceptions and maybe 4 out 5 times, the template structures are displayed correctly and 1 out of 5 times, no template structures displayed, but every time I got the similar exception below. I know it is caused by setParams call since if I comment that line out, there will be no exception thrown out.
also it is not clear what index and size refers to since I always get 21/20 in the exception whether I remove or add structures in my template file.
Any idea?
Thanks
Hongzhou
------------------------------
Exception in thread "Thread-16" java.lang.IndexOutOfBoundsException: Index: 21, Size: 20
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at chemaxon.marvin.sketch.templates.TemplateLibrary.getMyTemplatesSet(TemplateLibrary.java:235)
at chemaxon.marvin.sketch.templates.TemplateLibrary.getMyTemplates(TemplateLibrary.java:243)
at chemaxon.marvin.sketch.swing.templates.TemplateHandler.getMoleculesWithAbbreviations(TemplateHandler.java:700)
at chemaxon.marvin.sketch.swing.SketchPanel$9.run(SketchPanel.java:3627)
Exception in thread "Thread-19" java.lang.IndexOutOfBoundsException: Index: 21, Size: 20
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at chemaxon.marvin.sketch.templates.TemplateLibrary.getMyTemplatesSet(TemplateLibrary.java:235)
at chemaxon.marvin.sketch.templates.TemplateLibrary.getMyTemplates(TemplateLibrary.java:243)
at chemaxon.marvin.sketch.swing.templates.TemplateHandler.getMoleculesWithAbbreviations(TemplateHandler.java:700)
at chemaxon.marvin.sketch.swing.SketchPanel$9.run(SketchPanel.java:3627)