datahike

silian 2023-11-06T18:31:30.790549Z

@whilo When newly deploying to heroku with 0.6.1553, app crashing with error:

... Syntax error (IllegalArgumentException) compiling . at (datahike/array.cljc:14:30).
... No matching method compare found taking 2 args for class java.util.Arrays
Here is github link to line referenced in the error log: https://github.com/replikativ/datahike/blob/166cdbbb7031fa03e619091fb7a99c20cd550ec3/src/datahike/array.cljc#L14

✅ 1
favila 2023-11-06T18:37:02.850189Z

that method was added by jdk version 9; you probably have 8 running in that environment

silian 2023-11-06T18:48:58.551459Z

Thank you for pointing that out. You're right, the heroku default is OpenJDK 8.

whilo 2023-11-06T18:52:35.062569Z

Interesting, if this is the case then our Java 8 test fails here https://github.com/replikativ/datahike/blob/166cdbbb7031fa03e619091fb7a99c20cd550ec3/src/datahike/array.cljc#L18, could you check which version (Integer/parseInt (subs (System/getProperty "java.specification.version") 2)) returns?

silian 2023-11-06T18:57:02.010839Z

I don't know how to do this on heroku but this is a good skill to learn so I will learn how to do it now 😁

silian 2023-11-06T18:58:39.847979Z

(Sorry, I wish I could display with a Slack badge how novice I am!)

whilo 2023-11-06T18:59:14.467309Z

with clojure it is always nice to figure out how to start a REPL and connect to it

💙 1
whilo 2023-11-06T18:59:21.369519Z

not sure how easy that is on heroku

whilo 2023-11-06T18:59:52.241169Z

don't worry about being novice. the beginners mind is the most flexible and i am also still a novice in many things i care about

silian 2023-11-06T19:10:30.500319Z

Hmm, unfortunately I can't get the app to start. I am getting:

...Execution error (ExceptionInfo) at datahike.connector/deref-conn (connector.cljc:58).
...Connection has been released.

silian 2023-11-06T19:12:58.922659Z

Locally (after a restart) I am now getting:

; Execution error (ExceptionInfo) at datahike.connector/ensure-stored-config-consistency (connector.cljc:127).
; Configuration does not match stored configuration.

silian 2023-11-06T19:18:32.801799Z

I am reading alekcz's comment from yesterday. I have two stores in my app: one named cfg, the other local-cfg and just comment one or the other out before deploying. I assume this is related to Issue #654?

whilo 2023-11-06T19:21:57.373209Z

Probably.

whilo 2023-11-06T19:23:06.122229Z

Can you unify the config somehow for the time being?

✅ 1
whilo 2023-11-09T19:14:30.985329Z

This is now solved thanks to @alekcz360 with https://clojars.org/io.replikativ/datahike-jdbc/versions/0.3.47.

💯 1