java.io.IOException

Current fid index is null, next must be called before write()

Solutions on the web7444

  • via Google Groups by Jared Erickson, 6 months ago
    Current fid index is null, next must be called before write()
  • Current fid index is null, next must be called before write()
  • via Stack Overflow by Mydory
    , 1 year ago
    Lob read/write functions called while another read/write is in progress: getBytes()
  • Stack trace

    • java.io.IOException: Current fid index is null, next must be called before write() at org.geotools.data.shapefile.indexed.IndexedFidWriter.write(IndexedFidWriter.java:252) at org.geotools.data.shapefile.indexed.IndexedShapefileFeatureWriter.write(IndexedShapefileFeatureWriter.java:101) at org.geotools.data.shapefile.ShapefileFeatureWriter.close(ShapefileFeatureWriter.java:231) at org.geotools.data.shapefile.indexed.IndexedShapefileFeatureWriter.close(IndexedShapefileFeatureWriter.java:109) at org.geotools.data.InProcessLockingManager$1.close(InProcessLockingManager.java:350) at org.geotools.data.AbstractFeatureStore.addFeatures(AbstractFeatureStore.java:329) at org.geotools.data.directory.DirectoryFeatureStore.addFeatures(DirectoryFeatureStore.java:104) at org.geotools.data.FeatureStore$addFeatures.call(Unknown Source) at geoscript.workspace.Workspace.add(Workspace.groovy:152) at geoscript.workspace.Workspace.add(Workspace.groovy) at geoscript.workspace.Workspace$add$0.callCurrent(Unknown Source) at geoscript.workspace.Workspace.add(Workspace.groovy:127) at geoscript.workspace.Workspace$add.call(Unknown Source) at exportPostgisToShapefile.run(exportPostgisToShapefile.groovy:38)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.