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 174694 - [68cat] AssertionError at com.sun.tools.javac.api.JavacTaskImpl.parse
Summary: [68cat] AssertionError at com.sun.tools.javac.api.JavacTaskImpl.parse
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL: http://statistics.netbeans.org/except...
Keywords:
: 174948 175993 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-15 19:43 UTC by Michel Graciano
Modified: 2009-11-12 11:06 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 160277


Attachments
stacktrace (2.93 KB, text/plain)
2009-10-15 19:43 UTC, Michel Graciano
Details
Dump of problematic file (14.78 KB, text/plain)
2009-10-15 19:44 UTC, Michel Graciano
Details
stacktrace (2.86 KB, text/plain)
2009-10-30 19:03 UTC, rogerrhody
Details
stacktrace (2.85 KB, text/plain)
2009-10-30 19:11 UTC, rogerrhody
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2009-10-15 19:43:25 UTC
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)
Comment 1 Michel Graciano 2009-10-15 19:43:31 UTC
Created attachment 89570 [details]
stacktrace
Comment 2 Michel Graciano 2009-10-15 19:44:28 UTC
Created attachment 89571 [details]
Dump of problematic file
Comment 3 Dusan Balek 2009-10-16 15:29:01 UTC
Strange. Are you able to reproduce the issue?
Comment 4 Michel Graciano 2009-10-16 17:28:30 UTC
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).
Comment 5 Dusan Balek 2009-10-20 09:11:34 UTC
*** Issue 174948 has been marked as a duplicate of this issue. ***
Comment 6 Dusan Balek 2009-10-20 13:12:02 UTC
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.
Comment 7 err 2009-10-20 13:19:30 UTC
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.
Comment 8 Martin Entlicher 2009-10-22 14:54:40 UTC
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...
Comment 9 rogerrhody 2009-10-30 19:03:53 UTC
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)
Comment 10 rogerrhody 2009-10-30 19:03:57 UTC
Created attachment 90332 [details]
stacktrace
Comment 11 Exceptions Reporter 2009-10-30 19:04:09 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160277
Comment 12 rogerrhody 2009-10-30 19:11:53 UTC
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)
Comment 13 rogerrhody 2009-10-30 19:11:57 UTC
Created attachment 90334 [details]
stacktrace
Comment 14 Exceptions Reporter 2009-10-30 19:12:02 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160277
Comment 15 Exceptions Reporter 2009-11-04 07:39:38 UTC
This issue already has 8 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160277
Comment 16 Dusan Balek 2009-11-04 15:06:42 UTC
*** Issue 175993 has been marked as a duplicate of this issue. ***
Comment 17 Exceptions Reporter 2009-11-05 12:45:32 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160277
Comment 18 Exceptions Reporter 2009-11-11 06:04:42 UTC
This issue already has 13 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160277
Comment 19 Exceptions Reporter 2009-11-11 07:51:42 UTC
This issue already has 14 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160277