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 145416 - com.sun.jdi.request.InvalidRequestStateException: step request instance of java.lang.Thread(name='main', id=1) (deleted)
Summary: com.sun.jdi.request.InvalidRequestStateException: step request instance of ja...
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@debugger
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
: 162740 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-28 13:24 UTC by Peter Pis
Modified: 2010-04-29 09:43 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 100767


Attachments
stacktrace (1.67 KB, text/plain)
2008-08-28 13:24 UTC, Peter Pis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Pis 2008-08-28 13:24:41 UTC
Build: NetBeans IDE Dev (Build 200808280201)
VM: Java HotSpot(TM) Client VM, 1.5.0_11-b03, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_11-b03
OS: Linux, 2.6.9-1.667, i386

User Comments: 
Steping into method causes problem.

Stacktrace: 
com.sun.jdi.request.InvalidRequestStateException: step request instance of java.lang.Thread(name='main', id=1) (deleted)
        at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.invalidState(EventRequestManagerImpl.java:96)
        at com.sun.tools.jdi.EventRequestManagerImpl$ClassVisibleEventRequestImpl.addClassExclusionFilter(EventRequestManagerImpl.java:272)
        at org.netbeans.modules.debugger.jpda.actions.StepIntoNextMethod.addPatternsToRequest(StepIntoNextMethod.java:341)
        at org.netbeans.modules.debugger.jpda.actions.StepIntoNextMethod.propertyChange(StepIntoNextMethod.java:153)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
Comment 1 Peter Pis 2008-08-28 13:24:48 UTC
Created attachment 68527 [details]
stacktrace
Comment 2 Peter Pis 2008-08-28 13:26:28 UTC
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        for (int i = 0; i < 10; i++) {
            run(i);
            int j = 0;
            j++;
            j = j + 2;
        }
    }

    private static void run(int i) {
        System.out.println("");
        int j = 0;
        j++;
        j = j + 2;
    }
}
Comment 3 Peter Pis 2008-08-28 13:32:35 UTC
Steps:
1. Replace line "System.out.println..." with "X" and save the file.
2. Put bkpt on line where "run(i)" is being called.
3. Debug file.
4. Push "F7" until "Debugger stopped on uncompilable source code" message is printed in "Debugger Console".
5. Then correct the code. (System.out.println("");) and save the file.
6. Program pops back to "run(i)" method.
7. Push "F7". Thread is stopped on "System.out...".
8. Push "F7" again.

Exception is thrown.
Comment 4 Peter Pis 2008-08-29 14:55:59 UTC
Can't reproduce on Mac. Will try again later.
Comment 5 Peter Pis 2008-09-03 13:39:23 UTC
Can't reproduce for latest builds. Worksforme.
Comment 6 Peter Pis 2008-09-04 16:01:54 UTC
Verified. Worksforme
Comment 7 Exceptions Reporter 2008-10-20 12:09:42 UTC
Reopening - reproduced in NetBeans IDE Dev (Build 200810181401)
http://statistics.netbeans.org/exceptions/detail.do?id=130841
Comment 8 Martin Entlicher 2008-10-20 12:53:28 UTC
Any steps to reproduce? Adding RANDOM keyword, since it's not reproducible for me.
Also decreasing the priority to P3, it does not seem to be a common problem,
http://statistics.netbeans.org/analytics/detail.do?id=130841 has no duplicate.
Comment 9 Martin Entlicher 2009-04-29 09:16:46 UTC
*** Issue 162740 has been marked as a duplicate of this issue. ***
Comment 10 Martin Entlicher 2009-04-29 09:19:29 UTC
Comment from Issue 162740: Synchronized access to StepIntoNextMethod.stepRequest is necessary.
Comment 11 Martin Entlicher 2009-11-09 07:35:45 UTC
Fixed in changeset:   152634:597b3889e53e
http://hg.netbeans.org/main/rev/597b3889e53e
Comment 12 Quality Engineering 2010-04-29 09:43:30 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.