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 168178 - IndexOutOfBoundsException: Invalid line index=14 >= lineCount=1
Summary: IndexOutOfBoundsException: Invalid line index=14 >= lineCount=1
Status: REOPENED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@third-party
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-06 15:03 UTC by Exceptions Reporter
Modified: 2009-11-11 10:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 384


Attachments
stacktrace (1.42 KB, text/plain)
2009-07-06 15:04 UTC, Exceptions Reporter
Details
stacktrace (1.43 KB, text/plain)
2009-07-21 13:09 UTC, squib
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2009-07-06 15:03:49 UTC
Build: NetBeans IDE Dev (Build 200906230201)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows Vista, 6.0, x86

User Comments:
GUEST: Adding a new Action to my Struts project.

giorgio42: Pressed Alt+Shift+F after changing a class signature from extends Object to extends TestCase.



Stacktrace: 
java.lang.IndexOutOfBoundsException: Invalid line index=14 >= lineCount=1
        at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:112)
        at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:669)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1371)
        at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:644)
        at org.openide.text.NbDocument.findLineOffset(NbDocument.java:176)
        at cz.sickboy.netbeans.checkstyle.editor.CheckstyleAnnotation.documentAttach(CheckstyleAnnotation.java:59)
Comment 1 Exceptions Reporter 2009-07-06 15:04:00 UTC
Created attachment 84399 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-07-06 15:04:26 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=384
Comment 3 squib 2009-07-21 13:09:17 UTC
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.IndexOutOfBoundsException: Invalid line index=184 >= lineCount=183<br/>
        at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:112)<br/>
        at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:669)<br/>
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1371)<br/>
        at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:644)<br/>
        at org.openide.text.NbDocument.findLineOffset(NbDocument.java:176)<br/>
        at cz.sickboy.netbeans.checkstyle.editor.CheckstyleAnnotation.documentAttach(CheckstyleAnnotation.java:59)<br/>
Comment 4 squib 2009-07-21 13:09:27 UTC
Created attachment 85002 [details]
stacktrace
Comment 5 Exceptions Reporter 2009-07-21 13:09:43 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=384
Comment 6 Jan Jancura 2009-11-11 08:01:28 UTC
User issue. NbDocument.findLineOffset () must be called under document lock!
Comment 7 Vitezslav Stejskal 2009-11-11 10:17:03 UTC
Most likely a problem in cz.sickboy.netbeans.checkstyle.editor.CheckstyleAnnotation.documentAttach(CheckstyleAnnotation.java:59).