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 251464 - IllegalThreadStateException: Should never be called from AWT thread
Summary: IllegalThreadStateException: Should never be called from AWT thread
Status: REOPENED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-27 17:09 UTC by Alexander Simon
Modified: 2016-03-23 20:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216403


Attachments
stacktrace (4.11 KB, text/plain)
2015-03-27 17:09 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2015-03-27 17:09:08 UTC
Build: NetBeans IDE Dev (Build 20150327-185375e39672)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b26
OS: SunOS

User Comments:
alexvsimon: start IDE with opened remote files




Stacktrace: 
java.lang.IllegalThreadStateException: Should never be called from AWT thread
   at org.netbeans.modules.nativeexecution.api.util.MacroExpanderFactory.getExpander(MacroExpanderFactory.java:88)
   at org.netbeans.modules.nativeexecution.api.util.MacroExpanderFactory.getExpander(MacroExpanderFactory.java:70)
   at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.getOriginalFSServerPath(FSSDispatcher.java:441)
   at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.checkServerSetup(FSSDispatcher.java:474)
   at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.getOrCreateServer(FSSDispatcher.java:522)
   at org.netbeans.modules.remote.impl.fs.server.FSSDispatcher.dispatch(FSSDispatcher.java:363)
Comment 1 Alexander Simon 2015-03-27 17:09:09 UTC
Created attachment 152889 [details]
stacktrace
Comment 2 Vladimir Kvashin 2015-08-09 21:04:02 UTC
http://hg.netbeans.org/cnd-main/rev/1042264ca164
Comment 3 Vladimir Kvashin 2015-08-10 10:01:42 UTC
Please disregard my previous comment, it was intended for another bug.
Comment 4 Vladimir Kvashin 2016-03-23 20:34:27 UTC
This happened many times.
Version
getMenuPresenters()

createMenu()
Comment 5 Vladimir Kvashin 2016-03-23 20:39:20 UTC
(In reply to Vladimir Kvashin from comment #4)
Sorry, I occasuonaly added not yet complete comment.
What I wanted to say is:
- it happens many times
- it is also connected with long UI freezes
I think the issue is that VersioningMainMenu.getMenuPresenters() calls VersioningMainMenu.createMenu() which in turn calls VersioningManager.getOwners().

The latter is obviously a long operation - even on "local" directories (for example NFS mounts, but not necessarily).

So this should be taken out of UI thread.