This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-27
Channels
- # announcements (2)
- # babashka (60)
- # beginners (73)
- # calva (23)
- # cider (2)
- # clj-kondo (19)
- # cljs-dev (31)
- # clojure (29)
- # clojure-berlin (1)
- # clojure-europe (6)
- # clojure-nl (17)
- # clojure-spec (21)
- # clojure-uk (15)
- # clojurescript (54)
- # core-async (48)
- # cursive (35)
- # datomic (12)
- # emacs (12)
- # fulcro (66)
- # graalvm (3)
- # graphql (16)
- # jackdaw (1)
- # malli (1)
- # off-topic (11)
- # pedestal (4)
- # re-frame (10)
- # reitit (1)
- # rewrite-clj (8)
- # ring-swagger (8)
- # shadow-cljs (14)
- # spacemacs (2)
- # vim (5)
Hey, I am trying to use the json serializer and pass it as a class in a producer config but I can’t get it to work. So I am basically requiring
[jackdaw.serdes.json :as jserdes]
and then passing
ProducerConfig/VALUE_SERIALIZER_CLASS_CONFIG (class (jserdes/serializer))
when creating the producer
But then I get this error
NoSuchMethodException jackdaw.serdes.fn_impl.FnSerializer.<init>() java.lang.Class.getConstructor0 (Class.java:3082)
I have limited clojure knowledge and am reading up on defrecord/deftype to understand what’s going on but in the meantime is there an easy way for me to pass the serializer in this config ?