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 54587 - [I18N] Invalid MDR API call under doc lock
Summary: [I18N] Invalid MDR API call under doc lock
Status: CLOSED DUPLICATE of bug 51872
Alias: None
Product: contrib
Classification: Unclassified
Component: Tasklist (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: tasklist-issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-06 09:06 UTC by Tim Lebedkov
Modified: 2006-03-24 12:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exceptions (15.00 KB, text/plain)
2005-02-06 09:06 UTC, Tim Lebedkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2005-02-06 09:06:26 UTC
see attached file
Comment 1 Tim Lebedkov 2005-02-06 09:06:54 UTC
Created attachment 20215 [details]
exceptions
Comment 2 Martin Matula 2005-02-07 08:57:46 UTC
Tasklist seems to lock the MDR transaction under a document lock,
which is illegal as the assertion says. Reassigning to tasklist.
Comment 3 Tim Lebedkov 2005-02-07 21:22:54 UTC
the code under tasklist/i18n is not a part of nb.

I call MDRepository.beginTrans(false) inside a 
FileChangeListener.fileChanged(FileEvent fe).
Which document do you mean?
How can it be locked?

How could I avoid this assertion?

Thank You
Comment 4 Martin Matula 2005-02-11 15:36:45 UTC
One option that comes to my mind is to do your work asynchronously
(post it to a separate request processor in fileChanged() method).
Also this is possibly an issue in openide, since the
CloneableEditorSupport saves the document under the document lock,
which causes that the filesystem events are fired under the document
lock. I am not sure if it is fixable. CC'ing Yarda.
Comment 5 Tim Lebedkov 2005-03-03 20:50:04 UTC
changed component to openide.
I start a thread in my code to avoid this exception.

Please consider saving a document 
in CloneableEditorSupport not under the document lock
or close this issue if you think it't not necessary.
Comment 6 Jaroslav Tulach 2005-03-04 07:42:52 UTC
Don't start new thread, rather verify that issue 51872 solves your
problem.
Comment 7 Jaroslav Tulach 2005-03-04 07:43:23 UTC
I believe it will and we plan to integrate that for 4.1.

*** This issue has been marked as a duplicate of 51872 ***
Comment 8 Tim Lebedkov 2005-03-27 13:14:40 UTC
ok