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 <sver...@googlemail.com> 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)) > > (ns http) > (defn get-it [] (parse-string (:body (client/get > (str > base-url > > "rest/api/2/search?jql=issuetype=Epos&status!=closed&maxResults=1000&JSESSIONID=" > (service/get-id)) ;this is > there the error occurs > :accept :json})))) > > Now, when I startup ring I get the following error: > > Exception in thread "main" java.lang.ClassCastException: > clojure.lang.Var$Unbound cannot be cast to java.util.concurrent.Future > at clojure.core$deref_future.invoke(core.clj:2108) > at clojure.core$deref.invoke(core.clj:2129) > at noir.session$get.invoke(session.clj:24) > at lweb.services.jira$get_jira_session_id.invoke(jira.clj:17) > at lweb.services.epic$get_epics.invoke(epic.clj:19) > at lweb.services.epic$get_epic_sp_map.invoke(epic.clj:40) > at lweb.services.epic$eval10850.invoke(epic.clj:43)
signature.asc
Description: Message signed with OpenPGP using GPGMail