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 209258 - REST wizard stays open when finished
Summary: REST wizard stays open when finished
Status: VERIFIED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 7.1.1
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2012-03-07 08:30 UTC by Jiri Skrivanek
Modified: 2012-04-10 15:55 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot from build 20120402-0d1f642cc319 (118.78 KB, image/png)
2012-04-02 14:15 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-03-07 08:30:29 UTC
REST wizard stays open when generating of classes is already finished. Only on Mac and JDK7u4. To reproduce:

- create web project with GlassFish server
- open new file wizard
- choose "Web Services|RESTful Web Services from Patterns" and click Next
- finish wizard
- it successfully generates resources but wizard window stays open

  Product Version         = NetBeans IDE 7.1.1 (Build 201203012225) (#a903faa1d680)
  Operating System        = Mac OS X version 10.7.3 running on amd64
  Java; VM; Vendor        = 1.7.0_04-ea; Java HotSpot(TM) 64-Bit Server VM 23.0-b16; Oracle Corporation
Comment 1 Marian Mirilovic 2012-03-14 12:47:07 UTC
We need to evaluate to know it's a bug on our or JDK side.
Comment 2 Marian Mirilovic 2012-03-21 13:59:01 UTC
Denis, any updates ?
Comment 3 Denis Anisimov 2012-03-22 07:53:44 UTC
That's a bug inside wizard iterator : dialog is closed outside of AWT thread.
Comment 4 Denis Anisimov 2012-03-22 08:11:37 UTC
Please verify  : I don't have Mac to check.
web-main#1fd6979a4638
Comment 5 Quality Engineering 2012-03-23 10:34:00 UTC
Integrated into 'main-golden', will be available in build *201203230400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1fd6979a4638
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#209258 - REST wizard stays open when finished.
Comment 6 Jiri Skrivanek 2012-04-02 14:15:27 UTC
Created attachment 117663 [details]
Screen shot from build 20120402-0d1f642cc319
Comment 7 Jiri Skrivanek 2012-04-02 14:16:18 UTC
Still reproducible in build build 20120402-0d1f642cc319 (see screen shot).
Comment 8 Denis Anisimov 2012-04-02 14:50:30 UTC
I mixed up the progress dialog with wizard dialog.
Progress dialog has been closed out of AWT and that fixed in my commit mentioned 
here.
But wizard is not closed explicitly via wizard client ( REST in the case ).
Wizard dialog should be closed by Wizards/Dialog system.
I can imagine that org.netbeans.modules.websvc.rest.wizard.PatternResourcesIterator.instantiate
implementation could be a problem here : 
Call RestUtils.ensureRestDevelopmentReady(project);
shows REST configuration dialog in the same thread as "instantiate" method is 
called.
May be this is source of the issue.
But this is just a speculation : the problem is specific for Mac and JDK7 and 
cannot be reproduced for other platforms/JDKs. So it could be JDK specific bug 
and I'm not sure about its reason.
Comment 9 Stanislav Aubrecht 2012-04-05 15:06:21 UTC
cannot reproduce in 

Product Version: NetBeans IDE Dev (Build 20120403-ff6f2474b6d0)
Java: 1.7.0_04-ea; Java HotSpot(TM) 64-Bit Server VM 23.0-b19
System: Mac OS X version 10.7.3 running on amd64; UTF-8; en_US (nb)
Comment 10 Antonin Nebuzelsky 2012-04-06 13:17:51 UTC
(In reply to comment #9)
> cannot reproduce in 

anyone?
Comment 11 Tomas Danek 2012-04-06 14:41:12 UTC
cannot reproduce now with JDK 7 u4 b19:

Product Version: NetBeans IDE Dev (Build 201204040400)
Java: 1.7.0_04-ea; Java HotSpot(TM) 64-Bit Server VM 23.0-b20
System: Mac OS X version 10.7.3 running on amd64; US-ASCII; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/dev
Cache directory: /Users/tomas/Library/Caches/NetBeans/dev
Comment 12 Stanislav Aubrecht 2012-04-10 09:50:53 UTC
not reproducible in JDK 1.7 u4 build 19, closing