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 153519 - IllegalArgumentException at com.sun.tools.javac.util.JCDiagnostic.<init>
Summary: IllegalArgumentException at com.sun.tools.javac.util.JCDiagnostic.<init>
Status: RESOLVED DUPLICATE of bug 152919
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:
Depends on:
Blocks:
 
Reported: 2008-11-20 10:23 UTC by limbo
Modified: 2009-02-19 21:09 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 35456


Attachments
stacktrace (2.74 KB, text/plain)
2008-11-20 10:23 UTC, limbo
Details
stacktrace (35 bytes, text/plain)
2008-11-24 15:28 UTC, Martin Fousek
Details
stacktrace (2.58 KB, text/plain)
2008-11-27 11:52 UTC, Peter Pis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description limbo 2008-11-20 10:23:33 UTC
Build: NetBeans IDE Dev (Build 200811200201)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.5, i386

User Comments:
limbo: While debugging web-app

GUEST: i was modifing a jsp

pcw: manipulating the javamail TCK in netbeans (that means lots of oddly placed packages, weird errors, missing dependent jars, etc. --- edge case nightmare for the parser)

limbo: While debugging web-app



Stacktrace: 
java.lang.IllegalArgumentException
        at com.sun.tools.javac.util.JCDiagnostic.<init>(JCDiagnostic.java:292)
        at com.sun.tools.javac.util.JCDiagnostic$Factory.error(JCDiagnostic.java:90)
        at com.sun.tools.javac.util.Log.error(Log.java:454)
        at com.sun.tools.javac.parser.Parser.reportSyntaxError(Parser.java:402)
        at com.sun.tools.javac.parser.Parser.accept(Parser.java:430)
        at com.sun.tools.javac.parser.Parser.blockStatements(Parser.java:1745)
Comment 1 limbo 2008-11-20 10:23:44 UTC
Created attachment 73942 [details]
stacktrace
Comment 2 Martin Fousek 2008-11-24 15:27:50 UTC
Build: NetBeans IDE Dev (Build 200811240201)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Linux, 2.6.24-19-generic, i386

User Comments: 


Stacktrace: 
java.lang.IllegalArgumentException
Comment 3 Martin Fousek 2008-11-24 15:28:02 UTC
Created attachment 74089 [details]
stacktrace
Comment 4 Peter Pis 2008-11-27 11:52:53 UTC
Build: NetBeans IDE Dev (Build 200811260201)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.5, i386

User Comments: 
Start debugging session, session hits breakpoint. Open evaluate expression, for "Expression" field enter non-existing variable (e.g. "a" ). Push "Evaluate". Exceptions is thrown. 

Stacktrace: 
java.lang.IllegalArgumentException
        at com.sun.tools.javac.util.JCDiagnostic.<init>(JCDiagnostic.java:292)
        at com.sun.tools.javac.util.JCDiagnostic$Factory.error(JCDiagnostic.java:90)
        at com.sun.tools.javac.util.Log.error(Log.java:454)
        at com.sun.tools.javac.parser.Parser.reportSyntaxError(Parser.java:402)
        at com.sun.tools.javac.parser.Parser.accept(Parser.java:430)
        at com.sun.tools.javac.parser.Parser.blockStatements(Parser.java:1745)
Comment 5 Peter Pis 2008-11-27 11:52:58 UTC
Created attachment 74233 [details]
stacktrace
Comment 6 Dusan Balek 2008-11-28 14:43:32 UTC
Seems like a race condition. Is debugger accessing its javac instance from the single thread only?
Comment 7 Martin Entlicher 2008-11-28 17:06:39 UTC
If javac needs to be called synchronously, then this is a duplicate of issue #152919.
Comment 8 Dusan Balek 2008-12-02 09:12:49 UTC
Should be fixed together with issue #152919.

*** This issue has been marked as a duplicate of 152919 ***