IndexOutOfBoundsException is thrown in some situations when Heap.getJavaClassByID() is invoked with instance id instead of class id.
java.lang.IndexOutOfBoundsException: Index: 451168, Size: 25362
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.netbeans.lib.profiler.heap.ClassDumpSegment.getClassDumpByID(ClassDumpSegment.java:127)
at org.netbeans.lib.profiler.heap.HprofHeap.getJavaClassByID(HprofHeap.java:251)
at org.netbeans.modules.profiler.oql.engine.api.impl.Snapshot.findClass(Snapshot.java:109)
at org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineImpl.executeQuery(OQLEngineImpl.java:215)
at org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineImpl.executeQuery(OQLEngineImpl.java:129)
at org.netbeans.modules.profiler.oql.engine.api.OQLEngine.executeQuery(OQLEngine.java:114)
[catch] at org.netbeans.modules.profiler.heapwalk.OQLController$1$1.run(OQLController.java:236)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)