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 85983 - IndexOutOfBoundsException when editing java code
Summary: IndexOutOfBoundsException when editing java code
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks: 90925
  Show dependency tree
 
Reported: 2006-09-27 23:07 UTC by Petr Hrebejk
Modified: 2013-09-02 14:24 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Hrebejk 2006-09-27 23:07:15 UTC
During editing of code, following exception keeps popping up:
SEVERE: Invalid line index=126 >= lineCount=124
java.lang.IndexOutOfBoundsException: Invalid line index=126 >= lineCount=124
at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:86)
at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:673)
at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1181)
...
(whole stack trace attached)

There are no specific steps to reproduce, but it appears quite often.

-----------
NetBeans IDE Dev (Build 060627)
1.6.0-rc; Java HotSpot(TM) 64-Bit Server VM 1.6.0-rc-b89
SunOS version 5.10 running on sparcv9
en (nb); ISO646-US
(netbeans-retouche-200606271000.zip)


	Steps to reproduce. Create a class. Paste something like this:

java.lang.IndexOutOfBoundsException: Invalid line index=46 >= lineCount=43
at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:92)
at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:679)
at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1187)
at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:655)
at org.openide.text.NbDocument.findLineOffset(NbDocument.java:159)
at org.openide.text.DocumentLine$Set.getOriginal(DocumentLine.java:965)
at
org.netbeans.modules.editor.hints.i18n.I18NChecker.getLinePart(I18NChecker.java:181)
at
org.netbeans.modules.editor.hints.i18n.I18NChecker.parseForErrors(I18NChecker.java:164)
at org.netbeans.modules.editor.hints.i18n.I18NChecker.run(I18NChecker.java:81)
at org.netbeans.modules.editor.hints.i18n.I18NChecker.run(I18NChecker.java:62)
at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:778)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
[catch] at java.lang.Thread.run(Thread.java:595)



Metelka -----------


	It looks like the I18NChecker requests a wrong original line. After initial
discussion reassigning to Honza.
Comment 1 Jan Lahoda 2006-12-12 09:45:18 UTC
Not in the build right now.
Comment 2 Rastislav Komara 2009-02-03 10:57:13 UTC
Overtake.
Comment 3 Jan Lahoda 2010-05-11 13:46:52 UTC
Resetting assignee to default for all bugs reported against product java and assigned to moonko.