[Geoserver-devel] OGR Failure with Java 8

Cross-posting to GeoServer devel and GeoTools devel as it kind of spans both projects (although is probably mostly a GeoTools issue)

https://osgeo-org.atlassian.net/browse/GEOS-7578

I was testing the OGR bindings (with OpenFIleGDB) on GeoServer 2.9.0, and ran into a failure when rendering.

Re-testing on GeoServer 2.8.0, I found that the issue occurs with OGR and Java 8 - Java 7 works fine. Since GeoServer 2.9 only supports Java 8, this means that OGR currently will not work with GeoServer 2.9.

Full details are in the linked ticket. If anyone has any ideas as to what might be causing this, I would love to hear them.

So far, my best guess is an issue with the GDAL SWIG bindings.

Thanks,

Torben

What version of SWIG do you have installed? I've noticed there are a number
of API changes between SWIG version 1 and 2 that change how the Java
bindings are generated. There are also a number of compatibility issues
between JDK 7 and 8.

http://www.oracle.com/technetwork/java/javase/8-compatibility-guide-2156366.html
<http://www.oracle.com/technetwork/java/javase/8-compatibility-guide-2156366.html&gt;

I'm still trying to figure out how it all works but maybe there is something
in that list that changes how the files are generated. You could also try
doing a diff between the two sets of generated files?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/OGR-Failure-with-Java-8-tp5271177p5271618.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.