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 117893 - [ProfilingPoints] AIOOB exception if point set behind existed code
Summary: [ProfilingPoints] AIOOB exception if point set behind existed code
Status: VERIFIED DUPLICATE of bug 118529
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-05 11:02 UTC by Maksim Khramov
Modified: 2007-10-31 13:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2007-10-05 11:02:04 UTC
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)
Comment 1 J Bachorik 2007-10-15 08:51:55 UTC
the same root cause as in issue #118529

*** This issue has been marked as a duplicate of 118529 ***
Comment 2 Maksim Khramov 2007-10-31 13:41:24 UTC
Verified duplicate