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

Google Groups | Jared Erickson | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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()

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Integer cannot be cast to com.vividsolutions.jts.geom.Geometry

      at org.geotools.data.shapefile.ShapefileFeatureWriter.write()
    2. org.geotools.data
      DefaultTransaction.commit
      1. org.geotools.data.shapefile.ShapefileFeatureWriter.write(ShapefileFeatureWriter.java:362)
      2. org.geotools.data.shapefile.indexed.IndexedShapefileFeatureWriter.write(IndexedShapefileFeatureWriter.java:102)
      3. org.geotools.data.TransactionStateDiff.applyDiff(TransactionStateDiff.java:257)
      4. org.geotools.data.TransactionStateDiff.commit(TransactionStateDiff.java:148)
      5. org.geotools.data.DefaultTransaction.commit(DefaultTransaction.java:183)
      5 frames
    3. org.catais
      App.main
      1. org.catais.App.main(App.java:84)
      1 frame