You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't point to any code of mine, just the compiler, which is not particularly helpful.
However, if I run the same code from my unit tests in maven, I get the cause:
Caused by: java.lang.NullPointerException
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:26)
at qfscriptz.currency$base_ccy.invoke(currency.clj:6)
at qfscriptz.orders$limit_order.doInvoke(orders.clj:115)
at clojure.lang.RestFn.invoke(RestFn.java:512)
at qfscriptz.orders$split_child_order.doInvoke(orders.clj:171)
at clojure.lang.RestFn.invoke(RestFn.java:439)
Is Cursive (or nrepl) swallowing the cause of the exception in some cases?
The text was updated successfully, but these errors were encountered:
I frequently get exceptions in invoking code in the repl which don't point to the line where the error is. e.g.:
CompilerException java.lang.NullPointerException, compiling:(scenario_test.clj:100:13)
clojure.lang.Compiler$CompilerException: java.lang.NullPointerException, compiling:(scenario_test.clj:100:13)
at clojure.lang.Compiler$InvokeExpr.eval (Compiler.java:3548)
clojure.lang.Compiler$DefExpr.eval (Compiler.java:417)
clojure.lang.Compiler.eval (Compiler.java:6681)
clojure.lang.Compiler.load (Compiler.java:7103)
qfscriptz.validators_test$eval3920.invoke (form-init5484482869899311889.clj:1)
clojure.lang.Compiler.eval (Compiler.java:6676)
clojure.lang.Compiler.eval (Compiler.java:6639)
clojure.core$eval.invoke (core.clj:2927)
clojure.main$repl$read_eval_print__6625$fn__6628.invoke (main.clj:239)
clojure.main$repl$read_eval_print__6625.invoke (main.clj:239)
clojure.main$repl$fn__6634.invoke (main.clj:257)
clojure.main$repl.doInvoke (main.clj:257)
clojure.lang.RestFn.invoke (RestFn.java:1096)
clojure.tools.nrepl.middleware.interruptible_eval$evaluate$fn__611.invoke (interruptible_eval.clj:56)
clojure.lang.AFn.applyToHelper (AFn.java:152)
clojure.lang.AFn.applyTo (AFn.java:144)
clojure.core$apply.invoke (core.clj:624)
clojure.core$with_bindings_STAR_.doInvoke (core.clj:1862)
clojure.lang.RestFn.invoke (RestFn.java:425)
clojure.tools.nrepl.middleware.interruptible_eval$evaluate.invoke (interruptible_eval.clj:41)
clojure.tools.nrepl.middleware.interruptible_eval$interruptible_eval$fn__652$fn__655.invoke (interruptible_eval.clj:171)
clojure.core$comp$fn__4192.invoke (core.clj:2402)
clojure.tools.nrepl.middleware.interruptible_eval$run_next$fn__645.invoke (interruptible_eval.clj:138)
clojure.lang.AFn.run (AFn.java:22)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
java.lang.Thread.run (Thread.java:744)
This doesn't point to any code of mine, just the compiler, which is not particularly helpful.
However, if I run the same code from my unit tests in maven, I get the cause:
Caused by: java.lang.NullPointerException
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:26)
at qfscriptz.currency$base_ccy.invoke(currency.clj:6)
at qfscriptz.orders$limit_order.doInvoke(orders.clj:115)
at clojure.lang.RestFn.invoke(RestFn.java:512)
at qfscriptz.orders$split_child_order.doInvoke(orders.clj:171)
at clojure.lang.RestFn.invoke(RestFn.java:439)
Is Cursive (or nrepl) swallowing the cause of the exception in some cases?
The text was updated successfully, but these errors were encountered: