This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-15
Channels
- # announcements (8)
- # asami (10)
- # babashka (16)
- # beginners (86)
- # calva (22)
- # chlorine-clover (9)
- # circleci (20)
- # clj-kondo (13)
- # cljs-dev (20)
- # cljsrn (3)
- # clojure (144)
- # clojure-australia (10)
- # clojure-europe (126)
- # clojure-italy (5)
- # clojure-nl (8)
- # clojure-norway (4)
- # clojure-serbia (9)
- # clojure-uk (7)
- # clojurescript (14)
- # cursive (20)
- # data-science (1)
- # datomic (20)
- # figwheel-main (5)
- # fulcro (23)
- # graalvm (7)
- # graphql (25)
- # honeysql (15)
- # hugsql (3)
- # jobs (2)
- # lambdaisland (2)
- # leiningen (4)
- # lsp (102)
- # malli (3)
- # off-topic (51)
- # overtone (5)
- # pathom (27)
- # portal (11)
- # quil (1)
- # re-frame (19)
- # reagent (31)
- # remote-jobs (1)
- # reveal (3)
- # rewrite-clj (56)
- # shadow-cljs (45)
- # startup-in-a-month (1)
- # tools-deps (9)
I'm having a problem with graalvm 21.0.0.2. I've been running the agent and putting the output into resources/META-INF/native-image. When I run the compile it complains "Error: Error parsing reflection configuration in jar:file:/home/steve/workspace/lant-play/target/uberjar/lant-play-0.1.0-SNAPSHOT-standalone.jar!/META-INF/native-image/reflect-config.json: Method java.lang.reflect.Method.canAccess(Object) not found. To allow unresolvable reflection configuration, use option -H:+AllowIncompleteClasspath". I found a note on https://github.com/lread/clj-graal-docs#hello-world about adding a java.lang.reflect.AccessibleObject to "reflection.json". Is that the same file as reflect-config.json that the agent creates, or is it a different file? And if it's a different file where do I put it (putting it into META-INF/native-image isn't working)
the location/name of this file is configurable, but if you put it in META-INF it's picked up automatically
so if I remove the content of reflect-config.json that the agent creates and just put in the java.lang.reflect.Method thing (from the lread repo) then it compiles.
@slgeorge Looking closer: > Method java.lang.reflect.Method.canAccess(Object) not found. This probably means you are running java8. This method is only available on java11