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.
Product Version: NetBeans IDE Dev (Build 200804060002) Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19 Steps to reproduce: Create AnagramGame sample application and run it under profiler (CPU mode, Profile Entire application, Profile All Classes). Invoke Modify Profiling Session and switch from Profile All Classes to Profile Only Project classes. Switch to tested application and invoke File->About dialog. There are exception from profiled application in IDE output: Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 6542 at org.netbeans.lib.profiler.server.ProfilerRuntimeCPUFullInstr.methodEntry(ProfilerRuntimeCPUFullInstr.java:168) at java.util.Collections$UnmodifiableCollection.contains(Collections.java:1000) see fil stacktrace in attachment
Created attachment 59763 [details] Stacktrace log for this issue
Reproduced. This seems like a problem with dangling invalid instrumentation code. Assigning.
This is actually bug in JVM. Some methods don't get redefined when using jvmti->redefineClasses. Reported as CR 6805864.
This problem cannot be fixed in NetBeans Profiler.