[Geoserver-devel] [JIRA] (GEOS-9234) memory mapped buffers - java.lang.IllegalArgumentException: newPosition > limit

François Van Der Biest created an issue

GeoServer / BugGEOS-9234

memory mapped buffers - java.lang.IllegalArgumentException: newPosition > limit

Issue Type:

BugBug

Affects Versions:

2.15.0

Assignee:

Unassigned

Created:

04/Jun/19 2:03 PM

Priority:

MediumMedium

Reporter:

François Van Der Biest

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)

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100103-sha1:fcba571)

Atlassian logo