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 131557 - IndexOutOfBoundsException at com.sun.tools.jdi.JDWPException.toJDIException
Summary: IndexOutOfBoundsException at com.sun.tools.jdi.JDWPException.toJDIException
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Entlicher
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-30 21:21 UTC by Peter Pis
Modified: 2009-12-03 04:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 41784


Attachments
stacktrace (924 bytes, text/plain)
2008-03-30 21:21 UTC, Peter Pis
Details
stacktrace (36 bytes, text/plain)
2008-07-23 13:37 UTC, _ theanuradha
Details
stacktrace (3.54 KB, text/plain)
2008-07-24 18:21 UTC, _ theanuradha
Details
stacktrace (3.54 KB, text/plain)
2008-07-25 05:57 UTC, thompsonwd40
Details
stacktrace (3.54 KB, text/plain)
2008-07-25 22:55 UTC, jlaskowski
Details
stacktrace (3.54 KB, text/plain)
2008-07-26 10:40 UTC, franci
Details
stacktrace (3.39 KB, text/plain)
2008-07-27 19:41 UTC, daniel_j_larsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Pis 2008-03-30 21:21:37 UTC
Build: NetBeans IDE Dev (Build 200803250006)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b13
OS: Windows XP, 5.1, x86

User Comments: 
Step out throws an exception.
Comment 1 Peter Pis 2008-03-30 21:21:41 UTC
Created attachment 59369 [details]
stacktrace
Comment 2 Martin Entlicher 2008-03-31 00:42:04 UTC
This looks like a big corner case. ThreadReference.frame(0) threw IndexOutOfBoundsException. Thus there is no frame on
the thread? Then Step Out does not have any sense anyway.
Can you please describe where did you step from? Any steps to reproduce are appreciated.
Comment 3 _ theanuradha 2008-07-23 13:37:49 UTC
Build: NetBeans IDE Dev (Build 080723)
VM: Java HotSpot(TM) Client VM, 11.0-b14, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b27
OS: Windows XP, 5.1, x86

User Comments: 
Comment 4 _ theanuradha 2008-07-23 13:37:52 UTC
Created attachment 65372 [details]
stacktrace
Comment 5 _ gtzabari 2008-07-24 00:50:55 UTC
mentlicher,

I stepped out of the following method:

  public void setRequest(Request request)
  {
    this.request.set(request);
  }

where this.request is ThreadLocal<Request>. Why would this be a corner-case?
Comment 6 _ theanuradha 2008-07-24 18:21:12 UTC
Build: NetBeans IDE Dev (Build 080723)
VM: Java HotSpot(TM) Client VM, 11.0-b14, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b27
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.IndexOutOfBoundsException
        at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:41)
        at com.sun.tools.jdi.ThreadReferenceImpl.privateFrames(ThreadReferenceImpl.java:367)
        at com.sun.tools.jdi.ThreadReferenceImpl.frame(ThreadReferenceImpl.java:277)
        at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getStackFrame(CallStackFrameImpl.java:587)
        at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getDefaultStratum(CallStackFrameImpl.java:182)
        at org.netbeans.modules.debugger.jpda.ui.models.CallStackNodeModel.getCSFName(CallStackNodeModel.java:170)
Comment 7 _ theanuradha 2008-07-24 18:21:27 UTC
Created attachment 65573 [details]
stacktrace
Comment 8 thompsonwd40 2008-07-25 05:57:27 UTC
Build: NetBeans IDE Dev (Build 200807240010)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05
OS: Windows XP, 5.1, x86

User Comments: 
[65cat][tools] Visual JSF project, stepping through the code using [F8] in the debugger and received this error.

Stacktrace: 
java.lang.IndexOutOfBoundsException
        at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:41)
        at com.sun.tools.jdi.ThreadReferenceImpl.privateFrames(ThreadReferenceImpl.java:367)
        at com.sun.tools.jdi.ThreadReferenceImpl.frame(ThreadReferenceImpl.java:277)
        at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getStackFrame(CallStackFrameImpl.java:587)
        at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getDefaultStratum(CallStackFrameImpl.java:182)
        at org.netbeans.modules.debugger.jpda.ui.models.CallStackNodeModel.getCSFName(CallStackNodeModel.java:170)
