Hi Jason,
From a quick look, I wonder if you need to update the version of Apache
Commons Lang3. GeoTools 21 uses version 3.8.1 and I see 3.0 in the
project you linked to.
Is changing the version of Commons Lang3 something easy to try?
Cheers,
Jim
https://github.com/WildbookOrg/Wildbook/blob/mantamatcher.org/pom.xml#L136-L140
https://github.com/geotools/geotools/blob/21.1/pom.xml#L1045-L1049
On 4/30/2019 1:17 PM, Jason Holmberg wrote:
Hi Everyone,
I'm trying to upgrade this Shapefile exporter for the open source
Wildbook project:
https://github.com/WildbookOrg/Wildbook/blob/mantamatcher.org/src/main/java/org/ecocean/servlet/export/EncounterSearchExportShapefile.java
using Geotools 21.1 Java 8 support.
Everything compiles great, and I tell Maven to use Java 8 and have
ensured that my Ubuntu server is running Java 8.
But I get the following error:
java.lang.NoSuchFieldError: JAVA_9
org.geotools.util.NIOUtilities.clean(NIOUtilities.java:207)
org.geotools.util.NIOUtilities.clean(NIOUtilities.java:185)
org.geotools.data.shapefile.dbf.DbaseFileHeader.writeHeader(DbaseFileHeader.java:848)
org.geotools.data.shapefile.ShapefileDataStore.createSchema(ShapefileDataStore.java:307)
org.ecocean.servlet.export.EncounterSearchExportShapefile.doPost(EncounterSearchExportShapefile.java:195)
org.ecocean.servlet.export.EncounterSearchExportShapefile.doGet(EncounterSearchExportShapefile.java:57)
Can anyone advise what additional steps I could take to restore
ShapeFile export in our project with Geotools 21.1? Is there a hidden
reference to Java 9 somewhere in something I am using?
Thank you!
Jason Holmberg
Executive Director/Director of Engineering
/*A.I. and humans combating extinction together.*/
Wild Me - https://www.wildme.org <https://www.wildme.org/>
Wildbook - https://www.wildbook.org <https://www.wildbook.org/>
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users