Skip to content

Instantly share code, notes, and snippets.

@andrewzhurov
Created April 6, 2022 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewzhurov/37226d2acbf76b975ed821b233cebea9 to your computer and use it in GitHub Desktop.
Save andrewzhurov/37226d2acbf76b975ed821b233cebea9 to your computer and use it in GitHub Desktop.
> java -version
openjdk version "17.0.1" 2021-10-19
OpenJDK Runtime Environment (build 17.0.1+0-adhoc..source)
OpenJDK 64-Bit Server VM (build 17.0.1+0-adhoc..source, mixed mode, sharing)
> make
cd cli && clojure -T:build debug-cli
Compiling java classes...
Execution error (NullPointerException) at clojure.tools.build.tasks.javac/javac (javac.clj:27).
Cannot invoke "javax.tools.JavaCompiler.getStandardFileManager(javax.tools.DiagnosticListener, java.util.Locale, java.nio.charset.Charset)" because "compiler" is null
Full report at:
/tmp/clojure-17673073514063500652.edn
make: *** [Makefile:46: debug-cli] Error 1
zsh: exit 2 make
> cat /tmp/clojure-17673073514063500652.edn
{:clojure.main/message
"Execution error (NullPointerException) at clojure.tools.build.tasks.javac/javac (javac.clj:27).\nCannot invoke \"javax.tools.JavaCompiler.getStandardFileManager(javax.tools.DiagnosticListener, java.util.Locale, java.nio.charset.Charset)\" because \"compiler\" is null\n",
:clojure.main/triage
{:clojure.error/class java.lang.NullPointerException,
:clojure.error/line 27,
:clojure.error/cause
"Cannot invoke \"javax.tools.JavaCompiler.getStandardFileManager(javax.tools.DiagnosticListener, java.util.Locale, java.nio.charset.Charset)\" because \"compiler\" is null",
:clojure.error/symbol clojure.tools.build.tasks.javac/javac,
:clojure.error/source "javac.clj",
:clojure.error/phase :execution},
:clojure.main/trace
{:via
[{:type java.lang.NullPointerException,
:message
"Cannot invoke \"javax.tools.JavaCompiler.getStandardFileManager(javax.tools.DiagnosticListener, java.util.Locale, java.nio.charset.Charset)\" because \"compiler\" is null",
:at
[clojure.tools.build.tasks.javac$javac
invokeStatic
"javac.clj"
27]}],
:trace
[[clojure.tools.build.tasks.javac$javac invokeStatic "javac.clj" 27]
[clojure.tools.build.tasks.javac$javac invoke "javac.clj" 20]
[clojure.lang.Var invoke "Var.java" 384]
[clojure.tools.build.api$javac invokeStatic "api.clj" 327]
[clojure.tools.build.api$javac invoke "api.clj" 314]
[build$javac invokeStatic "build.clj" 21]
[build$javac invoke "build.clj" 18]
[build$uber_aot invokeStatic "build.clj" 49]
[build$uber_aot invoke "build.clj" 47]
[build$debug_cli invokeStatic "build.clj" 77]
[build$debug_cli invoke "build.clj" 76]
[clojure.lang.AFn applyToHelper "AFn.java" 154]
[clojure.lang.AFn applyTo "AFn.java" 144]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.core$apply invokeStatic "core.clj" 667]
[clojure.core$apply invoke "core.clj" 662]
[clojure.run.exec$exec invokeStatic "exec.clj" 48]
[clojure.run.exec$exec doInvoke "exec.clj" 39]
[clojure.lang.RestFn invoke "RestFn.java" 423]
[clojure.run.exec$_main$fn__205 invoke "exec.clj" 178]
[clojure.run.exec$_main invokeStatic "exec.clj" 174]
[clojure.run.exec$_main doInvoke "exec.clj" 139]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.core$apply invokeStatic "core.clj" 667]
[clojure.main$main_opt invokeStatic "main.clj" 514]
[clojure.main$main_opt invoke "main.clj" 510]
[clojure.main$main invokeStatic "main.clj" 664]
[clojure.main$main doInvoke "main.clj" 616]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.main main "main.java" 40]],
:cause
"Cannot invoke \"javax.tools.JavaCompiler.getStandardFileManager(javax.tools.DiagnosticListener, java.util.Locale, java.nio.charset.Charset)\" because \"compiler\" is null"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment