Using ring, jetty plugin: No reader function for tag object

394 views
Skip to first unread message

Angel Java Lopez

unread,
Oct 22, 2017, 1:41:12 PM10/22/17
to clojure
Hi!

I have a problem, following the instructions:


I can run the server using the repl

But when I added the plugin, according to:


and execute

lein ring server

I get the infamous error:

Exception in thread "main" java.lang.RuntimeException: No reader function for tag object, compiling:....:
        at clojure.lang.Compiler.load(Compiler.java:7386)
        at clojure.lang.Compiler.loadFile(Compiler.java:7317)
        at clojure.main$load_script.invokeStatic(main.clj:275)
        at clojure.main$init_opt.invokeStatic(main.clj:277)
        at clojure.main$init_opt.invoke(main.clj:277)
        at clojure.main$initialize.invokeStatic(main.clj:308)
        at clojure.main$null_opt.invokeStatic(main.clj:342)
        at clojure.main$null_opt.invoke(main.clj:339)
        at clojure.main$main.invokeStatic(main.clj:421)
        at clojure.main$main.doInvoke(main.clj:384)
        at clojure.lang.RestFn.invoke(RestFn.java:421)
        at clojure.lang.Var.invoke(Var.java:383)
        at clojure.lang.AFn.applyToHelper(AFn.java:156)
        at clojure.lang.Var.applyTo(Var.java:700)
        at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: No reader function for tag object
        at clojure.lang.LispReader$CtorReader.readTagged(LispReader.java:1245)
        at clojure.lang.LispReader$CtorReader.invoke(LispReader.java:1228)
.....

Using Windows 10, JDK 1.8_074

Current project at:


I tried other tutorials, examples, using the REPL is OK, but using the plugin and lein ring server, does not work

Notable, other ring plugin commands work, like lein ring uberjar

Any cues??

TIA

Angel "Java" Lopez
@ajlopez

David Bürgin

unread,
Oct 22, 2017, 2:28:40 PM10/22/17
to clo...@googlegroups.com
Perhaps try downgrading Leiningen to 2.7.1:

lein upgrade 2.7.1

See https://github.com/technomancy/leiningen/issues/2328.


--
David

James Reeves

unread,
Oct 22, 2017, 2:32:41 PM10/22/17
to clo...@googlegroups.com
It looks like there's a dependency mismatch between the version of Ring that Lein-Ring injects, and the version you've added to your project file. If you update Ring to 1.6.2 (and lein clean) it should work.

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
James Reeves

Angel Java Lopez

unread,
Oct 22, 2017, 2:44:18 PM10/22/17
to clojure
I updated the versions to 1.6.2, but without luck

Downgrading Leiningen works!!! (???)

Thanks!
Reply all
Reply to author
Forward
0 new messages