You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this in a clojure project, then compiling to an uberjar, then running through GraalVM's native-image to make a native binary, then running that binary explodes with:
Exception in thread "main" java.lang.NullPointerException
at org.yaml.snakeyaml.util.PlatformFeatureDetector.isRunningOnAndroid(PlatformFeatureDetector.java:25)
at org.yaml.snakeyaml.introspector.PropertyUtils.<init>(PropertyUtils.java:60)
at org.yaml.snakeyaml.introspector.PropertyUtils.<init>(PropertyUtils.java:50)
at org.yaml.snakeyaml.constructor.BaseConstructor.getPropertyUtils(BaseConstructor.java:531)
at org.yaml.snakeyaml.constructor.BaseConstructor.addTypeDescription(BaseConstructor.java:552)
at org.yaml.snakeyaml.constructor.Constructor.<init>(Constructor.java:84)
at org.yaml.snakeyaml.constructor.Constructor.<init>(Constructor.java:70)
at org.yaml.snakeyaml.constructor.Constructor.<init>(Constructor.java:56)
at org.yaml.snakeyaml.constructor.Constructor.<init>(Constructor.java:46)
at yaml.reader$_STAR_constructor_STAR_.invokeStatic(reader.clj:10)
...
Using this in a clojure project, then compiling to an uberjar, then running through GraalVM's
native-image
to make a native binary, then running that binary explodes with:This is caused by a bug in older versions of snakeyaml: https://bitbucket.org/asomov/snakeyaml/issues/411/ensure-compatibility-with-graal
In order to fix this you just need to bump your snakeyaml dependency to a newer version (1.23 or above). I have tested with 1.25.
In the meantime, if compiling with graal, you can work around this issue with a deps structure like:
The text was updated successfully, but these errors were encountered: