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 201348

Summary: Cannot finish debugger session
Product: javaee Reporter: Jiri Skrivanek <jskrivanek>
Component: DebuggerAssignee: Martin Entlicher <mentlicher>
Status: VERIFIED FIXED    
Severity: normal CC: muellermi, pjiricka
Priority: P2 Keywords: T9Y, TEST
Version: 7.1   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Jiri Skrivanek 2011-08-26 07:45:22 UTC
It is not possible to finish debugger session for web application with GlassFish server. I can reproduce it repeatedly but with different number of attempts. To reproduce:

- start IDE with empty user dir
- create web application with GlassFish server
- debug main project (Ctrl+F5)
- wait until page is opened in browser
- finish debugger session (Shift+F5). There is a message in Debugger Console that User program finished but Debugging window and toolbar are still present. If it is OK first time, try to repeat debug/finish until it happens (less than 10 attempts).

Product Version: NetBeans IDE Dev (Build 201108250601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
Comment 1 Martin Entlicher 2011-09-18 16:11:11 UTC
Reproduced.
Comment 2 Martin Entlicher 2011-09-19 09:59:53 UTC
The random bug as caused by creation of two instances of JavaEngineProvider.
It's fixed by changeset:   202228:358037edc875
http://hg.netbeans.org/main/rev/358037edc875
Comment 3 Quality Engineering 2011-09-21 08:07:33 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/358037edc875
User: mentlicher@netbeans.org
Log: #201348 Wait for an instance that happens to be created by a parallel thread.
Comment 4 Jiri Skrivanek 2011-09-21 08:38:21 UTC
Verified in build 201109202329.
Comment 5 Martin Entlicher 2011-09-23 17:22:12 UTC
*** Bug 202544 has been marked as a duplicate of this bug. ***