Hi guys,

I set up the Quickstart project with Maven and then used that to find other 
dependencies beyond GeoTools.  I can now run my project from my development 
environment without any errors and use the shapefile functions that were 
causing problems.

However, when I build the project and run it from an installation on a PC I now 
get “NoSuchFieldError” that seems to indicate a field called “JAVA_9” is being 
searched for.  Do you have any thoughts about how to address this?  The stack 
trace is below…

Aug 14, 2019 2:00:32 PM org.geotools.data.shapefile.shp.ShapefileReader <init>
WARNING: Could not open the .shx file, continuing assuming the .shp file is not 
sparse
java.io.IOException: JAVA_9
                at 
org.geotools.data.shapefile.shp.IndexFile.<init>(IndexFile.java:102)
                at 
org.geotools.data.shapefile.shp.ShapefileReader.<init>(ShapefileReader.java:266)
                at 
org.geotools.data.shapefile.shp.ShapefileReader.<init>(ShapefileReader.java:237)
                at 
utilities.shapeFiles.BN_Shapefile.initialize(BN_Shapefile.java:337)
                at 
utilities.shapeFiles.BN_Shapefile.<init>(BN_Shapefile.java:289)
                at 
module.GeoImageLoader.GeoImageLoader$1.run(GeoImageLoader.java:760)
                at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchFieldError: JAVA_9
                at org.geotools.util.NIOUtilities.clean(NIOUtilities.java:207)
                at org.geotools.util.NIOUtilities.clean(NIOUtilities.java:185)
                at 
org.geotools.data.shapefile.shp.IndexFile.readRecords(IndexFile.java:150)
                at 
org.geotools.data.shapefile.shp.IndexFile.<init>(IndexFile.java:95)
                ... 6 more

Aug 14, 2019 2:00:33 PM org.geotools.data.shapefile.shp.ShapefileReader <init>
WARNING: Could not open the .shx file, continuing assuming the .shp file is not 
sparse
java.io.IOException: JAVA_9
                at 
org.geotools.data.shapefile.shp.IndexFile.<init>(IndexFile.java:102)
                at 
org.geotools.data.shapefile.shp.ShapefileReader.<init>(ShapefileReader.java:266)
                at 
org.geotools.data.shapefile.ShapefileSetManager.openShapeReader(ShapefileSetManager.java:48)
                at 
org.geotools.data.shapefile.ShapefileFeatureSource.readAttributes(ShapefileFeatureSource.java:520)
                at 
org.geotools.data.shapefile.ShapefileFeatureSource.buildFeatureType(ShapefileFeatureSource.java:479)
                at 
org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:327)
                at 
org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:296)
                at 
org.geotools.data.store.ContentFeatureCollection.<init>(ContentFeatureCollection.java:69)
                at 
org.geotools.data.store.ContentFeatureSource.getFeatures(ContentFeatureSource.java:545)
                at 
org.geotools.data.store.ContentFeatureSource.getFeatures(ContentFeatureSource.java:105)
                at 
utilities.shapeFiles.BN_Shapefile.initialize(BN_Shapefile.java:365)
                at 
utilities.shapeFiles.BN_Shapefile.<init>(BN_Shapefile.java:289)
                at 
module.GeoImageLoader.GeoImageLoader$1.run(GeoImageLoader.java:760)
                at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchFieldError: JAVA_9
                at org.geotools.util.NIOUtilities.clean(NIOUtilities.java:207)
                at org.geotools.util.NIOUtilities.clean(NIOUtilities.java:185)
                at 
org.geotools.data.shapefile.shp.IndexFile.readRecords(IndexFile.java:150)
                at 
org.geotools.data.shapefile.shp.IndexFile.<init>(IndexFile.java:95)
                ... 13 more

Aug 14, 2019 2:00:33 PM org.geotools.data.shapefile.files.ShpFiles 
logCurrentLockers
SEVERE: The following locker still has a lock: read on 
http://volans.airportnetwork.com/ClientFiles/Heathrow/Projects/$Overlays/egll_ipa27L_4000_lmax55-75.shp
 by org.geotools.data.shapefile.shp.ShapefileReader
Exception in thread "Thread-43" java.lang.NoSuchFieldError: JAVA_9
                at org.geotools.util.NIOUtilities.clean(NIOUtilities.java:207)
                at org.geotools.util.NIOUtilities.clean(NIOUtilities.java:185)
                at 
org.geotools.data.shapefile.dbf.DbaseFileReader.close(DbaseFileReader.java:300)
                at 
org.geotools.data.shapefile.ShapefileFeatureSource.readAttributes(ShapefileFeatureSource.java:586)
                at 
org.geotools.data.shapefile.ShapefileFeatureSource.buildFeatureType(ShapefileFeatureSource.java:479)
                at 
org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:327)
                at 
org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:296)
                at 
org.geotools.data.store.ContentFeatureCollection.<init>(ContentFeatureCollection.java:69)
                at 
org.geotools.data.store.ContentFeatureSource.getFeatures(ContentFeatureSource.java:545)
                at 
org.geotools.data.store.ContentFeatureSource.getFeatures(ContentFeatureSource.java:105)
                at 
utilities.shapeFiles.BN_Shapefile.initialize(BN_Shapefile.java:365)
                at 
utilities.shapeFiles.BN_Shapefile.<init>(BN_Shapefile.java:289)
                at 
module.GeoImageLoader.GeoImageLoader$1.run(GeoImageLoader.java:760)
                at java.base/java.lang.Thread.run(Unknown Source)
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to