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 200910150201) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, i386 Stacktrace: java.lang.AssertionError at com.sun.tools.javac.api.JavacTaskImpl.parse(JavacTaskImpl.java:261) at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:489) at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:353) at org.netbeans.api.java.source.CompilationController.toPhase(CompilationController.java:106) at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$4.run(EditorContextImpl.java:692) at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$4.run(EditorContextImpl.java:688)
Created attachment 89570 [details] stacktrace
Created attachment 89571 [details] Dump of problematic file
Strange. Are you able to reproduce the issue?
Not really. I faced it when I am switching between several opened files in the first time (I just opened IDE and the scanning was already finished).
*** Issue 174948 has been marked as a duplicate of this issue. ***
It seems that single javac instance is simultaneously used from two separate threads. One possible explanation could be that debugger does not acquire javac from within a UserActionTask. JavaSourceUtil.createControllerHandle(fo, handle) call in EditorContextImpl.getPreferredCompilationController(...) should be surrounded with JavaSource.runUserActionTask(...). Reassigning.
When this happened to me (dup'd Issue 174948) I also had just opened the IDE. My first few commands were Run, StepOver. Both stack traces have JPDA in there just after starting the IDE.
After consultation with Tomas it appears that JavaSourceUtil.createControllerHandle() implementation is synchronized with the JavaSource, therefore running it inside runUserActionTask() should not be necessary. Please reevaluate where the concurrent access is...
Build: NetBeans IDE Dev (Build 200910300201) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219 OS: Mac OS X, 10.6.1, x86_64 User Comments: Stacktrace: java.lang.AssertionError at com.sun.tools.javac.api.JavacTaskImpl.parse(JavacTaskImpl.java:261) at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:517) at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:353) at org.netbeans.api.java.source.CompilationController.toPhase(CompilationController.java:106) at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$5.run(EditorContextImpl.java:829) at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$5.run(EditorContextImpl.java:825)
Created attachment 90332 [details] stacktrace
This issue already has 6 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=160277
Created attachment 90334 [details] stacktrace
This issue already has 7 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=160277
This issue already has 8 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=160277
*** Issue 175993 has been marked as a duplicate of this issue. ***
This issue already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=160277
This issue already has 13 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=160277
This issue already has 14 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=160277
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/aea733808154 http://hg.netbeans.org/main/nb-javac/rev/2492d2970462