Skip to content

Instantly share code, notes, and snippets.

@rasputnik
Created December 11, 2012 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rasputnik/4257968 to your computer and use it in GitHub Desktop.
Save rasputnik/4257968 to your computer and use it in GitHub Desktop.
this is throwing a stacktrace starting with : "Exception in thread "main" java.lang.IllegalArgumentException: Parameter declaration wrap-json-response should be a vector"
(ns tyrekick.core
(:use ring.adapter.jetty ring.util.response ring.middleware.json)
(:gen-class))
(defn handler
"dead simple to get benchmark reqs/sec"
[request]
(response {:message "hello nasty"}))
(defn app
(wrap-json-response handler))
(defn -main [port]
(run-jetty app {:port (Integer. port)}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment