I was using jvisualvm to profile a multi-threaded application on a Linux system running the latest Java version:
$ java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
During profiling, I noticed that the UI would no longer let me click "settings" on the Profiler tab, although it would still profile. When I returned to my application, I noticed the following exception reported for the profiler on my program's output:
Exception in thread "WorkerThread-2" java.lang.NullPointerException
I was using the GNU Trove collections, if that helps. It seems that all four of my threads had the same exception at ProfilerRuntimeCPUFullInstr.methodExit, although at different execution stacks for each thread.
I tried re-running the program several times but haven't been able to reproduce the error with any reliability. (Although I still can't seem to select the "Setting" subwindow when profiling this application.)
*** This bug has been marked as a duplicate of bug 207632 ***