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