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.
Product Version: NetBeans IDE Dev (Build 200710031200) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) Steps to reproduce: Create new Java Project. Open main class and set caret behind class code Add profiling point here Run profiling Exception is thrown: java.lang.IndexOutOfBoundsException: Invalid line index=24 >= lineCount=24 at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:114) at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:667) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1191) at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:643) at org.openide.text.NbDocument.findLineOffset(NbDocument.java:176) at org.netbeans.modules.profiler.ppoints.Utils.getDocumentOffset(Utils.java:197) at org.netbeans.modules.profiler.ppoints.Utils.getClassName(Utils.java:209) at org.netbeans.modules.profiler.ppoints.CodeProfilingPoint.createRuntimeProfilingPoint(CodeProfilingPoint.java:57) at org.netbeans.modules.profiler.ppoints.CodeProfilingPoint$Single.createRuntimeProfilingPoints(CodeProfilingPoint.java:100) at org.netbeans.modules.profiler.ppoints.ProfilingPointsManager.createCodeProfilingConfiguration(ProfilingPointsManager.java:554) at org.netbeans.modules.profiler.NetBeansProfiler.setupDispatcher(NetBeansProfiler.java:1969) at org.netbeans.modules.profiler.NetBeansProfiler.prepareInstrumentation(NetBeansProfiler.java:1852) at org.netbeans.modules.profiler.NetBeansProfiler$4.doInBackground(NetBeansProfiler.java:588) at com.sun.tools.profiler.ui.SwingWorker$3.run(SwingWorker.java:91) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
the same root cause as in issue #118529 *** This issue has been marked as a duplicate of 118529 ***
Verified duplicate