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 224277 - IllegalArgumentException at com.sun.tools.javac.api.JavacTaskImpl.parseType
Summary: IllegalArgumentException at com.sun.tools.javac.api.JavacTaskImpl.parseType
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-28 08:14 UTC by Milos Kleint
Modified: 2013-01-03 02:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 196975


Attachments
stacktrace (1.76 KB, text/plain)
2012-12-28 08:14 UTC, Milos Kleint
Details
stacktrace (1.76 KB, text/plain)
2012-12-28 08:32 UTC, Milos Kleint
Details
stacktrace (1.76 KB, text/plain)
2013-01-02 08:08 UTC, Milos Kleint
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Kleint 2012-12-28 08:14:45 UTC
Build: NetBeans IDE Dev (Build 201212210001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18
OS: Mac OS X

Stacktrace: 
java.lang.IllegalArgumentException
   at com.sun.tools.javac.api.JavacTaskImpl.parseType(JavacTaskImpl.java:655)
   at org.netbeans.api.java.source.TreeUtilities.parseType(TreeUtilities.java:376)
   at org.netbeans.modules.java.hints.spiimpl.Hacks.parseFQNType(Hacks.java:181)
   at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.doComputeHints(HintsInvoker.java:531)
   at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:294)
   at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:239)
Comment 1 Milos Kleint 2012-12-28 08:14:47 UTC
Created attachment 129736 [details]
stacktrace
Comment 2 Milos Kleint 2012-12-28 08:32:12 UTC
Created attachment 129737 [details]
stacktrace

exited IDE, deleted cache/index still getting the exception out of the blue.
Comment 3 Milos Kleint 2012-12-28 08:36:55 UTC
It appears that the exception thrown is related to some code changes I've done to maven.embedder's MavenEmbedder class.
Add the following method to the class and get the exception as well, (part is commented to be able to work, got it again with the rest of the code..)

   private void normalizePaths(MavenProject project) {
        if (project == null) {
            return;
        }
//        File f = project.getFile();
//        if (f != null) {
//            project.setFile(FileUtil.normalizeFile(f));
//        }
        Artifact a = project.getArtifact();
        if (a != null) {
            File f = a.getFile();
            
        }
    }
Comment 4 Milos Kleint 2013-01-02 08:07:11 UTC
increasing to P2, it happens so frequently that it prohibits effective work.
Comment 5 Milos Kleint 2013-01-02 08:08:16 UTC
Created attachment 129804 [details]
stacktrace
Comment 6 Dusan Balek 2013-01-02 16:39:31 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/91d0f014b62a
Comment 7 Quality Engineering 2013-01-03 02:40:15 UTC
Integrated into 'main-golden', will be available in build *201301030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/91d0f014b62a
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #224277: IllegalArgumentException at com.sun.tools.javac.api.JavacTaskImpl.parseType - fixed.