Re: [h2] H2DB breaks GraalVM native image production

2022-01-10 Thread Evgenij Ryazanov
Hello! I think you need to force inclusion of org.h2.store.fs.disk.* classes into compiled program somehow, H2 loads them dynamically through reflection and NPE here mean they weren't found. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To u

Re: [h2] H2DB breaks GraalVM native image production

2022-01-07 Thread Behrang
Hi Noel, Adding that dependency solved that problem, but the program still breaks at runtime, this time with another error. I have uploaded some sample code here: https://github.com/behrangsa/xyz-fs/tree/feature/graal When I run the program with plain old Java, it runs fine and creates an emp

Re: [h2] H2DB breaks GraalVM native image production

2022-01-05 Thread Noel Grandin
You're missing the the JTS geometry classes Caused by: org.graalvm.compiler.java.BytecodeParser$BytecodeParserError: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved type during parsing: org.locationtech.jts.geom.Geometry. To diagnose the issue you can use th

[h2] H2DB breaks GraalVM native image production

2022-01-05 Thread Behrang
Hi, I am working on a small project where I use h2db as an embedded database. I want to compile this project using graalvm and use the produced binary. However the dependency breaks the build. Are there any workarounds available? *Sample build log:* $ mvn -Pnative clean package [INFO] Scannin