Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 221267 - NullPointerException at org.netbeans.modules.profiler.stp.SelectProfilingTask.selectAttachProfilerTask
NullPointerException at org.netbeans.modules.profiler.stp.SelectProfilingTask...
Product: profiler
Classification: Unclassified
Component: Base
All All
: P3 (vote)
: 7.3
Assigned To: Jiri Sedlacek
Depends on:
  Show dependency treegraph
Reported: 2012-11-01 15:44 UTC by lehel
Modified: 2012-11-06 03:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT

stacktrace (3.99 KB, text/plain)
2012-11-01 15:44 UTC, lehel

Note You need to log in before you can comment on or make changes to this bug.
Description lehel 2012-11-01 15:44:45 UTC
Build: NetBeans IDE Dev (Build 201211010001)
VM: Java HotSpot(TM) Client VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05
OS: Windows XP

User Comments:
lehel: NetBeans ide should contain Profile menu, Tools -> Options dialog should contain Profiler tab in Miscellaneous section. But it did not contain. 
This error appeared running the Profile from toolbar.

   at org.netbeans.modules.profiler.stp.SelectProfilingTask.selectAttachProfilerTask(
   at org.netbeans.modules.profiler.stp.SelectProfilingTask$ConfiguratorProvider.configureAttachProfilerTask(
   at org.netbeans.modules.profiler.api.TaskConfigurator.configureAttachProfilerTask(
   at org.netbeans.modules.profiler.actions.ProfilingSupport.selectTaskForAttach(
   at org.netbeans.modules.profiler.actions.ProfilingSupport$
   at org.openide.util.RequestProcessor$
Comment 1 lehel 2012-11-01 15:44:47 UTC
Created attachment 126925 [details]
Comment 2 Jiri Sedlacek 2012-11-05 14:32:00 UTC
Profiler options are in Options | Java | Profiler. If you can't see the Profile menu, your IDE is probably incorrectly installed - make sure you're running with a clean user&cache directory.

The exception was thrown from Attach Profiler action, not Profile action as mentioned. I assume you've invoked Profile or Attach Profiler before. Works fine on my side, not reproducible. Please provide detailed steps if you happen to get the exception again.

Implemented a workaround to prevent the NPE, can't do more without a reproducible test case:
Comment 3 Quality Engineering 2012-11-06 03:11:21 UTC
Integrated into 'main-golden', will be available in build *201211060001* on (upload may still be in progress)
User: Jiri Sedlacek <>
Log: Bugfix #221267 - prevent the NPE probably caused by incorrect synchronization of SPT.cleanup(), not reproducible

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo