This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-10
Channels
- # announcements (9)
- # babashka (19)
- # beginners (39)
- # calva (7)
- # cherry (1)
- # cider (2)
- # clojure (31)
- # clojure-europe (8)
- # clojure-norway (9)
- # datalevin (10)
- # events (2)
- # fulcro (10)
- # hyperfiddle (9)
- # joker (1)
- # lsp (50)
- # membrane (34)
- # minecraft (2)
- # missionary (21)
- # off-topic (17)
- # pedestal (1)
- # polylith (8)
- # reitit (3)
- # sql (4)
- # squint (16)
- # xtdb (14)
I am in a situation where I need to use java 17 and I think I need to add the jvm options recommended (datalevin worked fine with Java 11 on my setting based upon leiningen).
So I added :jvm-opts
part like below but still not working. Can someone let me know if this look right?
(defproject ... "0.1.0-SNAPSHOT"
...
:dependencies [[datalevin "0.6.16"]
[metosin/reitit "0.5.18"]
[org.clojure/clojure "1.10.0"]
[ring/ring-jetty-adapter "1.9.5"]]
:jvm-opts ["--add-opens=java.base/java.nio=ALL-UNNAMED"
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED"])
Fyi, this is the log message I am currently getting.
Execution error (InaccessibleObjectException) at java.lang.reflect.AccessibleObject/checkCanSetAccessible (AccessibleObject.java:354).
Unable to make field long java.nio.Buffer.address accessible: module java.base does not "opens java.nio" to unnamed module @202b84a6
ERROR: Unhandled REPL handler exception processing message {:op stacktrace, :nrepl.middleware.print/stream? 1, :nrepl.middleware.print/print cider.nrepl.pprint/pprint, :nrepl.middleware.print/quota 1048576, :nrepl.middleware.print/buffer-size 4096, :nrepl.middleware.print/options {:right-margin 70}, :session 362ae053-b433-4eb6-9618-d0167b312a90, :id 9}
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.lmdbjava.ByteBufferProxy
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
:jvm-opts [“--add-opens” “java.base/java.nio=ALL-UNNAMED” “--add-opens” “java.base/java.lang=ALL-UNNAMED” “--add-opens” “java.base/sun.nio.ch=ALL-UNNAMED” “--add-opens” “java.base/jdk.internal.ref=ALL-UNNAMED”]
@U0A74MRCJ I’m also running into this problem with deps.edn. I followed the instructions in one of the github issues related to this but your example shows starting the application with the command line. I’m trying to simply test out datalevin and the sample for deps.edn doesn’t work with cider-jack-in in Emacs. Any idea on how to configure this for Cider and working in a repl?
ok thank you!