Bug 231104 - java.lang.IllegalStateException: This must happen in the event thread!
java.lang.IllegalStateException: This must happen in the event thread!
Status: NEW
Product: platform
Classification: Unclassified
Component: Nodes
7.4
PC Linux
: P3 (vote)
: TBD
Assigned To: Jan Peska
issues@platform
:
: 231664 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-11 20:38 UTC by infonaut
Modified: 2013-06-24 12:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
:


Attachments

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. ***


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo