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 46408 - Editor accessing MDRepository from AWT Thread
Summary: Editor accessing MDRepository from AWT Thread
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
: 46412 (view as bug list)
Depends on:
Blocks: 45449
  Show dependency tree
 
Reported: 2004-07-21 20:07 UTC by Jan Lahoda
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Full Thread Dump (19.76 KB, text/plain)
2004-07-21 20:09 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2004-07-21 20:07:13 UTC
NB trunk continous build 20040721-1416, JDK1.4.2_05.

See the attached thread dump (look at the AWT
Dispatch Thread). The potential problem is that
the tooltip creation runs in the AWT Dispatch
Thread, so it is possible that the whole IDE is
blocked (as in the case shown in the FTD).
Comment 1 Jan Lahoda 2004-07-21 20:09:58 UTC
Created attachment 16371 [details]
Full Thread Dump
Comment 2 Miloslav Metelka 2004-07-22 16:25:14 UTC
The editor is requesting EditorCookie from the java data object to ask
it for the document and line set to later attach tooltip annotations
to it. IMO this should work in a MDR-transaction free way but
apparently it does not.
After looking to the sources the JavaDataObject.getCookie() acquires
MDR transaction under certain conditions regardless what cookie is
being retrieved which is IMHO too strong. I assume that this was
changed due to certain deadlock fixing but IMO it should be revised
and things like e.g. LineCookie.getLineSet() should not require MDR
transaction. Reassigning to java for evaluation.
Comment 3 Jan Becicka 2004-07-22 16:39:55 UTC
*** Issue 46412 has been marked as a duplicate of this issue. ***
Comment 4 Martin Matula 2004-07-22 17:40:53 UTC
Fixed.

Checking in org/netbeans/modules/java/JavaDataObject.java;
/cvs/java/src/org/netbeans/modules/java/JavaDataObject.java,v  <-- 
JavaDataObject.java
new revision: 1.187; previous revision: 1.186
done
Comment 5 Jan Lahoda 2004-08-13 13:09:03 UTC
I have not seen this problem since marked as fixed->marking as verified.