Skip to content

Instantly share code, notes, and snippets.

@cap10morgan
Created April 5, 2022 16:53
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 cap10morgan/65e0c9bfabdb2b161ee2cc7617a5d7ab to your computer and use it in GitHub Desktop.
Save cap10morgan/65e0c9bfabdb2b161ee2cc7617a5d7ab to your computer and use it in GitHub Desktop.
error when launching jar main in bb 0.8.0
----- Error --------------------------------------------------------------------
Type: java.lang.NullPointerException
Location: nexus/api_proxy.clj:137:3
----- Context ------------------------------------------------------------------
133: (ex-info "API path must start with /fdb/" {:path path})))))
134:
135: (defn -main
136: [& _]
137: (lambda/init-handler (partial handler [report-fuel])))
^---
----- Stack trace --------------------------------------------------------------
nexus.lambda.runtime/init-handler - nexus/lambda/runtime.clj:54:1
nexus.api-proxy - nexus/api_proxy.clj:137:3
nexus.core - nexus/core.clj:30:5
clojure.core/apply - <built-in>
user - <expr>:1:35
----- Exception ----------------------------------------------------------------
clojure.lang.ExceptionInfo: null
{:type :sci/error, :line 137, :column 3, :message nil, :sci.impl/callstack #object[clojure.lang.Volatile 0x222545d1 {:status :ready, :val ({:line 1, :column 35, :ns #object[sci.impl.vars.SciNamespace 0x29bb2c96 "user"], :file "<expr>", :sci.impl/f-meta {:ns #object[sci.impl.vars.SciNamespace 0x1aec7192 "clojure.core"], :name apply, :sci/built-in true, :arglists ([f args] [f x args] [f x y args] [f x y z args] [f a b c d & args]), :doc "Applies fn f to the argument list formed by prepending intervening arguments to args."}} {:line 1, :column 35, :ns #object[sci.impl.vars.SciNamespace 0x29bb2c96 "user"], :file "<expr>", :sci.impl/f-meta {:ns #object[sci.impl.vars.SciNamespace 0x1aec7192 "clojure.core"], :name apply, :sci/built-in true, :arglists ([f args] [f x args] [f x y args] [f x y z args] [f a b c d & args]), :doc "Applies fn f to the argument list formed by prepending intervening arguments to args."}} {:line 30, :column 5, :ns #object[sci.impl.vars.SciNamespace 0x3e1f0872 "nexus.core"], :file "nexus/core.clj", :sci.impl/f-meta {:sci.impl/op :resolve-sym, :sci.impl/idx 2}} {:line 137, :column 3, :ns #object[sci.impl.vars.SciNamespace 0x1a761330 "nexus.api-proxy"], :file "nexus/api_proxy.clj", :sci.impl/f-meta {:name init-handler, :ns #object[sci.impl.vars.SciNamespace 0x7b2cbaa8 "nexus.lambda.runtime"], :file "nexus/lambda/runtime.clj", :line 54, :column 1, :arglists ([handler-fn])}})}], :file "nexus/api_proxy.clj"}
at sci.impl.utils$rethrow_with_location_of_node.invokeStatic (utils.cljc:117)
sci.impl.analyzer$return_call$reify__9575.eval (analyzer.cljc:1180)
sci.impl.fns$fun$arity_0__7390.doInvoke (fns.cljc:83)
clojure.lang.RestFn.invoke (RestFn.java:408)
sci.impl.vars.SciVar.invoke (vars.cljc:325)
sci.impl.analyzer$return_binding_call$reify__9454.eval (analyzer.cljc:1098)
sci.impl.analyzer$return_do$reify__8610.eval (analyzer.cljc:136)
sci.impl.evaluator$eval_let.invokeStatic (evaluator.cljc:74)
sci.impl.analyzer$analyze_let_STAR_$reify__9247.eval (analyzer.cljc:503)
sci.impl.fns$fun$arity_0__7390.doInvoke (fns.cljc:83)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invokeStatic (core.clj:667)
clojure.core$apply.invoke (core.clj:662)
sci.impl.vars.SciVar.invoke (vars.cljc:327)
sci.impl.analyzer$return_call$reify__9579.eval (analyzer.cljc:1180)
sci.impl.interpreter$eval_form.invokeStatic (interpreter.cljc:39)
sci.impl.interpreter$eval_string_STAR_.invokeStatic (interpreter.cljc:61)
sci.core$eval_string_STAR_.invokeStatic (core.cljc:237)
babashka.main$exec$fn__35890$fn__35891.invoke (main.clj:902)
babashka.main$exec$fn__35890.invoke (main.clj:902)
babashka.main$exec.invokeStatic (main.clj:892)
babashka.main$main.invokeStatic (main.clj:992)
babashka.main$main.doInvoke (main.clj:967)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invokeStatic (core.clj:667)
babashka.main$_main.invokeStatic (main.clj:1025)
babashka.main$_main.doInvoke (main.clj:1017)
clojure.lang.RestFn.applyTo (RestFn.java:137)
babashka.main.main (:-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment