Skip to content

Instantly share code, notes, and snippets.

@andyparsons
Created September 16, 2020 22:40
Show Gist options
  • Save andyparsons/3d8ed59e7f8b0706b969bf282958251d to your computer and use it in GitHub Desktop.
Save andyparsons/3d8ed59e7f8b0706b969bf282958251d to your computer and use it in GitHub Desktop.
[pencil-artifact] java -jar target/uberjar/pencil-artifact-0.0.1-standalone.jar master
Enter items in cart along with the quantities as follows "Cookies x 8, Cheesecakes x 4" :
Cookies x 8
Enter offer date if applicable else enter NA :
Exception in thread "main" java.lang.IllegalArgumentException: No implementation of method: :day-of-week of protocol: #'clj-time.core/DateTimeProtocol found for class: nil
at clojure.core$_cache_protocol_fn.invokeStatic(core_deftype.clj:583)
at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:575)
at clj_time.core$fn__377$G__206__382.invoke(core.clj:102)
at pencil_artifact.helper.offers$get_special_offers.invokeStatic(offers.clj:31)
at pencil_artifact.helper.offers$get_special_offers.invoke(offers.clj:28)
at pencil_artifact.helper.offers$get_applicable_offers.invokeStatic(offers.clj:69)
at pencil_artifact.helper.offers$get_applicable_offers.invoke(offers.clj:62)
at pencil_artifact.helper.price$get_best_price.invokeStatic(price.clj:30)
at pencil_artifact.helper.price$get_best_price.invoke(price.clj:26)
at pencil_artifact.helper.price$calculate_cart_total$fn__1016.invoke(price.clj:44)
at clojure.lang.ArrayChunk.reduce(ArrayChunk.java:58)
at clojure.core.protocols$fn__8154.invokeStatic(protocols.clj:136)
at clojure.core.protocols$fn__8154.invoke(protocols.clj:124)
at clojure.core.protocols$fn__8114$G__8109__8123.invoke(protocols.clj:19)
at clojure.core.protocols$seq_reduce.invokeStatic(protocols.clj:31)
at clojure.core.protocols$fn__8146.invokeStatic(protocols.clj:75)
at clojure.core.protocols$fn__8146.invoke(protocols.clj:75)
at clojure.core.protocols$fn__8088$G__8083__8101.invoke(protocols.clj:13)
at clojure.core$reduce.invokeStatic(core.clj:6828)
at clojure.core$reduce.invoke(core.clj:6810)
at pencil_artifact.helper.price$calculate_cart_total.invokeStatic(price.clj:43)
at pencil_artifact.helper.price$calculate_cart_total.invoke(price.clj:40)
at pencil_artifact.core$_main.invokeStatic(core.clj:23)
at pencil_artifact.core$_main.doInvoke(core.clj:9)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at clojure.lang.AFn.applyToHelper(AFn.java:152)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at pencil_artifact.core.main(Unknown Source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment