With a ~ 50 Mb SHP file I’m getting this exception on WMS request when the store has memory mapped buffers activated.
It’s gone when memory mapped buffers are disabled.
04/06/2019 13:43:06 Caused by: java.lang.IllegalArgumentException: newPosition > limit: (15787184 > 10776560)
04/06/2019 13:43:06 at java.base/java.nio.Buffer.createPositionException(Buffer.java:318)
04/06/2019 13:43:06 at java.base/java.nio.Buffer.position(Buffer.java:293)
04/06/2019 13:43:06 at java.base/java.nio.ByteBuffer.position(ByteBuffer.java:1086)
04/06/2019 13:43:06 at java.base/java.nio.MappedByteBuffer.position(MappedByteBuffer.java:226)
04/06/2019 13:43:06 at java.base/java.nio.MappedByteBuffer.position(MappedByteBuffer.java:67)
04/06/2019 13:43:06 at org.geotools.data.shapefile.index.quadtree.fs.FileSystemNode$ScrollingBuffer.goTo(FileSystemNode.java:290)
04/06/2019 13:43:06 at org.geotools.data.shapefile.index.quadtree.fs.FileSystemNode.getSubNode(FileSystemNode.java:122)
04/06/2019 13:43:06 at org.geotools.data.shapefile.index.quadtree.LazySearchIterator.fillCache(LazySearchIterator.java:112)
04/06/2019 13:43:06 at org.geotools.data.shapefile.index.quadtree.LazySearchIterator.hasNext(LazySearchIterator.java:89)
04/06/2019 13:43:06 at org.geotools.data.shapefile.ShapefileFeatureSource.getReaderInternal(ShapefileFeatureSource.java:349)
04/06/2019 13:43:06 at org.geotools.data.shapefile.ShapefileFeatureStore.getReaderInternal(ShapefileFeatureStore.java:132)
04/06/2019 13:43:06 at org.geotools.data.store.ContentFeatureSource.getReader(ContentFeatureSource.java:609)
04/06/2019 13:43:06 at org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:163)
04/06/2019 13:43:06 at org.geoserver.feature.RetypingFeatureCollection.features(RetypingFeatureCollection.java:45)
04/06/2019 13:43:06 at org.geoserver.feature.RetypingFeatureCollection.features(RetypingFeatureCollection.java:31)
04/06/2019 13:43:06 at org.geotools.data.crs.ForceCoordinateSystemFeatureResults.openIterator(ForceCoordinateSystemFeatureResults.java:92)
04/06/2019 13:43:06 at org.geotools.feature.collection.AbstractFeatureCollection.features(AbstractFeatureCollection.java:65)
04/06/2019 13:43:06 at org.geotools.feature.collection.AbstractFeatureCollection.features(AbstractFeatureCollection.java:50)
|