Comment 9 thompsonwd40 2008-07-25 05:57:31 UTC
Created attachment 65614 [details]
stacktrace
Comment 10 jlaskowski 2008-07-25 22:55:20 UTC
Build: NetBeans IDE Dev (Build 200807240010)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.IndexOutOfBoundsException
        at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:41)
        at com.sun.tools.jdi.ThreadReferenceImpl.privateFrames(ThreadReferenceImpl.java:367)
        at com.sun.tools.jdi.ThreadReferenceImpl.frame(ThreadReferenceImpl.java:277)
        at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getStackFrame(CallStackFrameImpl.java:587)
        at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getDefaultStratum(CallStackFrameImpl.java:182)
        at org.netbeans.modules.debugger.jpda.ui.models.CallStackNodeModel.getCSFName(CallStackNodeModel.java:170)
Comment 11 jlaskowski 2008-07-25 22:55:24 UTC
Created attachment 65689 [details]
stacktrace
Comment 12 franci 2008-07-26 10:40:47 UTC
Build: NetBeans IDE Dev (Build 200807251401)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
Debugging "Zillow Tutorial" example

Stacktrace: 
java.lang.IndexOutOfBoundsException
        at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:41)
        at com.sun.tools.jdi.ThreadReferenceImpl.privateFrames(ThreadReferenceImpl.java:367)
        at com.sun.tools.jdi.ThreadReferenceImpl.frame(ThreadReferenceImpl.java:277)
        at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getStackFrame(CallStackFrameImpl.java:587)
        at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getDefaultStratum(CallStackFrameImpl.java:182)
        at org.netbeans.modules.debugger.jpda.ui.models.CallStackNodeModel.getCSFName(CallStackNodeModel.java:170)
Comment 13 franci 2008-07-26 10:40:51 UTC
Created attachment 65715 [details]
stacktrace
Comment 14 daniel_j_larsson 2008-07-27 19:41:03 UTC
Build: NetBeans IDE Dev (Build 200807240010)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237
OS: Mac OS X, 10.5.4, i386

User Comments: 
Clicked Navigate->Goto Source on a call to a library routine (for which I had source code)

Stacktrace: 
java.lang.IndexOutOfBoundsException
        at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:41)
        at com.sun.tools.jdi.ThreadReferenceImpl.privateFrames(ThreadReferenceImpl.java:366)
        at com.sun.tools.jdi.ThreadReferenceImpl.frame(ThreadReferenceImpl.java:276)
        at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getStackFrame(CallStackFrameImpl.java:587)
        at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getDefaultStratum(CallStackFrameImpl.java:182)
        at org.netbeans.modules.debugger.jpda.ui.models.CallStackNodeModel.getCSFName(CallStackNodeModel.java:170)
Comment 15 daniel_j_larsson 2008-07-27 19:41:07 UTC
Created attachment 65750 [details]
stacktrace
Comment 16 Daniel Prusa 2008-07-28 09:58:15 UTC
IOOBE which of stack trace contains
org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getStackFrame(CallStackFrameImpl.java:587)
is a duplicate of issue 141690 and it has been already fixed.

It remains to fix the originally reported IOOBE at
org.netbeans.modules.debugger.jpda.actions.StepActionProvider.addMethodExitBP(StepActionProvider.java:219)
Comment 17 Martin Entlicher 2009-12-02 14:40:41 UTC
Fixed in changeset:   155077:ac5ccb4b2292
http://hg.netbeans.org/main/rev/ac5ccb4b2292
Comment 18 Quality Engineering 2009-12-03 04:54:12 UTC
Integrated into 'main-golden', will be available in build *200912030200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ac5ccb4b2292
User: mentlicher@netbeans.org
Log: #131557 - Catch IndexOutOfBoundsException.