lein jar in ch08-lein-mixed-source fails #2

Closed
kenrestivo opened this Issue Apr 4, 2012 · 1 comment

Projects

None yet

2 participants

On commit fb44c29 of ch08-lein-mixed-source, the "lein compile" target succeeds, but the "lein jar" target fails with:

Copying 1 file to /home/clojure/src/ClojureProgramming/ch08-lein-mixed-source/lib
Compiling mixed.core
Compilation succeeded.
Compiling 1 source file to /home/clojure/src/ClojureProgramming/ch08-lein-mixed-source/classes
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at jline.ConsoleRunner.main(ConsoleRunner.java:69)
Caused by: java.lang.NullPointerException (NO_SOURCE_FILE:0)
    at clojure.lang.Compiler.eval(Compiler.java:5440)
    at clojure.lang.Compiler.eval(Compiler.java:5391)
    at clojure.core$eval.invoke(core.clj:2382)
    at clojure.main$eval_opt.invoke(main.clj:235)
    at clojure.main$initialize.invoke(main.clj:254)
    at clojure.main$script_opt.invoke(main.clj:270)
    at clojure.main$main.doInvoke(main.clj:354)
    at clojure.lang.RestFn.invoke(RestFn.java:457)
    at clojure.lang.Var.invoke(Var.java:377)
    at clojure.lang.AFn.applyToHelper(AFn.java:172)
    at clojure.lang.Var.applyTo(Var.java:482)
    at clojure.main.main(main.java:37)
    ... 5 more
Caused by: java.lang.NullPointerException
    at clojure.lang.Numbers.ops(Numbers.java:1364)
    at clojure.lang.Numbers.isZero(Numbers.java:99)
    at leiningen.jar$jar.invoke(jar.clj:222)
    at leiningen.jar$jar.invoke(jar.clj:228)
    at clojure.lang.Var.invoke(Var.java:365)
    at clojure.lang.AFn.applyToHelper(AFn.java:161)
    at clojure.lang.Var.applyTo(Var.java:482)
    at clojure.core$apply.invoke(core.clj:542)
    at leiningen.core$apply_task.invoke(core.clj:264)
    at leiningen.core$_main.doInvoke(core.clj:331)
    at clojure.lang.RestFn.invoke(RestFn.java:410)
    at clojure.lang.AFn.applyToHelper(AFn.java:161)
    at clojure.lang.RestFn.applyTo(RestFn.java:132)
    at clojure.core$apply.invoke(core.clj:542)
    at leiningen.core$_main.invoke(core.clj:334)
    at user$eval42.invoke(NO_SOURCE_FILE:1)
    at clojure.lang.Compiler.eval(Compiler.java:5424)
    ... 16 more

This is with LEIN_VERSION="1.7.0"

@cemerick cemerick closed this in d9032d3 Apr 4, 2012
Owner
cemerick commented Apr 4, 2012

Thanks for catching that. The issue is not present in Leiningen v2.x, interestingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment