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 110707 - [tests] IOOBE from breakpoints functional tests
Summary: [tests] IOOBE from breakpoints functional tests
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-24 10:27 UTC by ehucka
Modified: 2007-08-03 09:14 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 ehucka 2007-07-24 10:27:11 UTC
Functional class and thread breakpoints tests fail on:
It is reproducible manually:

1. create a class breakpoint
2. start debugging



    java.lang.IndexOutOfBoundsException: from = 0 is too high, frame count = 0
	at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.getCallStack(JPDAThreadImpl.java:316)
	at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.getCallStack(JPDAThreadImpl.java:281)
	at org.netbeans.modules.debugger.jpda.ui.CurrentThreadAnnotationListener.annotate(CurrentThreadAnnotationListener.java:129)
	at
org.netbeans.modules.debugger.jpda.ui.CurrentThreadAnnotationListener.propertyChange(CurrentThreadAnnotationListener.java:72)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
	at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.firePropertyChange(JPDADebuggerImpl.java:1276)
	at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.setStoppedState(JPDADebuggerImpl.java:896)
	at org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.perform(BreakpointImpl.java:329)
	at org.netbeans.modules.debugger.jpda.breakpoints.ThreadBreakpointImpl.exec(ThreadBreakpointImpl.java:104)
	at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:235)
	at java.lang.Thread.run(Thread.java:595)
Comment 1 ehucka 2007-07-24 10:30:36 UTC
It seems debugger sometimes does not stop on thread and class brekpoints.
Comment 2 Martin Entlicher 2007-07-24 16:43:50 UTC
Thanks to my detailed annotation of the IndexOutOfBoundsException, I've found that the problem is when the call stack
does not contain any frames.
Comment 3 Martin Entlicher 2007-07-24 16:45:54 UTC
The fix was trivial:

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java,v  <-- 
JPDAThreadImpl.java
new revision: 1.34; previous revision: 1.33
Comment 4 ehucka 2007-08-03 09:14:23 UTC
verified