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 79514 - Busy wait loop in the AWT thread
Summary: Busy wait loop in the AWT thread
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on: 58889
Blocks:
  Show dependency tree
 
Reported: 2006-06-30 18:28 UTC by Andrei Badea
Modified: 2007-08-27 14:18 UTC (History)
1 user (show)

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 Andrei Badea 2006-06-30 18:28:40 UTC
In ClientInfo there is a busy wait loop which causes the UI to freeze until the
WSDL file is retrieved. It also caused issue 79364.
Comment 1 Milan Kuchtiak 2006-07-19 09:54:04 UTC
Should be fixed in 55.
Comment 2 Milan Kuchtiak 2006-09-06 10:37:05 UTC
I changed the suspicious code in ClientInfo:
http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/ClientInfo.java?r1=1.20.8.3.2.40&r2=1.20.8.3.2.41

The Retriever thread (downloading wsdl file from the remote url to the project)
is still blocking the wizard but this is intentional (to be able to return back
to wizard when the Retriever fails).
This is due to inability to implement the progress bar on Finish: see the
enhancement 58889, which was already implemented, but in trunk only.

The issue is not critical for NB5.5 :
- the issue is related to JAX-RPC support only and we encourage users to use
JAX-WS support now
Comment 3 Andrei Badea 2006-09-06 14:42:33 UTC
Note that calling Task.waitFinished() after calling Task.run() is completely
superfluous, and that by creating a Task directly using its constructor you
don't achieve the execution in another thread. So you could just call
retriever.run() if you think the busy wait is OK for 5.5.