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.
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)
Created attachment 68527 [details] stacktrace
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; } }
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.
Can't reproduce on Mac. Will try again later.
Can't reproduce for latest builds. Worksforme.
Verified. Worksforme
Reopening - reproduced in NetBeans IDE Dev (Build 200810181401) http://statistics.netbeans.org/exceptions/detail.do?id=130841
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.
*** Issue 162740 has been marked as a duplicate of this issue. ***
Comment from Issue 162740: Synchronized access to StepIntoNextMethod.stepRequest is necessary.
Fixed in changeset: 152634:597b3889e53e http://hg.netbeans.org/main/rev/597b3889e53e
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.