This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-04
Channels
- # announcements (5)
- # aws (11)
- # babashka (15)
- # beginners (101)
- # biff (14)
- # calva (45)
- # clj-kondo (18)
- # cljs-dev (5)
- # clojure (178)
- # clojure-austin (5)
- # clojure-europe (8)
- # clojure-france (1)
- # clojure-nl (12)
- # clojure-norway (6)
- # clojure-spec (4)
- # clojure-uk (1)
- # clojurescript (13)
- # community-development (2)
- # conjure (6)
- # cursive (8)
- # datahike (1)
- # datalevin (3)
- # datascript (36)
- # datomic (6)
- # emacs (2)
- # etaoin (2)
- # fulcro (5)
- # graalvm (6)
- # gratitude (3)
- # introduce-yourself (1)
- # jobs-discuss (1)
- # lsp (19)
- # malli (4)
- # nbb (11)
- # off-topic (4)
- # other-languages (1)
- # pathom (19)
- # pedestal (1)
- # shadow-cljs (22)
- # spacemacs (16)
- # tools-deps (31)
- # vim (7)
Hello, how far have folks gotten with getting h2 databases to work with native-image compiled clojure programs?
I am trying to use com.h2database/h2
with next.jdbc
in my CLI application called zic
. It all works when I run with java -jar
on my uberjar, but when I compile with native-image I get a NullPointerException
when the org.h2.engine.SessionRemote.connectEmbeddedOrServer
function tries to run.
I am using com.github.clj-easy/graal-config-h2
, com.github.clj-easy/next.jdbc
, etc. in my deps.edn
file when I compile the program.
I understand timezones are going to possibly delay replies 🙂 I am in Utah, UTC -0600 timezone myself. My code is here: https://github.com/djhaskin987/zic/tree/feature/add-deps-edn (`djhaskin987/zic` github repo on the feature/add-deps-edn
branch). To reproduce the error, you simply have to run make test-native
from the root of the repo, if anyone is interested. Thanks!
@djhaskin987 Not sure about H2. I do have a config for HSQLDB
H2 should work I think. At least it was working for latest dev version
@djhaskin987 you can try this https://github.com/oracle/graalvm-reachability-metadata/blob/master/metadata/com.h2database/h2/2.1.210/reflect-config.json config. We made clj-easy config repository before „conditions” were even the thing. @borkdude I’m not sure what to do with clj-easy/graal-config. I would love the GraalVM team to allow us putting our configs for Java & Clj libs on their repository. From clj-easy side we would need additional tooling for feeding the native-image with those configurations in Clojure.