java.io.IOException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7445

  • 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.TransactionStateDiff.applyDiff(TransactionStateDiff.java:277) at org.geotools.data.TransactionStateDiff.commit(TransactionStateDiff.java:148) at org.geotools.data.DefaultTransaction.commit(DefaultTransaction.java:183) at org.catais.App.main(App.java:84) Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to com.vividsolutions.jts.geom.Geometry at org.geotools.data.shapefile.ShapefileFeatureWriter.write(ShapefileFeatureWriter.java:362) at org.geotools.data.shapefile.indexed.IndexedShapefileFeatureWriter.write(IndexedShapefileFeatureWriter.java:102) at org.geotools.data.TransactionStateDiff.applyDiff(TransactionStateDiff.java:257) ... 3 more

    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’re the first here who have seen this exception.