[gdal-dev] JNI error for OpenFileGDB driver in Concurrent environment
Even Rouault
even.rouault at spatialys.com
Sat Oct 17 03:09:50 PDT 2020
On samedi 17 octobre 2020 15:44:15 CEST Yang wrote:
> I am using gdal with java binding in my web application to load .gdb data
> through the OpenFileGDB driver, however I found that for a single request,
> it will work as expected, but some JNI related error will occur when
> multiple requests to be served at the same time, like this:
Do you use the same GDAL dataset object concurrently from several threads ? If
so, that's the reason. No GDAL objects can't be used concurrently. If you want
to read from several threads, you need to open one dataset object per thread.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list