Re: [clojure-mongodb] java.lang.NoSuchMethodError: clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)

859 views
Skip to first unread message

Michael Klishin

unread,
Apr 19, 2013, 4:36:28 AM4/19/13
to Monger, a Clojure MongoDB driver

2013/4/19 Zhi Yang <zhi....@yottaa.com>
Exception in thread "main" java.lang.NoSuchMethodError: clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;, compiling:(core.clj:10)

This means you have code compiled against Clojure 1.4 or later and you are running 1.3.

lein clean should clear such artifacts (e.g. protocols and gen-class-generated .class files) but the real issue is that something
is probably dragging Clojure 1.3 onto the classpath.

lein deps :tree will show you dependency tree. The only thing I can tell is that Noir has been deprecated months ago and was never
updated to 1.4 to the best of my knowledge. Use Luminus, Compojure or Pedestal and Clojure 1.5.1.

Monger still supports Clojure 1.3 but it does use protocols internally so if you've just added any new dependencies, you may have
1.4+ .class files generated for them.
--
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin
Reply all
Reply to author
Forward
0 new messages