datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
Petrus Theron 2020-10-25T09:28:40.167900Z

Hey guys, I’ve been blocked for two days trying to get Datomic to talk to any non-memory storage on my machine. Any leads on why Datomic works fine for in-memory DB, but can’t connect to my local dev transactor?

➜  datomic-debug clj
Clojure 1.10.1
user=> (require '[datomic.api :as d])
nil
user=&gt; (d/create-database "datomic:<mem://127.0.0.1:4334/newdb1%22|mem://127.0.0.1:4334/newdb1">)
true ;; in-mem works
user=&gt; (d/create-database "datomic:<dev://127.0.0.1:4334/newdb1%22|dev://127.0.0.1:4334/newdb1">)
Oct 25, 2020 9:26:42 AM org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector createConnection
ERROR: AMQ214016: Failed to create netty connection
javax.net.ssl.SSLException: handshake timed out
	at io.netty.handler.ssl.SslHandler.handshake(...)(Unknown Source)

Execution error (ActiveMQNotConnectedException) at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl/createSessionFactory (ServerLocatorImpl.java:787).
AMQ119007: Cannot connect to server(s). Tried with all available servers.
I suspect an incompatibility with my JDK and Datomic’s queuing dependency, but having tried different versions of Clojure, Datomic (Pro and Free), Netty, HornetMQ and different JDKs, I can’t figure out why I can’t connect to or create a DB with :dev storage. What am I doing wrong?

Petrus Theron 2020-10-26T08:55:42.170100Z

Happens when running Datomic Pro 1.0.6202

2020-10-25T15:45:29.168700Z

I recall this being fixed in recent versions of Datomic, i could be wrong