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 157794 - EQ blocked creating new WS client
Summary: EQ blocked creating new WS client
Status: RESOLVED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords: PERFORMANCE, THREAD
Depends on:
Blocks:
 
Reported: 2009-02-02 17:07 UTC by Jesse Glick
Modified: 2010-10-05 11:55 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 Jesse Glick 2009-02-02 17:07:11 UTC
While trying to reproduce issue #157460, the IDE froze when clicking Finish. Unfroze after a couple of minutes.

"AWT-EventQueue-1" prio=1 tid=0x08b64710 nid=0x6751 runnable [0xa6b1c000..0xa6b1dfb0]
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:129)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
	- locked <0x641fb940> (a java.io.BufferedInputStream)
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:681)
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:626)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:957)
	- locked <0x641ed078> (a sun.net.www.protocol.http.HttpURLConnection)
	at org.netbeans.modules.xml.retriever.catalog.Utilities.downloadURLUsingProxyAndSave(Utilities.java:440)
	at org.netbeans.modules.websvc.core.client.wizard.ClientInfo.validatePanel(ClientInfo.java:871)
	at
org.netbeans.modules.websvc.core.client.wizard.WebServiceClientWizardDescriptor.validate(WebServiceClientWizardDescriptor.java:156)
[....]

You should not try to make a network connection in such a method. Better is to mark the panel temporarily invalid,
displaying an icon, test the URL in the background, and asynch mark it valid when complete.
Comment 1 Denis Anisimov 2010-10-05 11:55:48 UTC
Currently WS Client Panel is realized via Async validation.
As result validation is done in the separate thread ( not AWT ).