Error on first call of source.getBounds()

Description

Geotools version 20.1

Dec 17, 2018 10:40:33 PM org.geotools.resources.NIOUtilities log
SEVERE: Error attempting to close a mapped byte buffer : java.nio.DirectByteBuffer
JVM : 10.0.1 Oracle Corporation
java.lang.IllegalAccessException: class org.geotools.resources.NIOUtilities$1 cannot access class jdk.internal.ref.Cleaner (in module java.base) because module java.base does not export jdk.internal.ref to unnamed module @2e1c8a58
at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:360)
at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:589)
at java.base/java.lang.reflect.Method.invoke(Method.java:556)
at org.geotools.resources.NIOUtilities$1.run(NIOUtilities.java:218)
at org.geotools.resources.NIOUtilities$1.run(NIOUtilities.java:206)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.geotools.resources.NIOUtilities.clean(NIOUtilities.java:205)
at org.geotools.data.PrjFileReader.close(PrjFileReader.java:161)
at org.geotools.data.PrjFileReader.<init>(PrjFileReader.java:90)
at org.geotools.data.PrjFileReader.<init>(PrjFileReader.java:62)
at org.geotools.data.shapefile.ShapefileSetManager.openPrjReader(ShapefileSetManager.java:101)
at org.geotools.data.shapefile.ShapefileFeatureSource.readAttributes(ShapefileFeatureSource.java:523)
at org.geotools.data.shapefile.ShapefileFeatureSource.buildFeatureType(ShapefileFeatureSource.java:479)
at org.geotools.data.shapefile.ShapefileFeatureStore.buildFeatureType(ShapefileFeatureStore.java:137)
at org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:328)
at org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:297)
at org.geotools.data.store.ContentFeatureSource.resolvePropertyNames(ContentFeatureSource.java:1102)
at org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:363)
at org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:352)

Environment

None

Status

Assignee

Unassigned

Reporter

Piotr Lichwała

Priority

Medium
Configure