Skip to content

Instantly share code, notes, and snippets.

@stuartrexking

stuartrexking/*e Secret

Created Nov 30, 2020
Embed
What would you like to do?
Casting and Type Hinting
#error{:cause "Cannot cast org.apache.pdfbox.pdmodel.graphics.color.PDColor to [F",
:via [{:type java.lang.ClassCastException,
:message "Cannot cast org.apache.pdfbox.pdmodel.graphics.color.PDColor to [F",
:at [java.lang.Class cast "Class.java" 3606]}],
:trace [[java.lang.Class cast "Class.java" 3606]
[clojure.lang.Reflector boxArg "Reflector.java" 552]
[clojure.lang.Reflector boxArgs "Reflector.java" 585]
[clojure.lang.Reflector invokeMatchingMethod "Reflector.java" 132]
[clojure.lang.Reflector invokeInstanceMethod "Reflector.java" 102]
[ventures.fierce.pdfbox.appearance_content_stream$non_stroking_color_GT_
invokeStatic
"appearance_content_stream.clj"
39]
[ventures.fierce.pdfbox.appearance_content_stream$non_stroking_color_GT_
invoke
"appearance_content_stream.clj"
36]
[ventures.fierce.pdfbox.check_box$appearance_content_stream_BANG_ invokeStatic "check_box.clj" 65]
[ventures.fierce.pdfbox.check_box$appearance_content_stream_BANG_ invoke "check_box.clj" 48]
[ventures.fierce.pdfbox.check_box$create_appearance_stream$fn__2484 invoke "check_box.clj" 84]
[ventures.fierce.pdfbox.check_box$create_appearance_stream invokeStatic "check_box.clj" 83]
[ventures.fierce.pdfbox.check_box$create_appearance_stream invoke "check_box.clj" 76]
[ventures.fierce.pdfbox.check_box$set_appearances_BANG_ invokeStatic "check_box.clj" 93]
[ventures.fierce.pdfbox.check_box$set_appearances_BANG_ invoke "check_box.clj" 90]
[ventures.fierce.pdfbox.check_box$eval2493$fn__2495 invoke "check_box.clj" 145]
[clojure.lang.MultiFn invoke "MultiFn.java" 234]
[ventures.fierce.pdfbox.core$add_fields_BANG_ invokeStatic "core.clj" 54]
[ventures.fierce.pdfbox.core$add_fields_BANG_ invoke "core.clj" 50]
[ventures.fierce.pdfbox.core$eval2596 invokeStatic "core.clj" 19]
[ventures.fierce.pdfbox.core$eval2596 invoke "core.clj" 58]
[clojure.lang.Compiler eval "Compiler.java" 7177]
[clojure.lang.Compiler eval "Compiler.java" 7132]
[clojure.core$eval invokeStatic "core.clj" 3214]
[clojure.core$eval invoke "core.clj" 3210]
[nrepl.middleware.interruptible_eval$evaluate$fn__936 invoke "interruptible_eval.clj" 91]
[clojure.main$repl$read_eval_print__9086$fn__9089 invoke "main.clj" 437]
[clojure.main$repl$read_eval_print__9086 invoke "main.clj" 437]
[clojure.main$repl$fn__9095 invoke "main.clj" 458]
[clojure.main$repl invokeStatic "main.clj" 458]
[clojure.main$repl doInvoke "main.clj" 368]
[clojure.lang.RestFn invoke "RestFn.java" 1523]
[nrepl.middleware.interruptible_eval$evaluate invokeStatic "interruptible_eval.clj" 84]
[nrepl.middleware.interruptible_eval$evaluate invoke "interruptible_eval.clj" 56]
[nrepl.middleware.interruptible_eval$interruptible_eval$fn__962$fn__966
invoke
"interruptible_eval.clj"
155]
[clojure.lang.AFn run "AFn.java" 22]
[nrepl.middleware.session$session_exec$main_loop__1063$fn__1067 invoke "session.clj" 190]
[nrepl.middleware.session$session_exec$main_loop__1063 invoke "session.clj" 189]
[clojure.lang.AFn run "AFn.java" 22]
[java.lang.Thread run "Thread.java" 834]]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment