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: NetBeans IDE Dev (Build 20120906-8b00d3599596) VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b24 OS: Linux User Comments: jungi: -create new web project -go to new ws from wsdl wizrd -check "Use provider" checkbox -fill in local wsdl file => exception and no way to finish the wizard Stacktrace: java.lang.AssertionError at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:745) at org.netbeans.modules.project.ui.NewFileWizard.updateState(NewFileWizard.java:124) at org.openide.WizardDescriptor$Listener.stateChanged(WizardDescriptor.java:2062) at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:329) at org.netbeans.modules.java.project.JavaTargetChooserPanel.fireChange(JavaTargetChooserPanel.java:225) at org.netbeans.modules.java.project.JavaTargetChooserPanel.stateChanged(JavaTargetChooserPanel.java:273)
Created attachment 124035 [details] stacktrace
TemplateWizard.updateState() method asserts Swing thread. The latter method is called as a result of listener notification. It's strange to expect that listeners are notified via Swing thread only. At least it should be somehow declared at a contract.
IMHO javax.swing.event.ChangeEvent suggests that this should be called in AWT thread, since Swing should not be accessed outside the event dispatch thread. This should be fixed at WebServiceFromWSDLPanel.fireChange(WebServiceFromWSDLPanel.java:575) IMHO.
web-main#5cbda3151c0e
Integrated into 'main-golden', will be available in build *201209120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5cbda3151c0e User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#218003 - AssertionError at org.openide.loaders.TemplateWizard.updateState
v. in: Product Version: NetBeans IDE Dev (Build 20120913-eef2038d5a4f) Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09 System: Linux version 3.2.0-31-generic running on amd64; UTF-8; en_US (nb) User directory: /space/java/nb_dev/udir Cache directory: /space/java/nb_dev/udir/var/cache