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.
see attached file
Created attachment 20215 [details] exceptions
Tasklist seems to lock the MDR transaction under a document lock, which is illegal as the assertion says. Reassigning to tasklist.
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
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.
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.
Don't start new thread, rather verify that issue 51872 solves your problem.
I believe it will and we plan to integrate that for 4.1. *** This issue has been marked as a duplicate of 51872 ***
ok