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 184016 - IndexOutOfBoundsException: Illegal OffsetKind[offset=-1] in org.netbeans.modules.editor.NbEditorDocument@11d15c4, mimeType = 'text/x-java', kitClass = null, length = 16277, file=org.netbeans.modules.j
Summary: IndexOutOfBoundsException: Illegal OffsetKind[offset=-1] in org.netbeans.modu...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-13 13:13 UTC by Vladimir Voskresensky
Modified: 2010-12-23 07:07 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 167964


Attachments
stacktrace (1.94 KB, text/plain)
2010-04-13 13:13 UTC, Vladimir Voskresensky
Details
stacktrace (1.92 KB, text/plain)
2010-05-18 11:22 UTC, Alexander Simon
Details
stacktrace (1.87 KB, text/plain)
2010-07-02 09:08 UTC, Chiana
Details
stacktrace (1.88 KB, text/plain)
2010-07-20 13:48 UTC, tms1979
Details
stacktrace (1.93 KB, text/plain)
2010-08-04 14:37 UTC, J Bachorik
Details
stacktrace (1.93 KB, text/plain)
2010-08-04 14:40 UTC, J Bachorik
Details
stacktrace (1.91 KB, text/plain)
2010-08-13 08:20 UTC, J Bachorik
Details
stacktrace (1.90 KB, text/plain)
2010-08-19 11:50 UTC, Sergey Petrov
Details
stacktrace (1.86 KB, text/plain)
2010-09-01 03:27 UTC, David Konecny
Details
stacktrace (1.91 KB, text/plain)
2010-11-18 00:36 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2010-04-13 13:13:36 UTC
Build: NetBeans IDE Dev (Build 100413-d5ab89f6f5bc)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: SunOS

Stacktrace: 
java.lang.IndexOutOfBoundsException: Illegal OffsetKind[offset=-1] in org.netbeans.modules.editor.NbEditorDocument@11d15c4, mimeType = 'text/x-java', kitClass = null, length = 16277, file=org.netbeans.modules.java.JavaDataObject@618134[MasterFileObject[/net/d-espb04-127-81/export/devarea/trunk/cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/MakeProjectFileProviderFactory.java@10c987b:1eb922,valid=true]] used by org.netbeans.modules.java.JavaDataObject$JavaEditorSupport@158cdba.
   at org.openide.text.PositionRef$Manager$OffsetKind.<init>(PositionRef.java:657)
   at org.openide.text.PositionRef.<init>(PositionRef.java:84)
   at org.openide.text.CloneableEditorSupport.createPositionRef(CloneableEditorSupport.java:1527)
   at org.netbeans.modules.editor.hints.HintsControllerImpl$1.run(HintsControllerImpl.java:187)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1388)
   at org.netbeans.modules.editor.hints.HintsControllerImpl.linePart(HintsControllerImpl.java:183)
Comment 1 Vladimir Voskresensky 2010-04-13 13:13:40 UTC
Created attachment 97192 [details]
stacktrace
Comment 2 Alexander Simon 2010-05-18 11:22:58 UTC
Created attachment 99127 [details]
stacktrace
Comment 3 Exceptions Reporter 2010-07-02 08:50:23 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=167964
Comment 4 Exceptions Reporter 2010-07-02 08:53:18 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=167964
Comment 5 Chiana 2010-07-02 09:08:18 UTC
Created attachment 100563 [details]
stacktrace

Was copying an pasting from one project to another, this occured after copy,  I had not  reset the line causing #406825 & #406826 so this is probable the same
Comment 6 tms1979 2010-07-20 13:48:52 UTC
Created attachment 100935 [details]
stacktrace

Opened a .java file with a red exclamation mark button on it in the "Projects" pane. The mouseover hint of said file read "Error parsing file". The project builds correctly.
Comment 7 J Bachorik 2010-08-04 14:37:47 UTC
Created attachment 101197 [details]
stacktrace
Comment 8 J Bachorik 2010-08-04 14:40:47 UTC
Created attachment 101198 [details]
stacktrace
Comment 9 J Bachorik 2010-08-13 08:20:21 UTC
Created attachment 101363 [details]
stacktrace

editing :(
Comment 10 Exceptions Reporter 2010-08-13 08:20:32 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=167964
Comment 11 Sergey Petrov 2010-08-19 11:50:42 UTC
Created attachment 101525 [details]
stacktrace

just replay one code with another in editor
Comment 12 David Konecny 2010-09-01 03:27:46 UTC
Created attachment 101794 [details]
stacktrace
Comment 13 David Konecny 2010-11-18 00:36:24 UTC
Created attachment 103053 [details]
stacktrace

opened a new java file in editor from Search Results window
Comment 14 David Konecny 2010-12-12 18:51:21 UTC
55 exception reports
Comment 15 David Strupl 2010-12-21 08:49:35 UTC
Can you please have a look at this? Thanks.
Comment 16 Jan Lahoda 2010-12-21 19:39:09 UTC
Found a case how this can happen:
http://hg.netbeans.org/jet-main/rev/ffb795cc17f3
Comment 17 Quality Engineering 2010-12-23 07:07:58 UTC
Integrated into 'main-golden', will be available in build *201012230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ffb795cc17f3
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #184016: preventing IndexOutOfBoundsException for errors originating in annotation processors.