This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The server runs fine when profiling with the "record object creation" option. Then I started testing the other option, "record both object creation and garbage collection". I got this exception from the IDE: java.lang.ArrayIndexOutOfBoundsException: 25 at com.sun.tools.profiler.classfile.ClassLoaderTable.getParentLoader(ClassLoaderTable.java:29) at com.sun.tools.profiler.classfile.SameNameClassGroup.isParentLoaderTo(SameNameClassGroup.java:70) at com.sun.tools.profiler.classfile.SameNameClassGroup.checkForCompatibility(SameNameClassGroup.java:45) at com.sun.tools.profiler.classfile.ClassRepository.lookupClassOrCreatePlaceholder(ClassRepository.java:258) at com.sun.tools.profiler.instrumentation.ClassManager.javaClassOrPlaceholderForName(ClassManager.java:68) at com.sun.tools.profiler.instrumentation.MemoryProfMethodInstrumentor$MethodScanerForNewOpcodes.hasNewArrayOpcodes(MemoryProfMethodInstrumentor.java:233) at com.sun.tools.profiler.instrumentation.MemoryProfMethodInstrumentor.hasNewOpcodes(MemoryProfMethodInstrumentor.java:114) at com.sun.tools.profiler.instrumentation.ObjLivenessMethodInstrumentor.methodNeedsInstrumentation(ObjLivenessMethodInstrumentor.java:43) at com.sun.tools.profiler.instrumentation.MemoryProfMethodInstrumentor.findAndMarkMethodsToInstrumentInClass(MemoryProfMethodInstrumentor.java:95) at com.sun.tools.profiler.instrumentation.MemoryProfMethodInstrumentor.getMethodsToInstrumentUponClassLoad(MemoryProfMethodInstrumentor.java:63) at com.sun.tools.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponseForMemoryProfiling(Instrumentor.java:368) at com.sun.tools.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponse(Instrumentor.java:107) at com.sun.tools.profiler.ProfilerClient.instrumentMethodGroupFollowUp(ProfilerClient.java:610) at com.sun.tools.profiler.ProfilerClient.access$2700(ProfilerClient.java:41) [catch] at com.sun.tools.profiler.ProfilerClient$SeparateCmdExecutionThread.run(ProfilerClient.java:1177) And after a clean resin install and retesting, it took more time, but I got a similar exception from the IDE: java.lang.ArrayIndexOutOfBoundsException: 607 at com.sun.tools.profiler.classfile.ClassLoaderTable.getParentLoader(ClassLoaderTable.java:29) at com.sun.tools.profiler.classfile.SameNameClassGroup.isParentLoaderTo(SameNameClassGroup.java:70) at com.sun.tools.profiler.classfile.SameNameClassGroup.checkForCompatibility(SameNameClassGroup.java:45) at com.sun.tools.profiler.classfile.SameNameClassGroup.findCompatibleClass(SameNameClassGroup.java:59) at com.sun.tools.profiler.classfile.ClassRepository.lookupClass(ClassRepository.java:127) at com.sun.tools.profiler.classfile.ClassRepository.lookupClass(ClassRepository.java:111) at com.sun.tools.profiler.instrumentation.ClassManager.javaClassForName(ClassManager.java:48) at com.sun.tools.profiler.instrumentation.MemoryProfMethodInstrumentor.findAndMarkMethodsToInstrumentInClass(MemoryProfMethodInstrumentor.java:82) at com.sun.tools.profiler.instrumentation.MemoryProfMethodInstrumentor.getMethodsToInstrumentUponClassLoad(MemoryProfMethodInstrumentor.java:63) at com.sun.tools.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponseForMemoryProfiling(Instrumentor.java:368) at com.sun.tools.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponse(Instrumentor.java:107) at com.sun.tools.profiler.ProfilerClient.instrumentMethodGroupFollowUp(ProfilerClient.java:610) at com.sun.tools.profiler.ProfilerClient.access$2700(ProfilerClient.java:41) [catch] at com.sun.tools.profiler.ProfilerClient$SeparateCmdExecutionThread.run(ProfilerClient.java:1177) I can always reproduce the first stack trace when starting the application server with all the classes/JSPs etc. already compiled, immediately after I access the root URL. When this happens, the profiled VM freezes, I attached the full thread dumps collected after the error.
Created attachment 20105 [details] The thread dump for resin server after the problem
Created attachment 20106 [details] The thread dump for NetBeans after the problem
Ok, I can reproduce the problem and understand why it happens. Now need to understand how to fix it.
Fixed in M5 release. Thanks again for your help, Vlad!
old issue, closed