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 120737 - IDE hangs when I right click on the Java Editor when scanning is going on
Summary: IDE hangs when I right click on the Java Editor when scanning is going on
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords: THREAD
: 120846 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-31 23:21 UTC by Winston Prakash
Modified: 2007-11-01 17:08 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread Dump (69.35 KB, text/html)
2007-10-31 23:26 UTC, Winston Prakash
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Winston Prakash 2007-10-31 23:21:31 UTC
- Open a module project
- Note scanning and gets stuck openide/util/test/unit/src  for ever.
- Open any Java Project
- Right click on the Java Editor
- IDE hangs. 

Attaching Thread Dump.
Comment 1 Winston Prakash 2007-10-31 23:26:56 UTC
Created attachment 52198 [details]
Thread Dump
Comment 2 Jan Lahoda 2007-11-01 07:58:52 UTC
Two separate problems here, IMO:
-scanning of openide/util/test/unit/src forever - I was not able to reproduce so far, but I will keep trying.
-parsing in the AWT - the callers of JavaSource.runUserActionTask need to do something about this, this cannot be solved
in the Java infrastructure. In this case it is:
org.netbeans.modules.j2ee.ejbcore._RetoucheUtil.getJavaClassFromNode(_RetoucheUtil.java:145)
org.netbeans.modules.j2ee.ejbcore.ui.logicalview.ejb.action.EJBActionGroup.enable(EJBActionGroup.java:125)
org.openide.util.actions.NodeAction$DelegateAction.resultChanged(NodeAction.java:611)
...
Comment 3 Tomas Zezula 2007-11-01 11:24:33 UTC
As Honza described above this issue has two problems:
1) The livelock
2) The AWT call to infrastructure (not so important) and outside of java editor (j2ee)
We will use this issue for the first problem.

Unfortunately I am not able to reproduce it either, I will attach the patched javac-impl.jar can you try to reproduce it
using this patched javac-impl.jar? It will generate debug messages we can use to find out what happens.
Comment 4 Andrei Badea 2007-11-01 12:05:12 UTC
> parsing in the AWT - the callers of JavaSource.runUserActionTask need to do something about this

Issue 120623.
Comment 5 Marian Mirilovic 2007-11-01 13:13:13 UTC
2) reported as separate issue 120623
Comment 6 Tomas Zezula 2007-11-01 13:40:09 UTC
Tonda had the version of openide/util with the broken source causing this bug (reproduceable case).

Fixed.
Checking in javac-impl.jar;
/cvs/java/source/javacimpl/external/javac-impl.jar,v  <--  javac-impl.jar
new revision: 1.20; previous revision: 1.19
done
Comment 7 Winston Prakash 2007-11-01 14:55:31 UTC
I verified that it works.
Comment 8 Jan Lahoda 2007-11-01 17:08:22 UTC
*** Issue 120846 has been marked as a duplicate of this issue. ***