java.lang.RuntimeException: java.lang.IllegalArgumentException: org.jetbrains.jps.javac.TransformableJavaFileObject

Atlassian JIRA | Joe Athman | 3 years ago
  1. 0

    When building my project in IntelliJ the build fails with the following exception. I saw a couple other similar comments about how using an external build can cause problems but I thought this was fixed with Clover 3.2? If I turn off the external build then the compilation does succeed. The project is a combined Java/Groovy project if that matters. Let me know if you need any more details. {noformat} Error: java.lang.IllegalArgumentException: org.jetbrains.jps.javac.TransformableJavaFileObject java.lang.RuntimeException: java.lang.IllegalArgumentException: org.jetbrains.jps.javac.TransformableJavaFileObject at com.sun.tools.javac.main.Main.compile(Main.java:475) at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132) at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:167) at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:364) at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:276) at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:190) at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:162) at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1018) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:742) at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:790) at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:705) at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:526) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:314) at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:179) at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:129) at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:220) at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:112) at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:132) at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.IllegalArgumentException: org.jetbrains.jps.javac.TransformableJavaFileObject at com.sun.tools.javac.file.JavacFileManager.inferBinaryName(JavacFileManager.java:660) at javax.tools.ForwardingJavaFileManager.inferBinaryName(ForwardingJavaFileManager.java:84) at com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager.inferBinaryName(ClientCodeWrapper.java:225) at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2524) at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2505) at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2143) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:421) at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:298) at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:459) at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:258) at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:272) at com.sun.tools.javac.comp.Enter.complete(Enter.java:484) at com.sun.tools.javac.comp.Enter.main(Enter.java:469) at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:929) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824) at com.sun.tools.javac.main.Main.compile(Main.java:439) ... 23 more {noformat} {panel:title=Problem summary|bgColor=yellow} This bug occurs when all of the following conditions are met: * IDEA 12.1.1 or later is used * Clover 3.1.12 or later is used * an "external build" feature is enabled (Settings > Compiler > Use external build) * project has a mixed Java + Groovy code It's an IDEA bug - http://youtrack.jetbrains.com/issue/IDEA-110835 - and has been fixed in IDEA13. Therefore: * in IDEA 12.x - disable the "external build" feature * in IDEA 13.x - problem does not occur {panel}

    Atlassian JIRA | 3 years ago | Joe Athman
    java.lang.RuntimeException: java.lang.IllegalArgumentException: org.jetbrains.jps.javac.TransformableJavaFileObject
  2. 0

    When building my project in IntelliJ the build fails with the following exception. I saw a couple other similar comments about how using an external build can cause problems but I thought this was fixed with Clover 3.2? If I turn off the external build then the compilation does succeed. The project is a combined Java/Groovy project if that matters. Let me know if you need any more details. {noformat} Error: java.lang.IllegalArgumentException: org.jetbrains.jps.javac.TransformableJavaFileObject java.lang.RuntimeException: java.lang.IllegalArgumentException: org.jetbrains.jps.javac.TransformableJavaFileObject at com.sun.tools.javac.main.Main.compile(Main.java:475) at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132) at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:167) at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:364) at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:276) at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:190) at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:162) at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1018) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:742) at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:790) at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:705) at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:526) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:314) at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:179) at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:129) at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:220) at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:112) at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:132) at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.IllegalArgumentException: org.jetbrains.jps.javac.TransformableJavaFileObject at com.sun.tools.javac.file.JavacFileManager.inferBinaryName(JavacFileManager.java:660) at javax.tools.ForwardingJavaFileManager.inferBinaryName(ForwardingJavaFileManager.java:84) at com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager.inferBinaryName(ClientCodeWrapper.java:225) at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2524) at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2505) at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2143) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:421) at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:298) at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:459) at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:258) at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:272) at com.sun.tools.javac.comp.Enter.complete(Enter.java:484) at com.sun.tools.javac.comp.Enter.main(Enter.java:469) at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:929) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824) at com.sun.tools.javac.main.Main.compile(Main.java:439) ... 23 more {noformat} {panel:title=Problem summary|bgColor=yellow} This bug occurs when all of the following conditions are met: * IDEA 12.1.1 or later is used * Clover 3.1.12 or later is used * an "external build" feature is enabled (Settings > Compiler > Use external build) * project has a mixed Java + Groovy code It's an IDEA bug - http://youtrack.jetbrains.com/issue/IDEA-110835 - and has been fixed in IDEA13. Therefore: * in IDEA 12.x - disable the "external build" feature * in IDEA 13.x - problem does not occur {panel}

    Atlassian JIRA | 3 years ago | Joe Athman
    java.lang.RuntimeException: java.lang.IllegalArgumentException: org.jetbrains.jps.javac.TransformableJavaFileObject
  3. 0

    TransformableJavaFileObject Not Supported when compiling

    YouTrack | 3 years ago
    java.lang.RuntimeException: java.lang.IllegalArgumentException: Not supported: org.jetbrains.jps.javac.TransformableJavaFileObject@70bd22dc
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    unable to access the webservice from a client proxy

    Google Groups | 10 years ago | bala
    java.lang.IllegalArgumentException: undefined variable: WS_EAR_PrimesWebServiceEAR
  6. 0

    unable to access the webservice from a client proxy

    Google Groups | 10 years ago | bala
    com.ibm.ws.exception.ConfigurationWarning: Failed to open $ {WS_EAR_HelloTestClientEAR}

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      org.jetbrains.jps.javac.TransformableJavaFileObject

      at com.sun.tools.javac.file.JavacFileManager.inferBinaryName()
    2. Java Tools
      JavacFileManager.inferBinaryName
      1. com.sun.tools.javac.file.JavacFileManager.inferBinaryName(JavacFileManager.java:660)
      1 frame
    3. Java RT
      ForwardingJavaFileManager.inferBinaryName
      1. javax.tools.ForwardingJavaFileManager.inferBinaryName(ForwardingJavaFileManager.java:84)
      1 frame
    4. Java Tools
      JavacTaskImpl.call
      1. com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager.inferBinaryName(ClientCodeWrapper.java:225)
      2. com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2524)
      3. com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2505)
      4. com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2143)
      5. com.sun.tools.javac.code.Symbol.complete(Symbol.java:421)
      6. com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:298)
      7. com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:459)
      8. com.sun.tools.javac.comp.Enter.classEnter(Enter.java:258)
      9. com.sun.tools.javac.comp.Enter.classEnter(Enter.java:272)
      10. com.sun.tools.javac.comp.Enter.complete(Enter.java:484)
      11. com.sun.tools.javac.comp.Enter.main(Enter.java:469)
      12. com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:929)
      13. com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824)
      14. com.sun.tools.javac.main.Main.compile(Main.java:439)
      15. com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
      15 frames
    5. org.jetbrains.jps
      JavacMain.compile
      1. org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:167)
      1 frame
    6. JetBrains jps
      SharedThreadPoolImpl$1.run
      1. org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:364)
      2. org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:276)
      3. org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:190)
      4. org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:162)
      5. org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1018)
      6. org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:742)
      7. org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:790)
      8. org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:705)
      9. org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:526)
      10. org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:314)
      11. org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:179)
      12. org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:129)
      13. org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:220)
      14. org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:112)
      15. org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:132)
      16. org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41)
      16 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:744)
      5 frames