Created
August 17, 2016 10:13
-
-
Save sander/73b37a2684dfdbb0c3d1106c10525253 to your computer and use it in GitHub Desktop.
Problem deploying ring-1.6.0-beta5 uberwar with async in jetty9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clojure.lang.ArityException: Wrong number of args (1) passed to: core/handler | |
at clojure.lang.AFn.throwArity(AFn.java:429) | |
at clojure.lang.AFn.invoke(AFn.java:32) | |
at clojure.lang.Var.invoke(Var.java:379) | |
at lein_ring_test.listener$_contextInitialized$fn__11.invoke(listener.clj:1) | |
at ring.util.servlet$make_service_method$fn__85.invoke(servlet.clj:129) | |
at lein_ring_test.servlet$_service.invokeStatic(servlet.clj:1) | |
at lein_ring_test.servlet$_service.invoke(servlet.clj:1) | |
at lein_ring_test.servlet.service(Unknown Source) | |
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:837) | |
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583) | |
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) | |
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) | |
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) | |
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) | |
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) | |
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) | |
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) | |
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) | |
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213) | |
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119) | |
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) | |
at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335) | |
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) | |
at org.eclipse.jetty.server.Server.handle(Server.java:524) | |
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319) | |
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253) | |
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) | |
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) | |
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) | |
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) | |
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) | |
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) | |
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) | |
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) | |
at java.lang.Thread.run(Thread.java:745) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns lein-ring-test.core) | |
(defn handler | |
[request respond raise] | |
(respond | |
{:status 200 | |
:headers {"Content-Type" "text/plain"} | |
:body "hello world"})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject lein-ring-test "0.1.0-SNAPSHOT" | |
:dependencies [[org.clojure/clojure "1.8.0"] | |
[ring "1.6.0-beta5"]] | |
:plugins [[lein-ring "0.9.7"]] | |
:ring {:handler lein-ring-test.core/handler | |
:adapter {:async? true}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment