Shapefile DataStore fails unit tests

Description

Shapefile datastoretest fails in test testGeometriesWriting with the following error:

Testcase: testGeometriesWriting took 0.047 sec
Caused an ERROR
Error in point3d
java.lang.Exception: Error in point3d
at org.geotools.data.shapefile.ShapefileDataStoreTest.testGeometriesWriting(ShapefileDataStoreTest.java:171)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Caused by: java.io.IOException: Shp has extra record
at org.geotools.data.shapefile.ShapefileDataStore$Reader.hasNext(ShapefileDataStore.java:302)
at org.geotools.data.FIDFeatureReader.hasNext(FIDFeatureReader.java:132)
at org.geotools.data.shapefile.ShapefileDataStore$Writer.next(ShapefileDataStore.java:647)
at org.geotools.data.shapefile.ShapefileDataStoreTest.writeFeatures(ShapefileDataStoreTest.java:190)
at org.geotools.data.shapefile.ShapefileDataStoreTest.runWriteReadTest(ShapefileDataStoreTest.java:215)
at org.geotools.data.shapefile.ShapefileDataStoreTest.testGeometriesWriting(ShapefileDataStoreTest.java:169)
... 14 more

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:16 PM

CodeHaus Comment From: jmacgill - Time: Tue, 11 Nov 2003 15:42:50 -0600
---------------------
Shapefile componet created so that this bug can be assigned to it

codehaus
April 10, 2015, 3:16 PM

CodeHaus Comment From: ianschneider - Time: Wed, 12 Nov 2003 10:14:23 -0600
---------------------
Cannot duplicate on Redhat9.

codehaus
April 10, 2015, 3:16 PM

CodeHaus Comment From: ianschneider - Time: Wed, 12 Nov 2003 14:03:21 -0600
---------------------
Resolved by fixing use of temporary files. See work log.

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Fix versions

Affects versions

Priority

Medium
Configure