brentonashworth/sandbar — Issue #16: Sandbar.stateful-session error: Exception: java.lang.IllegalStateException: Can't dynamically bind non-dynamic var: sandbar.stateful-session/sandbar-session
Author: phjeltman
Created: 2011-10-28 08:05:24+00:00
State: open

I'm using Clojure 1.3 and receive the following error immediately upon connect
MacBook:myapp peter$ lein ring server
2011-10-28 15:58:22.153:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
2011-10-28 15:58:22.156:INFO::jetty-6.1.26
2011-10-28 15:58:22.233:INFO::Started SocketConnector@0.0.0.0:3000
Started server on port 3000
Exception: java.lang.IllegalStateException: Can't dynamically bind non-dynamic var: sandbar.stateful-session/sandbar-session
Var.java:339 clojure.lang.Var.pushThreadBindings
core.clj:1716 clojure.core/push-thread-bindings
stateful_session.clj:62 sandbar.stateful-session/wrap-stateful-session*[fn]
flash.clj:14 ring.middleware.flash/wrap-flash[fn]
session.clj:40 ring.middleware.session/wrap-session[fn]
cookies.clj:132 ring.middleware.cookies/wrap-cookies[fn]
Var.java:401 clojure.lang.Var.invoke
stacktrace.clj:15 ring.middleware.stacktrace/wrap-stacktrace-log[fn]
stacktrace.clj:79 ring.middleware.stacktrace/wrap-stacktrace-web[fn]
reload_modified.clj:15 ring.middleware.reload-modified/wrap-reload-modified[fn]
stacktrace.clj:15 ring.middleware.stacktrace/wrap-stacktrace-log[fn]
stacktrace.clj:79 ring.middleware.stacktrace/wrap-stacktrace-web[fn]
jetty.clj:16 ring.adapter.jetty/proxy-handler[fn]
(Unknown Source) ring.adapter.jetty.proxy$org.mortbay.jetty.handler.AbstractHandler$0.handle
HandlerWrapper.java:152 org.mortbay.jetty.handler.HandlerWrapper.handle
Server.java:326 org.mortbay.jetty.Server.handle
HttpConnection.java:542 org.mortbay.jetty.HttpConnection.handleRequest
HttpConnection.java:928 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
HttpParser.java:549 org.mortbay.jetty.HttpParser.parseNext
HttpParser.java:212 org.mortbay.jetty.HttpParser.parseAvailable
HttpConnection.java:404 org.mortbay.jetty.HttpConnection.handle
SocketConnector.java:228 org.mortbay.jetty.bio.SocketConnector$Connection.run
QueuedThreadPool.java:582 org.mortbay.thread.QueuedThreadPool$PoolThread.run
: