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.
When you try to attach to already profiled application it stops profiling session. To reproduce: - create AnagramGame sample project - right-click project node and choose Profile - click Run and wait until application is started - from second IDE choose "Profile|Attach Profiler..." from main menu - select process ID of Anagrams java class and click OK - profiling session is closed in the first IDE and the following is printed to console: Profiler Agent Error: Exception when trying to establish connection with client: java.net.BindException: Address already in use: JVM_Bind Exception in thread "*** Profiler Agent Communication Thread" java.lang.NullPointerException at org.netbeans.lib.profiler.server.ProfilerServer.closeConnection(ProfilerServer.java:1229) at org.netbeans.lib.profiler.server.ProfilerServer.listenToClient(ProfilerServer.java:1746) at org.netbeans.lib.profiler.server.ProfilerServer.run(ProfilerServer.java:690) Product Version: NetBeans IDE Dev (Build 201309030001) Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b40 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Fixed in profiler-main changeset: 287331:bfc18b2d441e user: Tomas Hurka <thurka@netbeans.org> date: Tue May 19 15:06:51 2015 +0200 summary: bugfix #235458, abort agent initialization if agent is already running
Integrated into 'main-silver', will be available in build *201505260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/bfc18b2d441e User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #235458, abort agent initialization if agent is already running
Verified. Thanks.