technomancy/leiningen — Issue #296: Exception thrown after upgrading project to clojure 1.3
Author: carllerche
Created: 2011-10-17 15:54:57+00:00
State: open

I have an existing project that has been running on clojure 1.2 up till now. I tried upgrading to clojure 1.3. I removed all dependencies, built java files, etc... and started from scratch. After doing all that, when I ran `lein test`, I got the following exception thrown.

Exception in thread "main" java.lang.NullPointerException
at clojure.core$deref.invoke(core.clj:2078)
at leiningen.util.injected$run_hooks.invoke(NO_SOURCE_FILE:1)
at leiningen.util.injected$prepare_for_hooks$fn__14$runner__15.doInvoke(NO_SOURCE_FILE:1)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.test$do_report.invoke(test.clj:349)
at clojure.test$test_ns.invoke(test.clj:723)
at clojure.core$map$fn__3811.invoke(core.clj:2432)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:60)
at clojure.lang.Cons.next(Cons.java:39)
at clojure.lang.RT.boundedLength(RT.java:1607)
at clojure.lang.RestFn.applyTo(RestFn.java:130)
at clojure.core$apply.invoke(core.clj:602)
at clojure.test$run_tests.doInvoke(test.clj:743)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:600)
at user$eval29$fn__41.invoke(NO_SOURCE_FILE:1)
at user$eval29.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6465)
at clojure.lang.Compiler.eval(Compiler.java:6455)
at clojure.lang.Compiler.eval(Compiler.java:6431)
at clojure.core$eval.invoke(core.clj:2795)
at clojure.main$eval_opt.invoke(main.clj:296)
at clojure.main$initialize.invoke(main.clj:315)
at clojure.main$null_opt.invoke(main.clj:348)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:405)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)