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 218003 - AssertionError at org.openide.loaders.TemplateWizard.updateState
Summary: AssertionError at org.openide.loaders.TemplateWizard.updateState
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-07 14:20 UTC by Lukas Jungmann
Modified: 2012-09-13 10:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 192214


Attachments
stacktrace (2.07 KB, text/plain)
2012-09-07 14:20 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2012-09-07 14:20:34 UTC
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)
Comment 1 Lukas Jungmann 2012-09-07 14:20:35 UTC
Created attachment 124035 [details]
stacktrace
Comment 2 Denis Anisimov 2012-09-10 04:48:58 UTC
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.
Comment 3 Martin Entlicher 2012-09-10 12:43:26 UTC
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.
Comment 4 Denis Anisimov 2012-09-11 07:10:51 UTC
web-main#5cbda3151c0e
Comment 5 Quality Engineering 2012-09-12 02:13:04 UTC
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
Comment 6 Lukas Jungmann 2012-09-13 10:42:38 UTC
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