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
The native image generation is working, but then running the executable will generate these error log bellow.
Error 1
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.geolatte.geom.crs.CrsRegistry
at org.geolatte.geom.jts.JTS.determineCrsFromCoordinatesAndSrid(JTS.java:163) ~[na:na]
at org.geolatte.geom.jts.JTS.from(JTS.java:126) ~[na:na]
at org.hibernate.spatial.JTSGeometryJavaType.unwrap(JTSGeometryJavaType.java:102) ~[na:na]
at org.hibernate.spatial.JTSGeometryJavaType.unwrap(JTSGeometryJavaType.java:37) ~[na:na]
Error2
Caused by: java.lang.InstantiationException: org.geolatte.geom.codec.PostgisWkbDecoder
at [email protected]/java.lang.Class.newInstance(DynamicHub.java:719) ~[com.kc.KnightclubbersApplication:na]
at org.geolatte.geom.codec.Wkb.createInstance(Wkb.java:222) ~[na:na]
... 64 common frames omitted
Caused by: java.lang.NoSuchMethodException: org.geolatte.geom.codec.PostgisWkbDecoder.<init>()
at [email protected]/java.lang.Class.checkMethod(DynamicHub.java:1078) ~[com.kc.KnightclubbersApplication:na]
at [email protected]/java.lang.Class.getConstructor0(DynamicHub.java:1241) ~[com.kc.KnightclubbersApplication:na]
at [email protected]/java.lang.Class.newInstance(DynamicHub.java:706) ~[com.kc.KnightclubbersApplication:na]
... 65 common frames omitted
Error 3
Caused by: java.lang.IllegalStateException: Can't find spatial_ref_sys definitions.
at org.geolatte.geom.crs.CrsRegistry.createReader(CrsRegistry.java:80) ~
I followed the indication given here: #233 (comment) which solves some problems, but not theses ones.
System Info
OS: Windows 11
GraalVM Version 22
Java Version Java 21 CE
Plugin version: graalvm-reachability-metadata-0.10.2-repository.zip
The text was updated successfully, but these errors were encountered:
Describe the bug
Hibernate spatial is failing when running in native image.
To Reproduce
Create a spring boot 3.3.1 project using hibernate-spatial
One of my entity contains a field
org.locationtech.jts.geom.Point;
which is aPostGIS GEOGRAPHY(POINT, 4326),
I filter my entities based on these gps coordinates
The native image generation is working, but then running the executable will generate these error log bellow.
Error 1
Error2
Error 3
I followed the indication given here: #233 (comment) which solves some problems, but not theses ones.
System Info
OS: Windows 11
GraalVM Version 22
Java Version Java 21 CE
Plugin version: graalvm-reachability-metadata-0.10.2-repository.zip
The text was updated successfully, but these errors were encountered: