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.
Profiler doesn't work. It cannot connect to target VM. To reproduce: - run IDE with empty userdir - create new Java project - wait until scanning finishes - right-click project node and choose Profile - click Run to start profiling - Progress dialog appears with message "Connecting to the target VM..." and it is up forever - it is the same if you try calibration Product Version: NetBeans IDE Dev (Build 201209130001) Java: 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Reproducible.
Looks like a JDK bug. As a workaround please run the profiled application using JDK 6 or an older JDK 7 update.
I was able to reproduce it on Linux too.
This regression was caused by 113926b00f26 and it can be reproduced on JDK 7. JDK 6 works fine.
Fixed in profiler-main changeset: 233299:56fa534994ed user: Tomas Hurka <thurka@netbeans.org> date: Tue Sep 18 11:05:09 2012 +0200 summary: bugfix #218262, assert logic in Monitors class is initialized too early and it collides with ProfilerRuntime.waitEntry()
Integrated into 'main-golden', will be available in build *201209190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/56fa534994ed User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #218262, assert logic in Monitors class is initialized too early and it collides with ProfilerRuntime.waitEntry()
It works just first time. If you try to start profiling again, it shows just progress dialog as before.
The original problem is fixed. We are not able to reproduce it on Linux and WIndows and we are able to profile several times in the row. If you still have a problem, please file a separate issue. Thanks.
Bug 218611 filed for repeated profiling.
This issue (or something remarkably like it) is still present in NB 8.0