David Toomey <dbto...@gmail.com> writes:
Hi David,
> The error, as mentioned in the title: java.lang.ClassCastException:
> clojure.lang.Var$Unbound cannot be cast to clojure.lang.Atom
In which line?
Hm, the message tells that you are using an atom function like swap! on
something that's not an Atom but Unbound. But your code doesn't contain
such a coll. So I guess it's in the SQL Korma code here
where db/allusers is Unbound.
On May 2, 2013 2:04 AM, "David Toomey" <dbto...@gmail.com> wrote:
> Is there anything
> I could show that could reveal the problem?
Yes, you should have shown the stack trace of the exception (or at least the part from the top of the text down to your code).
But even without that, you have an error coming out of noir.session that says something is unbound where an atom was expected. That should send you to the source for noir.session. There you'll see everything depends on the dynamic global *noir-session*, which is only ever bound by wrap-noir-session, which you're not calling. That's a compojure middleware fn. Take a look at some compojure tutorial to see where and how they're used.
There are likely other similar middleware fn calls noir will expect you to have made. Hopefully having struggled with this one, figuring the others out will be easy.
On Thursday, May 2, 2013 10:19:51 AM UTC-4, David Toomey wrote:
[snipped]If you want help in the future, I'd recommend spending less time demanding answers and more time reading responses and code.I've never looked at the 4clojure source, didn't even know it was on github. I've never used ring, compojure, or any other clojure web framework. The total time it took me to clone the 4clojure repo, grep for what John recommended, and get you this link (https://github.com/4clojure/4clojure/blob/develop/src/foreclojure/core.clj#L58), about 30 seconds.Python has been around significantly longer, and has a much larger community. If you need that level of support, I don't think Clojure is the right language for you.Cheers, Jay--
--
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
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
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.
For more options, visit https://groups.google.com/groups/opt_out.