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 182001 - IllegalThreadStateException: must be called in EQ
Summary: IllegalThreadStateException: must be called in EQ
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-15 00:21 UTC by turletsjungle
Modified: 2012-09-11 08:53 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 151992


Attachments
stacktrace (877 bytes, text/plain)
2010-03-15 00:21 UTC, turletsjungle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description turletsjungle 2010-03-15 00:21:09 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Windows XP

User Comments:
GUEST: Importing an existing java project BaseX XML processor.

daik: Creating a new java project with existing sources

GUEST: Tried to add new Java project with existing sources from Samba share

turletsjungle: Can't create project from existing source.  Can't create any projects.  Can't open any files.  I am uninstalling Netbeans 6.8.  It does NOT run properly.

Below is the output from the most recent error.

java.lang.IllegalThreadStateException: must be called in EQ
	at org.netbeans.spi.java.project.support.ui.IncludeExcludeVisualizer.getVisualizerPanel(IncludeExcludeVisualizer.java:197)
	at org.netbeans.modules.java.j2seproject.ui.wizards.PanelIncludesExcludes.getComponent(PanelIncludesExcludes.java:68)
	at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:738)
	at org.netbeans.modules.project.ui.NewProjectWizard.updateState(NewProjectWizard.java:67)
	at org.openide.WizardDescriptor.updateStateWithFeedback(WizardDescriptor.java:1028)
	at org.openide.WizardDescriptor.access$1500(WizardDescriptor.java:127)
	at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2086)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
[catch] at org.op




Stacktrace: 
java.lang.IllegalThreadStateException: must be called in EQ
   at org.netbeans.spi.java.project.support.ui.IncludeExcludeVisualizer.getVisualizerPanel(IncludeExcludeVisualizer.java:197)
   at org.netbeans.modules.java.j2seproject.ui.wizards.PanelIncludesExcludes.getComponent(PanelIncludesExcludes.java:68)
   at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:738)
   at org.netbeans.modules.project.ui.NewProjectWizard.updateState(NewProjectWizard.java:67)
   at org.openide.WizardDescriptor.updateStateWithFeedback(WizardDescriptor.java:1028)
   at org.openide.WizardDescriptor.access$1500(WizardDescriptor.java:127)
Comment 1 turletsjungle 2010-03-15 00:21:16 UTC
Created attachment 95145 [details]
stacktrace
Comment 2 Tomas Zezula 2010-03-15 14:14:02 UTC
The WizardDescriptor.Panel.getComponent() javadoc says that it can be called by any thread but it's seems wrong as according to http://performance.netbeans.org/howto/dialogs/wizard-panels.html the Panel cannot construct UI components in the constructor and it has to return component from getComponent() where it cannot be created as it is not in the EDT. Only way how to do it is to use SwingUtilities.invokeAndWait which may cause dead lock.
So better way is to fix it in the TemplateWizard.updateState, which should do the same as a WizardDescriptor.updateState (reschedule to EDT when needed).
Comment 3 Stanislav Aubrecht 2012-09-11 08:53:10 UTC
This should be fixed in #217446, please reopen if still reproducible.