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.

Bug 235458 - Dynamic attach closes profiling session
Summary: Dynamic attach closes profiling session
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-03 13:00 UTC by Jiri Skrivanek
Modified: 2015-06-09 09:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2013-09-03 13:00:00 UTC
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)
Comment 1 Tomas Hurka 2015-05-19 13:08:05 UTC
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
Comment 2 Quality Engineering 2015-05-26 03:13:11 UTC
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
Comment 3 Jiri Skrivanek 2015-06-09 09:33:42 UTC
Verified. Thanks.