04 Mar 2014, 13:53
Generic-user-small

Richard Burgis (6 posts)

In attempting to run the selmer example I get this error

No implementation of method: :make-reader of protocol: #’clojure.java.io/IOFactory found for class: nil

From the stack trace it appears to originate at line 14 of layout cli in the render function:

(deftype RenderablePage [template params] Renderable (render [this request] (-» (assoc params :context (:context request) :user (session/get :user)) (parser/render-file (str template-folder template)) response)))

I have verified the location of the template (picture_gallery/views/templates/home.html).

Line 14 appears to be the :context (:context request)

When I insert a println to display the request I get a large map that does not contain the :context key. To verify I also printed (:context request) which returned nil.

Is this likely the cause of the error and have you got any notion of what the root problem is?

Thanks a lot Rich

04 Mar 2014, 17:19
Generic-user-small

Richard Burgis (6 posts)

Please ignore. After further research I discovered a typo in home.html

Thank you Rich

  You must be logged in to comment