Uploaded image for project: 'Immutant'
  1. Immutant
  2. IMMUTANT-533

ring request maps fail when used with clojure.core/find

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-beta3
    • Labels:
      None

      Description

      This is due to a bug in potemkin introduced in 0.3.9. It's currently fixed on HEAD - we should either downgrade or urge Zach to release a new version.

      Stacktrace:

      java.lang.ClassCastException: java.lang.Class cannot be cast to clojure.lang.IFn
      	at immutant.web.internal.ring.LazyMap.entryAt(ring.clj:146)
      	at clojure.lang.RT.find(RT.java:731)
      	at clojure.core$find.invoke(core.clj:1448)
      	at plumbing.fnk.impl$safe_get.invoke(impl.clj:43)
      	at fnhouse.routes$eval6461$root_handler__6462$fn__6463$fnk6464__6470$fn__6471.invoke(routes.clj:128)
      	at fnhouse.routes$eval6461$root_handler__6462$fn__6463$fnk6464__6470.invoke(routes.clj:128)
      	at clojure.lang.AFn.applyToHelper(AFn.java:161)
      	at clojure.lang.AFn.applyTo(AFn.java:151)
      	at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
      	at clojure.lang.RestFn.invoke(RestFn.java:408)
      	at guesthouse.ring$keywordize_middleware$fn__8002.invoke(ring.clj:20)
      	at ring.middleware.json$wrap_json_body$fn__7955.invoke(json.clj:20)
      	at ring.middleware.params$wrap_params$fn__7992.invoke(params.clj:64)
      	at ring.middleware.json$wrap_json_response$fn__7966.invoke(json.clj:42)
      	at guesthouse.ring$wrap_exception$fn__7999.invoke(ring.clj:11)
      	at immutant.web.internal.undertow$create_http_handler$reify__5596.handleRequest(undertow.clj:130)
      	at org.projectodd.wunderboss.web.async.websocket.UndertowWebsocket$2.handleRequest(UndertowWebsocket.java:96)
      	at io.undertow.server.session.SessionAttachmentHandler.handleRequest(SessionAttachmentHandler.java:68)
      	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)
      	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tcrawley Toby Crawley (Inactive)
            Archiver:
            ranumula Raju Anumula

              Dates

              Created:
              Updated:
              Resolved:
              Archived: