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 235998 - java.lang.IllegalStateException: This must happen in the event thread!
Summary: java.lang.IllegalSta...
Status: RESOLVED DUPLICATE of bug 231104
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Peska
Depends on:
Reported: 2013-09-15 21:25 UTC by markiewb
Modified: 2015-03-06 12:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log (100.92 KB, text/plain)
2013-09-15 21:25 UTC, markiewb

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-09-15 21:25:34 UTC
Created attachment 140107 [details]
IDE log

java.lang.IllegalStateException: This must happen in the event thread!
	at org.openide.awt.Actions$Bridge.propertyChange(
	at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(
	at java.beans.PropertyChangeSupport.firePropertyChange(
	at java.beans.PropertyChangeSupport.firePropertyChange(
	at java.beans.PropertyChangeSupport.firePropertyChange(
	at org.openide.util.actions.NodeAction$DelegateAction.resultChanged(
	at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.openide.util.WeakListenerImpl$ProxyListener.invoke(
	at com.sun.proxy.$Proxy6.resultChanged(Unknown Source)
	at org.openide.util.lookup.AbstractLookup$
	at org.openide.util.lookup.AbstractLookup.notifyIn(
	at org.openide.util.lookup.AbstractLookup.addPairImpl(
	at org.openide.util.lookup.AbstractLookup.addPair(
	at org.openide.util.lookup.AbstractLookup$Content.addPair(
	at org.openide.util.lookup.InstanceContent.add(
	at org.openide.util.RequestProcessor$
	at org.openide.util.RequestProcessor$

Product Version: NetBeans IDE 7.4 RC1 (Build 201309112301)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Tomas Zezula 2013-09-16 10:36:53 UTC
The org.openide.util.actions.NodeAction$DelegateAction.resultChanged should not expect that changes from Lookup come in EDT, it's not guaranteed. In fact setting the lookup may be expensive operation which should not be done in EDT, see issue #223978, there are reports where setting the instance content took 45s.
Comment 2 Ondrej Vrabec 2015-03-06 12:36:06 UTC

*** This bug has been marked as a duplicate of bug 231104 ***