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.
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)
Created attachment 84399 [details] stacktrace
This issue already has 6 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=384
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/>
Created attachment 85002 [details] stacktrace
This issue already has 7 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=384
User issue. NbDocument.findLineOffset () must be called under document lock!
Most likely a problem in cz.sickboy.netbeans.checkstyle.editor.CheckstyleAnnotation.documentAttach(CheckstyleAnnotation.java:59).