Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 156734 - doesn't return -1 doesn't return -1
Product: java
Classification: Unclassified
Component: Source
All All
: P3 (vote)
: 8.0
Assigned To: Svata Dedic
Depends on:
  Show dependency treegraph
Reported: 2009-01-14 08:02 UTC by Jiri Skrivanek
Modified: 2013-12-02 08:49 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT

Proposed Patch (580 bytes, patch)
2013-07-03 12:12 UTC, Jaroslav Havlin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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\
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.registerLock(
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(
        at org.openide.loaders.MultiDataObject$Entry.takeLock(
        at org.openide.loaders.FileEntry.delete(
        at org.openide.loaders.MultiDataObject.handleDelete(
        at org.openide.loaders.DataObject$
        at org.openide.loaders.DataObject$
        at org.openide.loaders.DataObjectPool$
        at org.openide.filesystems.EventControl.runAtomicAction(
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 to @NbBundle.Messages annotations (thank you, Martin).

It seems that the problem is caused by method[], 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.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo