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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by fxprunayre
, 2 years ago
Current fid index is null, next must be called before write()
via Google Groups by Jared Erickson, 1 year ago
Current fid index is null, next must be called before write()
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)
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.