This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-20
Channels
- # announcements (7)
- # babashka (16)
- # beginners (58)
- # boot (12)
- # calva (3)
- # cider (11)
- # clj-kondo (9)
- # cljs-dev (8)
- # clojure (82)
- # clojure-europe (9)
- # clojure-italy (11)
- # clojure-losangeles (1)
- # clojure-nl (8)
- # clojure-uk (8)
- # clojurescript (5)
- # css (2)
- # cursive (5)
- # datomic (20)
- # docker (2)
- # emacs (4)
- # figwheel-main (16)
- # fulcro (53)
- # graalvm (17)
- # jackdaw (2)
- # jobs (4)
- # kaocha (6)
- # lambdaisland (2)
- # luminus (2)
- # meander (1)
- # off-topic (146)
- # re-frame (4)
- # releases (1)
- # rum (12)
- # sci (71)
- # shadow-cljs (26)
- # test-check (22)
- # vim (1)
- # xtdb (9)
Folks I'm getting some error from this
15:42:08.337 [nREPL-session-c9ed3fa1-f255-497d-afd9-30060ce0ef4f] WARN crux.kv.memdb - Using sync? on MemKv has no effect. Persistence is disabled.
Execution error (ClassCastException) at crux.node/eval26196$fn (node.clj:169).
class java.io.StringWriter cannot be cast to class java.io.PrintWriter (java.io.StringWriter and java.io.PrintWriter are in module java.base of loader 'bootstrap')
15:42:08.374 [crux-tx-consumer] INFO crux.tx - Started tx-consumer
15:42:08.409 [crux-tx-consumer] DEBUG crux.memory - :pool-allocation-stats {:allocated 131072, :deallocated 0, :in-use 131072}
15:42:08.786 [crux-tx-consumer] INFO crux.hash.jnr - unknown
15:42:08.787 [crux-tx-consumer] INFO crux.hash - Using libgcrypt for ID hashing.
15:45:34.859 [crux-tx-consumer] DEBUG crux.memory - :pool-allocation-stats {:allocated 262144, :deallocated 0, :in-use 262144}
15:42:08.337 [nREPL-session-c9ed3fa1-f255-497d-afd9-30060ce0ef4f] WARN crux.kv.memdb - Using sync? on MemKv has no effect. Persistence is disabled.
Execution error (ClassCastException) at crux.node/eval26196$fn (node.clj:169).
class java.io.StringWriter cannot be cast to class java.io.PrintWriter (java.io.StringWriter and java.io.PrintWriter are in module java.base of loader 'bootstrap')
15:42:08.374 [crux-tx-consumer] INFO crux.tx - Started tx-consumer
15:42:08.409 [crux-tx-consumer] DEBUG crux.memory - :pool-allocation-stats {:allocated 131072, :deallocated 0, :in-use 131072}
15:42:08.786 [crux-tx-consumer] INFO crux.hash.jnr - unknown
15:42:08.787 [crux-tx-consumer] INFO crux.hash - Using libgcrypt for ID hashing.
15:45:34.859 [crux-tx-consumer] DEBUG crux.memory - :pool-allocation-stats {:allocated 262144, :deallocated 0, :in-use 262144}
what's this error node.clj:169 ??
What version of crux are you using? Looking at 20.05-1.8.3-alpha I don't see anything at line 169 that looks relevant. Tough for me to look into without knowing what version.
Thanks @UJP37GW2K 🙂
I suspect this might be a bug with print-method
on the Crux node object that'll affect rendering a Crux node as a string, introduced recently - there's an overly specific type hint. As far as I'm aware this shouldn't affect normal running of the Crux node.
Will arrange a fix
Thanks @U9ABG0ERZ for flagging it up - indeed, there's already a fix on master that will go out with our next release
I'm using juxt/crux-core {:mvn/version "20.07-1.9.2-beta"}
is it normal?