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 214084

Summary: IllegalStateException when configuring public packages from Javadoc warning dialog
Product: apisupport Reporter: mienamoo
Component: ProjectAssignee: Jesse Glick <jglick>
Status: VERIFIED FIXED    
Severity: normal Keywords: THREAD
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description mienamoo 2012-06-13 07:03:29 UTC
NetBeans build 201206100001
JDK 7u3

While testing the API Support Ant Project Operations [1], I came across this issue. Specifically, I was at test suite 1 test 7.

[1] http://wiki.netbeans.org/TS_71_APISupport_Ant_ProjectOperations

As per the test I invoked generating Javadocs on a module with no public packages. The "No Public Packages" dialog was displayed as expected. When I clicked on the Configure Public Packages... button, I encountered this exception:


java.lang.IllegalStateException: Problem in some module which uses Window System: Window System API is required to be called from AWT thread only, see http://core.netbeans.org/proposals/threading/
	at org.netbeans.core.windows.WindowManagerImpl.warnIfNotInEDT(WindowManagerImpl.java:1709)
	at org.netbeans.core.windows.WindowManagerImpl.getMainWindow(WindowManagerImpl.java:172)
	at org.netbeans.modules.project.uiapi.CustomizerDialog.createDialog(CustomizerDialog.java:174)
	at org.netbeans.spi.project.ui.support.ProjectCustomizer.createCustomizerDialog(ProjectCustomizer.java:181)
	at org.netbeans.spi.project.ui.support.ProjectCustomizer.createCustomizerDialog(ProjectCustomizer.java:264)
	at org.netbeans.spi.project.ui.support.ProjectCustomizer.createCustomizerDialog(ProjectCustomizer.java:213)
	at org.netbeans.modules.apisupport.project.ui.customizer.BasicCustomizer.showCustomizer(BasicCustomizer.java:147)
	at org.netbeans.modules.apisupport.project.ui.ModuleActions.promptForPublicPackagesToDocument(ModuleActions.java:635)
	at org.netbeans.modules.apisupport.project.ui.ModuleActions.access$1200(ModuleActions.java:112)
	at org.netbeans.modules.apisupport.project.ui.ModuleActions$1.doRun(ModuleActions.java:496)
	at org.netbeans.modules.apisupport.project.ui.ModuleActions$1.run(ModuleActions.java:376)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
Comment 1 Jesse Glick 2012-06-13 14:19:44 UTC
Likely regression due to some responsiveness fix.
Comment 2 Jesse Glick 2012-06-13 18:25:31 UTC
core-main #008d392e2d52
Comment 3 Quality Engineering 2012-06-15 06:12:52 UTC
Integrated into 'main-golden', will be available in build *201206150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/008d392e2d52
User: Jesse Glick <jglick@netbeans.org>
Log: #214084: IllegalStateException when configuring public packages from Javadoc warning dialog
Comment 4 mienamoo 2012-06-15 13:26:38 UTC
Verified with build 201206150001.