This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-08
Channels
- # architecture (8)
- # beginners (78)
- # boot (20)
- # cider (81)
- # clara (53)
- # cljdoc (10)
- # cljsjs (3)
- # clojure (55)
- # clojure-boston (1)
- # clojure-dev (25)
- # clojure-nl (3)
- # clojure-uk (65)
- # clojurescript (65)
- # core-async (1)
- # cursive (41)
- # data-science (4)
- # datomic (16)
- # editors (74)
- # emacs (17)
- # events (1)
- # figwheel (3)
- # hyperfiddle (39)
- # immutant (16)
- # jobs-discuss (62)
- # juxt (2)
- # keechma (2)
- # leiningen (6)
- # mount (7)
- # nrepl (1)
- # off-topic (30)
- # onyx (14)
- # protorepl (2)
- # re-frame (4)
- # reagent (15)
- # reitit (19)
- # shadow-cljs (102)
- # sim-testing (1)
- # spacemacs (44)
- # specter (15)
- # tools-deps (50)
- # vim (2)
Is it possible to use environment vars like DATOMIC_LICENCE_KEY
and DATOMIC_PROTOCOL
, instead of the .properties
file?
does anyone know what this error might indicate?
clojure.lang.ExceptionInfo: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter {:cognitect.anomalies/category :cognitect.anomalies/fault, :cognitect.anomalies/message "java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter"}
(java 10 with [com.datomic/client-cloud "0.8.56"])
well, less of what it indicates and more of why it's happening after upgrading the client version number 😉
it's coming from d/connect
:
(def conn (d/connect client {:db-name "my-db"}))
CompilerException clojure.lang.ExceptionInfo: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter #:cognitect.anomalies{:category :cognitect.anomalies/fault, :message "java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter"}, compiling:(form-init5907823285585856170.clj:1:11)
i do get some warnings when building the client. repl history as follows: https://gist.github.com/joshkh/0b388c8e04533a461e1d2bbbc165a10d
javax.xml.bind was pulled from the JDK in Java 9 and put into a separate module
I’m not sure what is actually using javax.xml.bind.DataTypeConverter. Is it transit maybe?
I know there’s a pending issue there
if at the end of your gist, you do (pst)
, would like to see that
as a temporary workaround, you could add javax.xml.bind/jaxb-api {:mvn/version "2.3.0"}
dep
silly question, but i noticed that the datomic cloud getting started documentation now uses :ion
for the :server-type
in the example config. is :cloud
still an option, or should we be using :ion
even if we're not making use of Ions? https://docs.datomic.com/cloud/getting-started/connecting.html#creating-database
@alexmiller here's the result of (pst)
https://gist.github.com/joshkh/5814f64414986ff357ccc036446de64f , and i can confirm that adding jaxb-api as a dep fixes the problem. cheers 🙂
if you’re not using Ions, use :cloud
. If you are, use :ion