Exception upon nrepl connect #77

Closed
kenrestivo opened this Issue Dec 20, 2013 · 4 comments

Projects

None yet

2 participants

@kenrestivo
java.util.concurrent.ExecutionException: java.lang.NullPointerException
 at java.util.concurrent.FutureTask$Sync.innerGet (FutureTask.java:223)
    java.util.concurrent.FutureTask.get (FutureTask.java:82)
    clojure.core$deref_future.invoke (core.clj:2106)
    clojure.core$future_call$reify__6267.deref (core.clj:6306)
    clojure.core$deref.invoke (core.clj:2128)
    user$eval3.invoke (NO_SOURCE_FILE:1)
    clojure.lang.Compiler.eval (Compiler.java:6619)
    clojure.lang.Compiler.eval (Compiler.java:6582)
    clojure.core$eval.invoke (core.clj:2848)
    clojure.main$repl$read_eval_print__6588$fn__6591.invoke (main.clj:264)
    clojure.main$repl$read_eval_print__6588.invoke (main.clj:264)
    clojure.main$repl$fn__6597.invoke (main.clj:282)
    clojure.main$repl.doInvoke (main.clj:281)
    clojure.lang.RestFn.invoke (RestFn.java:1096)
    clojure.tools.nrepl.middleware.interruptible_eval$evaluate$fn__344.invoke (interruptible_eval.clj:51)
    clojure.lang.AFn.applyToHelper (AFn.java:159)
    clojure.lang.AFn.applyTo (AFn.java:151)
    clojure.core$apply.invoke (core.clj:617)
    clojure.core$with_bindings_STAR_.doInvoke (core.clj:1788)
    clojure.lang.RestFn.invoke (RestFn.java:425)
    clojure.tools.nrepl.middleware.interruptible_eval$evaluate.invoke (interruptible_eval.clj:36)
    clojure.tools.nrepl.middleware.interruptible_eval$interruptible_eval$fn__381$fn__384.invoke (interruptible_eval.clj:166)
    clojure.core$comp$fn__4154.invoke (core.clj:2330)
    clojure.tools.nrepl.middleware.interruptible_eval$run_next$fn__374.invoke (interruptible_eval.clj:130)
    clojure.lang.AFn.run (AFn.java:24)
    java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1076)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:569)
    java.lang.Thread.run (Thread.java:856)

Not sure what to make of that. The nrepl otherwise seems to work fine. but this comes up when first connecting to it.

@alexander-yakushev
Clojure/Android member

I can guess it has something to do with Nrepl middleware, which you seemingly have enabled somewhere in profiles.clj. I don't know why exactly people have problems with nrepl middleware on Android, but probably it's because of some jvm-specific code.

@alexander-yakushev
Clojure/Android member

Were you able to fix this problem, Ken?

@kenrestivo

No, I just have learned to ignore it. Every time I make an nrepl connection to android, I get a repl buffer and that error mesage, and it's just habit now to Q the error and iswitchb-buffer out of the repl buffer, and get back to the code buffer I'd been working on.

@alexander-yakushev
Clojure/Android member

I see, so it doesn't actually break the REPL, just spits an error.

Can you confirm that you have nrepl-middleware compiled alongside the project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment