java.io.IOException: Current fid index is null, next must be called before write()

Google Groups | Jared Erickson | 4 years ago
  1. 0

    Re: [GeoScript] Unable to export layer to shapefile

    Google Groups | 4 years ago | Jared Erickson
    java.io.IOException: Current fid index is null, next must be called before write()
  2. 0

    Spatial index / Shapefile / Corrupted by empty polygon

    GitHub | 3 years ago | fxprunayre
    java.io.IOException: Current fid index is null, next must be called before write()
  3. 0
    Download the winutils.exe for your Hadoop version: https://github.com/steveloughran/winutils . Save it to HADOOP_HOME/bin
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Bad input data (not properly separated)
  6. 0
    If you are using maven you'd like to exclude your binaries from filtering process.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

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

      at org.geotools.data.shapefile.indexed.IndexedFidWriter.write()
    2. org.geotools.data
      FeatureStore$addFeatures.call
      1. org.geotools.data.shapefile.indexed.IndexedFidWriter.write(IndexedFidWriter.java:252)
      2. org.geotools.data.shapefile.indexed.IndexedShapefileFeatureWriter.write(IndexedShapefileFeatureWriter.java:101)
      3. org.geotools.data.shapefile.ShapefileFeatureWriter.close(ShapefileFeatureWriter.java:231)
      4. org.geotools.data.shapefile.indexed.IndexedShapefileFeatureWriter.close(IndexedShapefileFeatureWriter.java:109)
      5. org.geotools.data.InProcessLockingManager$1.close(InProcessLockingManager.java:350)
      6. org.geotools.data.AbstractFeatureStore.addFeatures(AbstractFeatureStore.java:329)
      7. org.geotools.data.directory.DirectoryFeatureStore.addFeatures(DirectoryFeatureStore.java:104)
      8. org.geotools.data.FeatureStore$addFeatures.call(Unknown Source)
      8 frames
    3. geoscript.workspace
      Workspace$add.call
      1. geoscript.workspace.Workspace.add(Workspace.groovy:152)
      2. geoscript.workspace.Workspace.add(Workspace.groovy)
      3. geoscript.workspace.Workspace$add$0.callCurrent(Unknown Source)
      4. geoscript.workspace.Workspace.add(Workspace.groovy:127)
      5. geoscript.workspace.Workspace$add.call(Unknown Source)
      5 frames
    4. Unknown
      exportPostgisToShapefile.run
      1. exportPostgisToShapefile.run(exportPostgisToShapefile.groovy:38)
      1 frame