You are trying to close a nil 
channel. 

W/O the code it's all I can say :)
Did you check to make sure
you are not trying to handle nil
as a channel ?

Luc P.


> Hi,
> 
> I'm getting the following error over and over again in my code, I've tried 
> adding in some print statement and suddenly the error went away and my code 
> worked again, then today I got the same error yet again. I suspect this 
> might be a race condition or something similar. I can take the same library 
> from the repl and it works, but when I use it from inside another app I 
> suddenly get this problem error only at certain times. 
> 
> I've removed all close! statements from my code and I still get the same 
> error :(, 
> 
> The code 
> is 
> https://github.com/gerritjvv/clj-tcp/blob/master/clj-tcp/src/clj_tcp/client.clj
> 
> Exception in thread "async-dispatch-6" java.lang.IllegalArgumentException: 
> No implementation of method: :close! of protocol: 
> #'clojure.core.async.impl.protocols/Channel found for class: nil
> at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:541)
> at 
> clojure.core.async.impl.protocols$fn__779$G__774__784.invoke(protocols.clj:21)
> at 
> clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:818)
> at clj_tcp.client$client$fn__6374.invoke(client.clj:334)
> at clojure.lang.AFn.run(AFn.java:24)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> 
> Any ideas?
> 
> 
> 
> 
> 
> -- 
> -- 
> 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/groups/opt_out.
> 
--
Luc Prefontaine<lprefonta...@softaddicts.ca> sent by ibisMail!

-- 
-- 
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/groups/opt_out.

Reply via email to