Last active
August 29, 2015 14:18
-
-
Save kitallis/9079cf22ef410cb68a89 to your computer and use it in GitHub Desktop.
Macro evaluation on Heroku breaks when using (comp)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----> Clojure (Leiningen 2) app detected | |
-----> Installing OpenJDK 1.6...done | |
-----> Using cached Leiningen 2.5.1 | |
Writing: lein script | |
-----> Building with Leiningen | |
Running: lein with-profile production compile :all | |
. | |
. | |
. | |
. | |
. | |
java.lang.ExceptionInInitializerError | |
at java.lang.Class.forName0(Native Method) | |
at java.lang.Class.forName(Class.java:266) | |
at clojure.lang.RT.loadClassForName(RT.java:2093) | |
at clojure.lang.RT.load(RT.java:430) | |
at clojure.lang.RT.load(RT.java:411) | |
at clojure.core$load$fn__5066.invoke(core.clj:5641) | |
at clojure.core$load.doInvoke(core.clj:5640) | |
at clojure.lang.RestFn.invoke(RestFn.java:408) | |
at clojure.core$load_one.invoke(core.clj:5446) | |
at clojure.core$compile$fn__5071.invoke(core.clj:5652) | |
at clojure.core$compile.invoke(core.clj:5651) | |
at user$eval9$fn__16.invoke(form-init1885581306825918213.clj:1) | |
at user$eval9.invoke(form-init1885581306825918213.clj:1) | |
at clojure.lang.Compiler.eval(Compiler.java:6703) | |
at clojure.lang.Compiler.eval(Compiler.java:6693) | |
at clojure.lang.Compiler.load(Compiler.java:7130) | |
at clojure.lang.Compiler.loadFile(Compiler.java:7086) | |
at clojure.main$load_script.invoke(main.clj:274) | |
at clojure.main$init_opt.invoke(main.clj:279) | |
at clojure.main$initialize.invoke(main.clj:307) | |
at clojure.main$null_opt.invoke(main.clj:342) | |
at clojure.main$main.doInvoke(main.clj:420) | |
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.IllegalArgumentException: No matching ctor found for class clojure.core$comp$fn__4192 | |
at clojure.lang.Reflector.invokeConstructor(Reflector.java:163) | |
at clojure.lang.LispReader$EvalReader.invoke(LispReader.java:1043) | |
at clojure.lang.LispReader$DispatchReader.invoke(LispReader.java:616) | |
at clojure.lang.LispReader.read(LispReader.java:183) | |
at clojure.lang.RT.readString(RT.java:1737) | |
at kulu_backend.handler__init.__init0(Unknown Source) | |
at kulu_backend.handler__init.<clinit>(Unknown Source) | |
... 27 more | |
Exception in thread "main" java.lang.ExceptionInInitializerError, compiling:(/tmp/form-init1885581306825918213.clj:1:72) | |
at clojure.lang.Compiler.load(Compiler.java:7142) | |
at clojure.lang.Compiler.loadFile(Compiler.java:7086) | |
at clojure.main$load_script.invoke(main.clj:274) | |
at clojure.main$init_opt.invoke(main.clj:279) | |
at clojure.main$initialize.invoke(main.clj:307) | |
at clojure.main$null_opt.invoke(main.clj:342) | |
at clojure.main$main.doInvoke(main.clj:420) | |
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.ExceptionInInitializerError | |
at java.lang.Class.forName0(Native Method) | |
at java.lang.Class.forName(Class.java:266) | |
at clojure.lang.RT.loadClassForName(RT.java:2093) | |
at clojure.lang.RT.load(RT.java:430) | |
at clojure.lang.RT.load(RT.java:411) | |
at clojure.core$load$fn__5066.invoke(core.clj:5641) | |
at clojure.core$load.doInvoke(core.clj:5640) | |
at clojure.lang.RestFn.invoke(RestFn.java:408) | |
at clojure.core$load_one.invoke(core.clj:5446) | |
at clojure.core$compile$fn__5071.invoke(core.clj:5652) | |
at clojure.core$compile.invoke(core.clj:5651) | |
at user$eval9$fn__16.invoke(form-init1885581306825918213.clj:1) | |
at user$eval9.invoke(form-init1885581306825918213.clj:1) | |
at clojure.lang.Compiler.eval(Compiler.java:6703) | |
at clojure.lang.Compiler.eval(Compiler.java:6693) | |
at clojure.lang.Compiler.load(Compiler.java:7130) | |
... 11 more | |
Caused by: java.lang.IllegalArgumentException: No matching ctor found for class clojure.core$comp$fn__4192 | |
at clojure.lang.Reflector.invokeConstructor(Reflector.java:163) | |
at clojure.lang.LispReader$EvalReader.invoke(LispReader.java:1043) | |
at clojure.lang.LispReader$DispatchReader.invoke(LispReader.java:616) | |
at clojure.lang.LispReader.read(LispReader.java:183) | |
at clojure.lang.RT.readString(RT.java:1737) | |
at kulu_backend.handler__init.__init0(Unknown Source) | |
at kulu_backend.handler__init.<clinit>(Unknown Source) | |
... 27 more | |
Compilation failed: Subprocess failed | |
Error encountered performing task 'compile' with profile(s): 'production' | |
Compilation failed: Subprocess failed | |
! Failed to build. | |
! Push rejected, failed to compile Clojure (Leiningen 2) app | |
To [email protected]:kulu-backend-906.git | |
! [remote rejected] master -> master (pre-receive hook declined) | |
error: failed to push some refs to '[email protected]:kb-906.git' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(schema.core/defschema Pagination {:page | |
(s/both Long | |
(s/pred pos? 'pos?)) | |
:per_page | |
(s/both Long | |
(s/pred per-page-ok? 'per-page-ok?)) | |
:direction | |
(s/maybe String) | |
:order | |
(s/maybe String) | |
:total_pages | |
(s/both Long | |
(s/pred (comp not neg?) 'not-negative?)) | |
:total_count | |
(s/both Long | |
(s/pred (comp not neg?) 'not-negative?))}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(s/defschema PaginationResults {:page | |
(s/both Long | |
(s/pred pos? 'pos?)) | |
:per_page | |
(s/both Long | |
(s/pred per-page-ok? 'per-page-ok?)) | |
:direction | |
(s/maybe String) | |
:order | |
(s/maybe String) | |
:total_pages | |
(s/both Long | |
(s/pred #(not (neg? %1)) 'not-negative?)) | |
:total_count | |
(s/both Long | |
(s/pred #(not (neg? %1)) 'not-negative?))}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/cc @hone