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 68379 - The lock for web.xml is not released
Summary: The lock for web.xml is not released
Status: VERIFIED DUPLICATE of bug 68370
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-09 13:58 UTC by Jiri Prox
Modified: 2006-06-05 00:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (28.34 KB, text/plain)
2005-11-09 13:58 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2005-11-09 13:58:03 UTC
NB 5.0 200511091047
JDK 1.5.0_05

Sometimes the lock for web.xml is not released. Any further changes cannot be done.

Steps to reproduce:
1) create new webapp
2) create new servlet, filter or listener
-> it is added to web.xml but in the console there is:
java.lang.Exception: Not released lock for file: C:\Documents and
Settings\jp159440\WebApplication11\web\WEB-INF\web.xml (traped in finalizer)
-> from this moment any changes can not be done (manual or in the editor),
creating new servlet/listener/filter causes poping up of the warning message.

java.lang.Exception: Not released lock for file: C:\Documents and 

Settings\jp159440\WebApplication11\web\WEB-INF\web.xml (traped in finalizer)
	at org.openide.filesystems.FileLock.assertMessageForInvalidLocks(FileLock.java:103)
	at org.openide.filesystems.FileLock.finalize(FileLock.java:95)
	at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
	at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
	at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
Caused by: java.lang.Throwable
	at org.openide.filesystems.FileLock.<init>(FileLock.java:54)
	at
org.netbeans.modules.masterfs.filebasedfs.fileobjects.WriteLock.<init>(WriteLock.java:138)
	at
org.netbeans.modules.masterfs.filebasedfs.fileobjects.WriteLock.getInstance(WriteLock.java:108)
Comment 1 Jiri Prox 2005-11-09 13:58:29 UTC
Created attachment 26765 [details]
messages.log
Comment 2 Petr Blaha 2005-11-09 14:01:05 UTC

*** This issue has been marked as a duplicate of 68370 ***
Comment 3 Jiri Prox 2006-01-17 13:47:39 UTC
verified duplicate