Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8066093

NullPointerException while trying to build project in Intellij IDEA 13.1.5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u25
    • tools
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_25"
      Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 x64 (updated fully)

      A DESCRIPTION OF THE PROBLEM :
      When trying to build the module - compiler just crashes. No other info.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Well, other than trying to build my specific code, I would find it difficult to define exact steps. The compiler just stopped working all of a sudden and threw the exception.


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Stacktrace:

      Information:Using javac 1.8.0_25 to compile java sources
      Information:java: An exception has occurred in the compiler (1.8.0_25). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
      Information:java: java.lang.NullPointerException
      Information:java: at com.sun.tools.javac.code.Types.isConvertible(Types.java:290)
      Information:java: at com.sun.tools.javac.comp.Check.assertConvertible(Check.java:922)
      Information:java: at com.sun.tools.javac.comp.Check.checkMethod(Check.java:876)
      Information:java: at com.sun.tools.javac.comp.Attr.checkMethod(Attr.java:3838)
      Information:java: at com.sun.tools.javac.comp.Attr.checkIdInternal(Attr.java:3615)
      Information:java: at com.sun.tools.javac.comp.Attr.checkMethodIdInternal(Attr.java:3522)
      Information:java: at com.sun.tools.javac.comp.Attr.checkMethodId(Attr.java:3501)
      Information:java: at com.sun.tools.javac.comp.Attr.checkId(Attr.java:3488)
      Information:java: at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3370)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
      Information:java: at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:607)
      Information:java: at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1843)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
      Information:java: at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:649)
      Information:java: at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1093)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:852)
      Information:java: at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:676)
      Information:java: at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:692)
      Information:java: at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1142)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909)
      Information:java: at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1035)
      Information:java: at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
      Information:java: at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:4342)
      Information:java: at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4252)
      Information:java: at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4181)
      Information:java: at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4156)
      Information:java: at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1248)
      Information:java: at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901)
      Information:java: at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
      Information:java: at com.sun.tools.javac.main.Main.compile(Main.java:523)
      Information:java: at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
      Information:java: at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
      Information:java: at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:165)
      Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:407)
      Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:304)
      Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:210)
      Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:182)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1106)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:814)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:862)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:777)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.access$800(IncProjectBuilder.java:78)
      Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder$BuildParallelizer$2.run(IncProjectBuilder.java:746)
      Information:java: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      Information:java: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      Information:java: at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:37)
      Information:java: at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41)
      Information:java: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      Information:java: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      Information:java: at java.lang.Thread.run(Thread.java:745)
      Information:java: Errors occurred while compiling module 'dataImport'
      Information:Compilation completed with 1 error and 0 warnings in 3 sec
      Information:1 error
      Information:0 warnings
      Error:java: Compilation failed: internal java compiler error

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      I couldn't derive a test case.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Using the Eclipse compiler in IDEA builds the same codebase just fine. Turning off javac parallel compilation produces a slightly different stacktrace but still crashes every time.

      Hopefully the stacktrace provided will be of some assistance.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: