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 138642 - IllegalStateEx when adding WebServiceClient, sometimes deadlock
Summary: IllegalStateEx when adding WebServiceClient, sometimes deadlock
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P2 blocker (vote)
Assignee: Roderico Cruz
URL:
Keywords: TEST
: 141493 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-30 15:48 UTC by polan
Modified: 2008-08-13 01:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
First version of the exception, more common (4.37 KB, text/plain)
2008-06-30 15:49 UTC, polan
Details
Second exception (4.04 KB, text/plain)
2008-06-30 15:50 UTC, polan
Details
ThreadDump (23.70 KB, text/plain)
2008-06-30 15:51 UTC, polan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description polan 2008-06-30 15:48:59 UTC
[Build 200806300002, JDK 1.5.0, GlassFish V2]

To reproduce:
1) Create new Web project, create new web service (default)

2) Create new operation in WS with one (default) parameter

3) Deploy this project

4) Create another Web project

5) Create new Web Service Client, press Browse..., find service from first project, press Finish
ERROR: java.lang.IllegalStateException: WARNING: Going from readAccess to writeAccess through queue, see #10778: http://
www.netbeans.org/issues/show_bug.cgi?id=10778
NOTE: Throws one of the attached exceptions, sometimes both.
NOTE: I managed to get IDE deadlock twice with this exception
Comment 1 polan 2008-06-30 15:49:53 UTC
Created attachment 63693 [details]
First version of the exception, more common
Comment 2 polan 2008-06-30 15:50:17 UTC
Created attachment 63694 [details]
Second exception
Comment 3 polan 2008-06-30 15:51:00 UTC
Created attachment 63695 [details]
ThreadDump
Comment 4 Lukas Jungmann 2008-07-04 17:41:53 UTC
btw: this is easily reproducible by the call web service action in a servlet
Comment 5 Jaroslav Pospisil 2008-07-24 10:37:47 UTC
*** Issue 141493 has been marked as a duplicate of this issue. ***
Comment 6 Jaroslav Pospisil 2008-07-24 10:39:27 UTC
Another easy reproducible scenario is to add web service client to web application - I've seen even deadlock already,but
it seems to happen rather random.
Comment 7 Roderico Cruz 2008-08-13 01:31:01 UTC
This has been fixed by Milan in changset http://hg.netbeans.org/main/rev/1f564196dd3e, on July 30. The problem was that
(before Milan's fix) there was a read lock on the ant script file. When the wsimport target was run (using ActionUtils)
the the script document was opened and the lock was upgraded to a write lock. Because of this, the code became
deadlock-prone. Milan's fix changed the read lock to a write lock before running the ant target. Kindly try on a newer
build.