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

Summary: The lock for web.xml is not released
Product: javaee Reporter: Jiri Prox <jiriprox>
Component: DD EditorAssignee: Milan Kuchtiak <mkuchtiak>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: messages.log

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