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 90306 - Java error after detach of dynamically attached application
Summary: Java error after detach of dynamically attached application
Status: RESOLVED WORKSFORME
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-29 18:15 UTC by ehucka
Modified: 2007-03-23 10:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
java error log (15.88 KB, text/plain)
2006-11-29 18:16 UTC, ehucka
Details
log after crash (8.61 KB, application/octet-stream)
2007-02-05 11:21 UTC, Ivan Sidorkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2006-11-29 18:15:14 UTC
Used j2se application - sample project AnagramGame.
Steps to reproduce:

1. start the application with jdk 1.6
2. attach to the application, use memory profiling task
3. detach from the application
Comment 1 ehucka 2006-11-29 18:16:38 UTC
Created attachment 36370 [details]
java error log
Comment 2 Tomas Hurka 2007-01-02 16:24:33 UTC
This works for me. Anyway it looks like JDK bug. Please provide more information how to reproduce it.
Comment 3 ehucka 2007-01-03 10:54:44 UTC
I can reproduce it.

Another steps to reproduction:

1. new userdir, new created AnagramGame project
2. start the project outside the ide - 'java -jar anagrams.jar'
3. dynamically attach to the anagrams app using jdk 1.6, memory liveness profiling
4. wait for some results are measured - take snapshot button is enabled - and
invoke Take Snapshot action
5. application is finished by java error
Comment 4 Tomas Hurka 2007-02-02 12:52:00 UTC
Still works for me on Windows XP with JDK 1.6.0 FCS.
Comment 5 ehucka 2007-02-02 13:41:05 UTC
It is 100% reproducible on my machine.

NetBeans IDE Dev (Build 200701311900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
Profiler 070202
Comment 6 Ivan Sidorkin 2007-02-05 11:16:33 UTC
reproduced in 070205

steps to reproduce:
- start the project outside the ide - 'java -jar anagrams.jar'
- dynamically attach to the anagrams app using jdk 1.6
- click Detach button on Profiler control panel
- click No button for question about terminating profiled application

Application crashed with log (see attach)
Comment 7 Ivan Sidorkin 2007-02-05 11:21:50 UTC
Created attachment 38028 [details]
log after crash
Comment 8 ehucka 2007-02-13 09:10:28 UTC
It is 100% reproducible. I have provided all information I can to reproduce the
issue.
Comment 9 J Bachorik 2007-03-23 10:19:15 UTC
rofiler 070322
NetBeans IDE Dev (Build 200702020600)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Ubuntu Linux, running on x86

Tested all provided cases. Everything works fine. 
As for the first error log - it might be caused be the b104 JVM used
As for the second error log - there is 1.5 JVM in classpath

Try to reproduce this bug with a propertly set environment (JDK6 the latest
version set for the profiler as well as the profiled application) and reopen if
the problem persists.