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 209530 - IndexOutOfBoundsException: Index: 0, Size: 0
Summary: IndexOutOfBoundsException: Index: 0, Size: 0
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Ant (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-13 15:44 UTC by aldobrucale
Modified: 2012-05-01 09:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 180854


Attachments
stacktrace (1.11 KB, text/plain)
2012-03-13 15:44 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2012-03-13 15:44:49 UTC
Build: NetBeans IDE 7.1 (Build 201112071828)
VM: Java HotSpot(TM) Client VM, 20.5-b03, Java(TM) SE Runtime Environment, 1.6.0_30-b12
OS: Windows XP

User Comments:
sreder: Trying to add a breakpoint to a custom ant xml script




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.LinkedList.entry(LinkedList.java:365)
   at java.util.LinkedList.remove(LinkedList.java:357)
   at org.netbeans.modules.ant.debugger.AntDebugger.targetFinished(AntDebugger.java:399)
   at org.netbeans.modules.ant.debugger.DebuggerAntLogger.targetFinished(DebuggerAntLogger.java:163)
   at org.apache.tools.ant.module.bridge.impl.NbBuildLogger.targetFinished(NbBuildLogger.java:475)
   at org.apache.tools.ant.Project.fireTargetFinished(Project.java:2166)
Comment 1 aldobrucale 2012-03-13 15:44:51 UTC
Created attachment 116679 [details]
stacktrace
Comment 2 Martin Entlicher 2012-04-25 16:26:06 UTC
IndexOutOfBoundsException at AntDebugger.targetFinished(AntDebugger.java:399) is caused by NullPointerException
	at org.netbeans.modules.ant.debugger.AntDebugger.findTarget(AntDebugger.java:787)
	at org.netbeans.modules.ant.debugger.AntDebugger.targetStarted(AntDebugger.java:330)

Then there's also:
IndexOutOfBoundsException at AntDebugger.taskFinished(AntDebugger.java:292)
thrown many times. There is no apparent cause, no preceding exceptions.
Comment 3 Martin Entlicher 2012-04-26 16:32:38 UTC
The one case caused by NPE is fixed already.
IndexOutOfBoundsException is fixed by changeset:   220360:fdf655e74e28
http://hg.netbeans.org/main/rev/fdf655e74e28
Comment 4 Quality Engineering 2012-05-01 09:55:54 UTC
Integrated into 'main-golden', will be available in build *201205010400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fdf655e74e28
User: mentlicher@netbeans.org
Log: #209530: Log the case when the stack is empty when a task or target finishes. And continue.