I do not have a single close! statement in my code anywhere. I've double checked with grep -lhr "close\!" . through my whole codebase and all the projects in it.
On Tuesday, 7 January 2014 21:05:53 UTC+1, Luc wrote: > > 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 clo...@googlegroups.com<javascript:> > > Note that posts from new members are moderated - please be patient with > your first post. > > To unsubscribe from this group, send email to > > clojure+u...@googlegroups.com <javascript:> > > 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+u...@googlegroups.com <javascript:>. > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- > Luc Prefontaine<lprefo...@softaddicts.ca <javascript:>> 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.