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 96285 - Profiled application is shut down on attach if there is no calibration data available
Summary: Profiled application is shut down on attach if there is no calibration data a...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
: 94314 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-22 11:28 UTC by Alexander Kouznetsov
Modified: 2007-09-07 11:12 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 Alexander Kouznetsov 2007-02-22 11:28:09 UTC
Profiler Build 1 (070222)
NetBeans IDE Dev (Build 200702201900)
1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251
Sun Java System Application Server 9.1 (build b33)

Steps to reproduce:
- Delete calibration data
- Right-click GlassFish in IDE and select Start in Profile Mode
- Perform Attach to it
- Information message is shown that calibration will be performed. Click OK
- RESULT: Error dialog is shown: "Failed to establish connection to target JVM".
Profiling session fails.
Comment 1 Alexander Kouznetsov 2007-03-22 10:22:33 UTC
Profiler 070322

Calibration also fails on dynamic attach to applet in browser
Comment 2 Alexander Kouznetsov 2007-03-22 10:24:04 UTC
And in case of dynamic attach to browser it will cause browser to shut down.
This is a data lost justification, so raising the priority.
Comment 3 Tomas Hurka 2007-03-22 14:29:31 UTC
We already discussed it. There is no data lost.
Comment 4 Alexander Kouznetsov 2007-03-22 15:18:05 UTC
But the crash still exist. Please, review the priority guidelines.
Comment 5 Tomas Hurka 2007-03-22 16:23:24 UTC
There is no NetBeans IDE crash. 
Comment 6 J Bachorik 2007-03-23 11:37:13 UTC
*** Issue 94314 has been marked as a duplicate of this issue. ***
Comment 7 Alexander Kouznetsov 2007-04-20 16:10:14 UTC
Consider the following scenario:
- User runs an application
- Tries to perform dynamic attach
- Application is shut down due to the absence of calibration data
Comment 8 J Bachorik 2007-09-07 11:12:28 UTC
fixed the part with the dynamic attach - this is the real problem because usually a user tries to attach dynamically to
a running application and he doesn't expect the app will be shut down by profiler. this behavior is now fixed - when
attaching dynamically without the calibration data the profiler just detaches from the target VM instead of shutting it down
things are a bit different for the direct attach though. user usually starts the application with special switch and
that application awaits the profiler client to connect. since there is no real work done by the application shutting
down the waiting JVM sounds good to me