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.
[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
Created attachment 63693 [details] First version of the exception, more common
Created attachment 63694 [details] Second exception
Created attachment 63695 [details] ThreadDump
btw: this is easily reproducible by the call web service action in a servlet
*** Issue 141493 has been marked as a duplicate of this issue. ***
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.
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.