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 231104 - java.lang.IllegalStateException: This must happen in the event thread!
Summary: java.lang.IllegalStateException: This must happen in the event thread!
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
: 231664 235537 235998 246218 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-11 20:38 UTC by infonaut
Modified: 2015-03-06 13:27 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
possible fix? (1.08 KB, patch)
2014-07-17 07:57 UTC, Ondrej Vrabec
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description infonaut 2013-06-11 20:38:12 UTC
[ BUILD # : 201306100004 ]
[ JDK VERSION : 1.7.0_21 ]

inside the editor on Right Click > Find Usages > Find
the IDE Log shows tons of this Exception

java.lang.IllegalStateException: This must happen in the event thread!
	at org.openide.awt.Actions$Bridge.propertyChange(Actions.java:929)
	at
org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl
.java:196)
	at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:3
27)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:2
63)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:3
03)
	at
org.openide.util.actions.NodeAction$DelegateAction.resultChanged(NodeAction.java
:616)
	at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at
org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:458
)
	at com.sun.proxy.$Proxy6.resultChanged(Unknown Source)
	at
org.openide.util.lookup.AbstractLookup$NotifyListeners.run(AbstractLookup.java:5
42)
	at org.openide.util.lookup.AbstractLookup.notifyIn(AbstractLookup.java:314)
	at org.openide.util.lookup.AbstractLookup.addPairImpl(AbstractLookup.java:256)
	at org.openide.util.lookup.AbstractLookup.addPair(AbstractLookup.java:223)
	at
org.openide.util.lookup.AbstractLookup$Content.addPair(AbstractLookup.java:1278)

	at org.openide.util.lookup.InstanceContent.add(InstanceContent.java:90)
	at
org.netbeans.modules.java.navigation.ClassMemberPanelUI$7.run(ClassMemberPanelUI
.java:726)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Comment 1 Tomas Zezula 2013-06-13 18:43:44 UTC
Unfortunately the ClassMemberPanelUI.propertyChange() has to modify the Lookup outside the EDT because the InstanceContent.add() may be expensive, see issue #223978 for details. It's questionable if the  NodeAction$DelegateAction.resultChanged() should be prepared that events from lookup outside of the EDT.
Comment 2 Tomas Zezula 2013-06-24 12:04:50 UTC
*** Bug 231664 has been marked as a duplicate of this bug. ***
Comment 3 Ondrej Vrabec 2014-07-17 07:57:27 UTC
Created attachment 148092 [details]
possible fix?
Comment 4 Jan Peska 2014-07-23 07:40:23 UTC
fix: http://hg.netbeans.org/core-main/rev/40975ade5d9f
Comment 5 Quality Engineering 2014-07-24 02:40:45 UTC
Integrated into 'main-silver', will be available in build *201407240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/40975ade5d9f
User: Jan Peska <JPESKA@netbeans.org>
Log: Issue #231104 - java.lang.IllegalStateException: This must happen in the event thread!
Ensure the NodeAction fires property change in EDT - Applying Ondra's patch
Comment 6 Ondrej Vrabec 2015-03-04 08:52:46 UTC
*** Bug 246218 has been marked as a duplicate of this bug. ***
Comment 7 Ondrej Vrabec 2015-03-06 12:36:06 UTC
*** Bug 235998 has been marked as a duplicate of this bug. ***
Comment 8 Ondrej Vrabec 2015-03-06 13:27:02 UTC
*** Bug 235537 has been marked as a duplicate of this bug. ***