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.
Summary: | project.ui.actions.NewFile$2.run(NewFile.java:167) calls into wizard API outside of AWT thread | ||
---|---|---|---|
Product: | ide | Reporter: | aajn88 |
Component: | Features On Demand | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | exceptions_reporter, mjanicek, xtecuan |
Priority: | P2 | ||
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 181573 |
Attachments: | stacktrace |
Description
aajn88
2011-11-12 19:52:12 UTC
Created attachment 113154 [details]
stacktrace
Looking at http://statistics.netbeans.org/exceptions/messageslog?id=546752 and it seems that NewFile actions tries to obtain components outside of AWT thread: org.netbeans.modules.ide.ergonomics.fod.ConfigurationPanel.(:92) org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.getComponent(:109) org.netbeans.modules.ide.ergonomics.newproject.FeatureOnDemandWizardIterator.createPanels(:129) org.netbeans.modules.ide.ergonomics.newproject.FeatureOnDemandWizardIterator.initialize(:211) org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.initialize(:1038) org.openide.loaders.TemplateWizardIterImpl.setIterator(:103) org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(:79) org.openide.loaders.TemplateWizard.setTemplateImpl(:206) org.openide.loaders.TemplateWizard.setTemplate(:225) org.openide.loaders.TemplateWizard.instantiateImpl(:475) org.openide.loaders.TemplateWizard.instantiate(:391) org.netbeans.modules.project.ui.actions.NewFile$2.run(:167) No; it calls FeatureOnDemandWizardIterator.initialize, which incorrectly tries to create GUI panels even though these have not yet been shown. Wizard iterators should delay component creation unless and until the panel is displayed. This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=181573 ergonomics#541e274fe5ac Integrated into 'main-golden', will be available in build *201204190400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/541e274fe5ac User: Jaroslav Tulach <jtulach@netbeans.org> Log: #205035: Initialize the panels lazily *** Bug 215744 has been marked as a duplicate of this bug. *** |