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 220135 - IllegalStateException: ScanSync.get called by protected mode owner.
Summary: IllegalStateException: ScanSync.get called by protected mode owner.
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 22:32 UTC by JEick
Modified: 2012-10-17 02:02 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 190970


Attachments
stacktrace (2.29 KB, text/plain)
2012-10-15 22:32 UTC, JEick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description JEick 2012-10-15 22:32:57 UTC
Build: NetBeans IDE 7.2 (Build 201207171143)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

User Comments:
GUEST: Refractor > rename class

jeick: Refactoring a package.

GUEST: refactoring package name

GUEST: Add a Web Service Operation

jeick: Refactoring a package that contained classes.

zoren: renaming Webservice class




Stacktrace: 
java.lang.IllegalStateException: ScanSync.get called by protected mode owner.
   at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport$ScanSync.checkCaller(RunWhenScanFinishedSupport.java:236)
   at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport$ScanSync.get(RunWhenScanFinishedSupport.java:215)
   at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport$ScanSync.get(RunWhenScanFinishedSupport.java:170)
   at org.netbeans.modules.websvc.design.javamodel.Utils.populateModel(Utils.java:426)
   at org.netbeans.modules.websvc.design.javamodel.ServiceModel.populateModel(ServiceModel.java:371)
   at org.netbeans.modules.websvc.design.javamodel.ServiceModel.<init>(ServiceModel.java:97)
Comment 1 JEick 2012-10-15 22:32:59 UTC
Created attachment 125990 [details]
stacktrace
Comment 2 Tomas Zezula 2012-10-16 09:02:31 UTC
It's a bug in the ServiceModel.populateModel() which tries to wait for Future returned by runWhenScanFinished in the FO event handler. The exception is thrown to prevent dead lock.
Comment 3 Denis Anisimov 2012-10-16 12:07:28 UTC
web-main#a13fafab72fd
Comment 4 Quality Engineering 2012-10-17 02:02:39 UTC
Integrated into 'main-golden', will be available in build *201210170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a13fafab72fd
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#220135 - IllegalStateException: ScanSync.get called by protected mode owner.