Fork me on GitHub
#datomic
<
2018-08-08
>
tlima13:08:47

Is it possible to use environment vars like DATOMIC_LICENCE_KEY and DATOMIC_PROTOCOL, instead of the .properties file?

joshkh15:08:57

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"])

joshkh15:08:34

well, less of what it indicates and more of why it's happening after upgrading the client version number 😉

marshall15:08:42

@joshkh what are you doing when you get that error?

joshkh15:08:40

it's coming from a client library. let me take a look and confirm.

joshkh15:08:53

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) 

joshkh15:08:14

i do get some warnings when building the client. repl history as follows: https://gist.github.com/joshkh/0b388c8e04533a461e1d2bbbc165a10d

Alex Miller (Clojure team)16:08:00

javax.xml.bind was pulled from the JDK in Java 9 and put into a separate module

Alex Miller (Clojure team)16:08:25

I’m not sure what is actually using javax.xml.bind.DataTypeConverter. Is it transit maybe?

Alex Miller (Clojure team)16:08:36

I know there’s a pending issue there

Alex Miller (Clojure team)16:08:33

if at the end of your gist, you do (pst), would like to see that

Alex Miller (Clojure team)16:08:17

as a temporary workaround, you could add javax.xml.bind/jaxb-api {:mvn/version "2.3.0"} dep

joshkh16:08:59

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

joshkh16:08:40

@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 🙂

Alex Miller (Clojure team)16:08:50

if you’re not using Ions, use :cloud. If you are, use :ion