Hi Neil,

This looks like an issue a user had with Cursive a while ago, which I never
totally got to the bottom of. See
https://groups.google.com/d/topic/clojure-tools/lmjCX3AjAfE/discussion and
the associated GitHub issue. In particular, guns wrote a really useful mail
which for some reason doesn't appear in the Google groups thread, but you
can see it in my reply here:
https://groups.google.com/d/msg/clojure-tools/lmjCX3AjAfE/PV7W_-oefVYJ

Cheers,
Colin


On 22 November 2014 at 20:23, Neil Laurance <neil.laura...@gmail.com> wrote:

> Hi there. Hope someone can help me with an issue I am having with lein
> repl. I did post on StackOverflow
> <http://stackoverflow.com/questions/22736952/lein-repl-server-launch-timed-out>
> as well, but no luck there yet.
>
> I have been using lein from my home Mac for quite some time, but hadn't
> started a repl for a couple of days.
>
> When I came back to use lein repl again, it now fails with a timeout.
>
> *Based on a hunch from another post, I managed to find a workaround of
> turning off my wifi which seems to resolve things ?!?*
>
> But if anyone can help me with a better solution, that would be
> appreciated.
>
> The lein version I am using is: Leiningen 2.5.0 on Java 1.7.0_11 Java
> HotSpot(TM) 64-Bit Server VM
>
> I took a thread dump
> <https://gist.github.com/toolkit/59da0b05931a490253b4>, which showed
> 'Thread-4' attempting to make a socket connection.
>
> "Thread-4" prio=5 tid=0x00007ffb6a0a0000 nid=0x2707 runnable 
> [0x0000000114aa8000]
>  java.lang.Thread.State: RUNNABLE
>  at java.net.PlainSocketImpl.socketConnect(Native Method)
>  at 
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
>  - locked <0x00000007f80aa8a8> (a java.net.SocksSocketImpl)
>  at 
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
>  at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
>  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
>  at java.net.Socket.connect(Socket.java:579)
>  at java.net.Socket.connect(Socket.java:528)
>  at java.net.Socket.<init>(Socket.java:425)
>  at java.net.Socket.<init>(Socket.java:208)
>  at clojure.tools.nrepl$connect.doInvoke(nrepl.clj:184)
>
> This thread then throws an exception which is logged to console:
>
> Exception in thread "Thread-4" java.net.ConnectException: Operation timed
> out
>  at java.net.PlainSocketImpl.socketConnect(Native Method)
>  at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.
> java:339)
>  at java.net.AbstractPlainSocketImpl.connectToAddress(
> AbstractPlainSocketImpl.java:200)
>  at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:
> 182)
>  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
>  at java.net.Socket.connect(Socket.java:579)
>  at java.net.Socket.connect(Socket.java:528)
>  at java.net.Socket.<init>(Socket.java:425)
>  at java.net.Socket.<init>(Socket.java:208)
>  at clojure.tools.nrepl$connect.doInvoke(nrepl.clj:184)
>  at clojure.lang.RestFn.invoke(RestFn.java:421)
>  at clojure.tools.nrepl.ack$send_ack.invoke(ack.clj:47)
>  at clojure.tools.nrepl.server$start_server.doInvoke(server.clj:153)
>  at clojure.lang.RestFn.invoke(RestFn.java:619)
>  at user$eval2869.invoke(NO_SOURCE_FILE:0)
>  at clojure.lang.Compiler.eval(Compiler.java:6703)
>  at clojure.lang.Compiler.eval(Compiler.java:6693)
>  at clojure.lang.Compiler.eval(Compiler.java:6693)
>  at clojure.lang.Compiler.eval(Compiler.java:6666)
>  at clojure.core$eval.invoke(core.clj:2927)
>  at leiningen.core.eval$fn__6742.invoke(eval.clj:314)
>  at clojure.lang.MultiFn.invoke(MultiFn.java:231)
>  at leiningen.core.eval$eval_in_project.invoke(eval.clj:337)
>  at leiningen.repl$server$fn__10685.invoke(repl.clj:229)
>  at clojure.lang.AFn.applyToHelper(AFn.java:152)
>  at clojure.lang.AFn.applyTo(AFn.java:144)
>  at clojure.core$apply.invoke(core.clj:624)
>  at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1862)
>  at clojure.lang.RestFn.invoke(RestFn.java:425)
>  at clojure.lang.AFn.applyToHelper(AFn.java:156)
>  at clojure.lang.RestFn.applyTo(RestFn.java:132)
>  at clojure.core$apply.invoke(core.clj:628)
>  at clojure.core$bound_fn_STAR_$fn__4140.doInvoke(core.clj:1884)
>  at clojure.lang.RestFn.invoke(RestFn.java:397)
>  at clojure.lang.AFn.run(AFn.java:22)
>  at java.lang.Thread.run(Thread.java:722)
>
> ... some time later ...
> REPL server launch timed out.
>
> Thanks, Neil
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to