Re: noir.session clojure.lang.Var$Unbound cannot be cast to java.util.concurrent.Future

2014-03-24 Thread Sven Richter
Ok, I had a call to (session/get :key) during initialization of my application in a def statenemt. Thats what caused the call to before session dynamic variable is initialized. Thanks, Sven Am Montag, 24. März 2014 12:01:38 UTC+1 schrieb Sven Richter: > > Hm, > > Searching some more I found thi

Re: noir.session clojure.lang.Var$Unbound cannot be cast to java.util.concurrent.Future

2014-03-24 Thread Sven Richter
Hm, Searching some more I found this blog post: http://yogthos.net/blog/46-what's+new+in+lib-noir which shows the exact same problem I guess I have. However, using luminus I dont have much options and everything should be setup correct already. This is how my handler looks like: (def secured-r

Re: noir.session clojure.lang.Var$Unbound cannot be cast to java.util.concurrent.Future

2014-03-24 Thread Sven Richter
I think I tracked the problem down. In my handler I define my routes, which calls enlive/deftemplate, which is a macro. Now, if I understand this right, the macro will be called at compile time, when noir.session is not available yet. Is that right? How can I get around this? Am Sonntag, 23.

Re: noir.session clojure.lang.Var$Unbound cannot be cast to java.util.concurrent.Future

2014-03-23 Thread Sven Richter
Hi Sean, I am using a luminusweb project. So yes, noir.session gets initialized and is working. I was testing that before to get a feeling for noir.session at all. So could this be a timing issue? Trying to access the session before it is initialized? Thanks, Sven Am Sonntag, 23. März 2014 23

Re: noir.session clojure.lang.Var$Unbound cannot be cast to java.util.concurrent.Future

2014-03-23 Thread Sean Corfield
Looks like the Noir session isn't initialized. Have you added the wrap-noir-session middleware? Sean On Mar 23, 2014, at 2:54 PM, Sven Richter wrote: > I have an error message that I just dont understand. This is what I am trying > to do: > > (ns service) > (defn get-id [] (session/get :id))

noir.session clojure.lang.Var$Unbound cannot be cast to java.util.concurrent.Future

2014-03-23 Thread Sven Richter
Hi, I have an error message that I just dont understand. This is what I am trying to do: (ns service) (defn get-id [] (session/get :id)) (ns http) (defn get-it [] (parse-string (:body (client/get (str base-url