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 6.0 (Build 200711261600) VM: Java HotSpot(TM) Client VM, 1.5.0_06-b05 OS: Windows 2000, 5.0, x86 User comments: I was trying resolve conflicts after I used "merge from branch..." STACKTRACE: (first 10 lines) java.lang.IndexOutOfBoundsException: Invalid line index=1919 >= lineCount=1175 at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:114) at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:669) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1206) at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:644) at org.openide.text.NbDocument.findLineOffset(NbDocument.java:176) at org.netbeans.modules.merge.builtin.visualizer.MergePanel.copy(MergePanel.java:1113) at org.netbeans.modules.merge.builtin.visualizer.MergePanel.copySource1ToResult(MergePanel.java:1088) at org.netbeans.modules.merge.builtin.visualizer.MergeControl.copyToResult(MergeControl.java:239) at org.netbeans.modules.merge.builtin.visualizer.MergeControl.initialize(MergeControl.java:131) at org.netbeans.modules.merge.builtin.visualizer.GraphicalMergeVisualizer.createView(GraphicalMergeVisualizer.java:130)
Most likely a wrong line number passed from the MergePanel.
I will just add here the same comment that I wrote in the statistics page here (just in case - the original comment displayed in the first description seems to be from a very old build of netbeans, see statistics). I got this exception when I tried to resolve a conflict in SVN right after I tried to revert modifications (over multiple selected revisions) in Search History.
I have also updated Summary and URL to statistics page.
This could be a duplicate of http://www.netbeans.org/issues/show_bug.cgi?id=65970.
Please attach those 3 files (Base, Locally Modified, Remotely Modified) that are to be merged so that we can reproduce it here. We are unable to reproduce it on arbitrary files.
This issue has already 10 duplicates
Created attachment 61902 [details] stacktrace
*** Issue 162223 has been marked as a duplicate of this issue. ***
Build: NetBeans IDE 6.7 RC2 (Build 200906042131) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Linux, 2.6.27-14-generic, i386 User Comments: Stacktrace: java.lang.IndexOutOfBoundsException: Invalid line index=2574 >= lineCount=2574 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 org.netbeans.modules.merge.builtin.visualizer.MergePanel.copy(MergePanel.java:1114)
Created attachment 83406 [details] stacktrace
hmichel: Please attach those 3 files (Base, Locally Modified, Remotely Modified) that are to be merged so that we can reproduce it here. We are unable to reproduce it on arbitrary files.
Created attachment 100860 [details] stacktrace using CVS Merge Conflicts Resolver. clicked the Accept and Next button.
Created attachment 100861 [details] stacktrace
100 reports so far, at least P2
(In reply to comment #14) > 100 reports so far, at least P2 since 6.8 (091204) we had only two reports - one in 6.9.1 (101108) and one in 7.0 (110408). No report from 7.1. Problem probably already fixed.