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 166493 - [attach profiler] cannot connect to server
Summary: [attach profiler] cannot connect to server
Status: RESOLVED INVALID
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 14:22 UTC by matusdekanek
Modified: 2009-06-30 17:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (61.57 KB, text/plain)
2009-06-03 14:25 UTC, matusdekanek
Details
glassfish log (10.74 KB, text/plain)
2009-06-03 14:25 UTC, matusdekanek
Details
messages.log (56.93 KB, text/plain)
2009-06-03 14:26 UTC, matusdekanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matusdekanek 2009-06-03 14:22:05 UTC
Product Version: NetBeans IDE 6.7 RC2 (Build 200906030001)
Java: 1.6.0_14-ea; Java HotSpot(TM) Client VM 14.0-b12
System: Linux version 2.6.28-11-generic running on i386; UTF-8; en_US (nb)

-download and unzip the order system project at
http://wiki.netbeans.org/attach/ProfilerTestSpecification/order_system.zip
-open it in the ide
-start the glassfish(2.1) server in profile mode
-invoke main menu|profile|attach profiler
-Select Project OrderSystem. Click "change" link next to "Attach mode" label in the bottom to open Attach Wizard, select
J2EE Web/App Server target type, server type glassfish, local attach method, direct attach invocation, press next and
finish the wizard.
-In the attach profiler dialog: select Monitor Application, enable Threads and confirm the Select Profiling Task dialog
by Attach button.
The web application should start. 
Detach the profiler and stop the application. The glassfish server shoul be still running.
-invoke main menu|profile|attach profiler again. Select 
-Select Project OrderSystem. All the other settings should be already set, so there is no need to set them again.
-Start the profiler session by clicking on 'attach' button.
The profiler cannot connect to the server or the application - the 'progress' window hangs forever.
Comment 1 matusdekanek 2009-06-03 14:25:19 UTC
Created attachment 83157 [details]
IDE log
Comment 2 matusdekanek 2009-06-03 14:25:52 UTC
Created attachment 83158 [details]
glassfish log
Comment 3 matusdekanek 2009-06-03 14:26:39 UTC
Created attachment 83159 [details]
messages.log
Comment 4 matusdekanek 2009-06-03 14:28:22 UTC
It happens with java 1.5.0_19 as well.
Comment 5 Jiri Sedlacek 2009-06-03 15:29:55 UTC
The second profiling session cannot be simply started by invoking the Attach again - the profiler is configured for
direct attach. Either you kept the server running and you should use dynamic attach to profile it again or the server is
already stopped and you should start it again for profiling.

Closing as invalid, wrong workflow.