-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Hi, is it possible to run "gorilla-repl" embedded with an uberjar?
I have a -main function where I have the following:
(g/run-gorilla-server {
:port 8990 :ip "0.0.0.0"
:nrepl-port 0)When I run it through lein run, the repl / http server starts and I can eval expressions. When I use lein uberjar to build a standalone jar, everything starts normally and I can navigate to the repl, however, when I try and evaluate an expression I get the following stacktrace:
ERROR: Unhandled REPL handler exception processing message {:code (ns pacific-temple
(:require [gorilla-plot.core :as plot])), :id 7a420444-f8be-43ad-bd7b-4905416985e5, :nrepl.middleware.print/print gorilla-repl.render-values-mw/custom-renderer, :op eval, :session 57a69560-f5d9-409f-a6ef-cceec9184f1a}
java.lang.NullPointerException
at clojure.core$deref_future.invokeStatic(core.clj:2300)
at clojure.core$deref.invokeStatic(core.clj:2320)
at clojure.core$deref.invoke(core.clj:2306)
at cider.nrepl$wrap_tracker$fn__18941.invoke(nrepl.clj:460)
at nrepl.middleware$wrap_conj_descriptor$fn__18158.invoke(middleware.clj:16)
at nrepl.middleware.session$session$fn__18536.invoke(session.clj:297)
at nrepl.middleware$wrap_conj_descriptor$fn__18158.invoke(middleware.clj:16)
at nrepl.server$handle_STAR_.invokeStatic(server.clj:19)
at nrepl.server$handle_STAR_.invoke(server.clj:16)
at nrepl.server$handle$fn__18722.invoke(server.clj:36)
at clojure.core$binding_conveyor_fn$fn__5754.invoke(core.clj:2030)
at clojure.lang.AFn.call(AFn.java:18)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
I am not sure what the difference is between running it though lein, and the uberjar. Am I missing a dependency / is this even possible?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels