Bug 157794 - EQ blocked creating new WS client
EQ blocked creating new WS client
Status: RESOLVED WORKSFORME
Product: webservices
Classification: Unclassified
Component: JAX-WS
6.x
All All
: P3 (vote)
: 7.0
Assigned To: Denis Anisimov
issues@webservices
: PERFORMANCE, THREAD
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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 ).


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo