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.
A process (scanning source code I would expect) is being called in AWT event thread causing the ide to become unresponsive (until the process finishes). Also, as a consequence, the window is not refreshed (redrawn) during this time. Steps to reproduce: 1. Start netbeans (with let's say 10 java projects open, enough to keep "Scanning projects" on for a while) 2. Select a project (one of the first, so that after it is scanned, there are more projects to scan) and open a java class in that project Expected behavior: The java file opened immediately. Observed behavior: The ide becomes unresponsive and the window is not redrawn until all projects are scanned. The file is opened only after the scanning is complete. Message log says: WARNING [org.netbeans.modules.parsing.impl.TaskProcessor]: ParserManager.parse called in AWT event thread by: org.netbeans.api.java.source.SourceUtils.getMainClasses(SourceUtils.java:775)
Please provide thread dump and build number of used build. We already fix one similar issue.
Created attachment 81962 [details] Thread dump
I'm sorry, I forgot to attach thread dump and the build number. Build no.: 200905120201
Please attach the threaddump, not the profiler snapshot. Profiler snapshots won't show if there was a deadlock or what each thread was doing at a given point in time. Thanks http://wiki.netbeans.org/GenerateThreadDump
Created attachment 82540 [details] Hopefully the correct thread dump
This issue appears to actually be in the contrib/jemmysupport module, not the Java module; a workaround (if you are not developing NB platform apps and really using Jemmy) would be to disable that module; jemmysupport is not part of the IDE and must have been downloaded from the update center. org.netbeans.modules.jemmysupport.runinternally.RunInternallyAction.getSelectedMainClass(RunInternallyAction.java:258) at org.netbeans.modules.jemmysupport.runinternally.RunInternallyAction.enable(RunInternallyAction.java:140) Also, it appears in source that org.netbeans.modules.jemmysupport.runinternally.RunInternallyAction no longer exists, so probably this bug can be closed.
Reassigning all moonko's java/source bugs to myself.
The same evaluation as Tim above.