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 156734

Summary: ModificationResult.FilteringReader.read doesn't return -1
Product: java Reporter: Jiri Skrivanek <jskrivanek>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: VERIFIED FIXED    
Severity: blocker CC: mikewilkinson, mjanicek
Priority: P3 Keywords: PATCH_AVAILABLE
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=145164
Issue Type: DEFECT Exception Reporter: 145164
Attachments: Proposed Patch

Description Jiri Skrivanek 2009-01-14 08:02:03 UTC
Submitted on behalf of external user.

Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 1.5.0_06-b05, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_06-b05
OS: Windows XP, 5.1, x86
User comments: NetBEans SUCKS
STACKTRACE: (first 10 lines)
org.openide.filesystems.FileAlreadyLockedException: E:\NetBeansProjects\ICEFacesDemo\src\java\icefacesdemo\ProviderFind.java
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.registerLock(LockForFile.java:107)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:96)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:277)
        at org.openide.loaders.MultiDataObject$Entry.takeLock(MultiDataObject.java:1189)
        at org.openide.loaders.FileEntry.delete(FileEntry.java:132)
        at org.openide.loaders.MultiDataObject.handleDelete(MultiDataObject.java:524)
        at org.openide.loaders.DataObject$4.run(DataObject.java:608)
        at org.openide.loaders.DataObject$1WrapRun.run(DataObject.java:849)
        at org.openide.loaders.DataObjectPool$1WrapAtomicAction.run(DataObjectPool.java:258)
        at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
Comment 1 Peter Zavadsky 2009-01-20 19:23:17 UTC
This belongs to IceFaces.
Comment 2 Martin Janicek 2013-03-06 14:10:54 UTC
Do not think this is related to IceFaces - the same exception just jump on me and I'm not using IceFaces at all.. not sure where it belong, reassigning for evaluation
Comment 3 Jaroslav Havlin 2013-07-03 12:12:16 UTC
Created attachment 136649 [details]
Proposed Patch
Comment 4 Jaroslav Havlin 2013-07-03 12:16:12 UTC
I was able to reproduce the bug by accepting the hint that suggests transforming items in Bundle.properties to @NbBundle.Messages annotations (thank you, Martin).

It seems that the problem is caused by method
ModificationResult.FilteringReader.read(char[], int, int),
that cannot return value -1 at the end of input file.

Please check the patch and apply it if you think it is OK. Thank you.
Comment 5 Svata Dedic 2013-11-25 09:45:31 UTC
Thank you for the analysis & patch, Jardo.

Committed as rev. http://hg.netbeans.org/jet-main/rev/adec8af77fae.