PostgisDataStoreTest fails

Description

For the moment the test has been commented out from the build.

Test failure is:

Testsuite: org.geotools.data.postgis.PostgisDataStoreTest
Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 23,357 sec

Testcase: testFeatureTypes took 4,314 sec
Testcase: testGetReader took 4,179 sec
Testcase: testFilter took 2,207 sec
Testcase: testGeomFilter took 2,209 sec
Testcase: testGetFeatureWriter took 2,446 sec
Testcase: testBadTypeName took 1,918 sec
Testcase: testGetFeaturesWriterModify took 3,139 sec
Testcase: testGetFeaturesWriterAdd took 2,923 sec
Caused an ERROR
SQL Exception writing geometry column
org.geotools.data.DataSourceException: SQL Exception writing geometry column
at org.geotools.data.postgis.PostgisDataStore$PostgisFeatureWriter.doInsert(PostgisDataStore.java:550)
at org.geotools.data.jdbc.JDBCDataStore$JDBCFeatureWriter.write(JDBCDataStore.java:1768)
at org.geotools.data.InProcessLockingManager$1.write(InProcessLockingManager.java:305)
at org.geotools.data.postgis.PostgisDataStoreTest.testGetFeaturesWriterAdd(PostgisDataStoreTest.java:366)
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.sql.SQLException: ERROR: Cannot assign to system attribute 'oid'

at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:131)
at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:505)
at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:320)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:48)
at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:197)
at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:183)
at org.geotools.data.postgis.PostgisDataStore$PostgisFeatureWriter.doInsert(PostgisDataStore.java:542)
... 17 more

Testcase: testGetFeaturesWriterAdd

Environment

None

Activity

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

CodeHaus Comment From: aaime - Time: Sat, 2 Aug 2008 08:26:03 -0500
---------------------
I guess it&#39;s safe to assume this has been fixed long ago (geez, <a href="https://jira.codehaus.org/browse/GEOT-61" title="PostgisDataStoreTest fails" class="issue-link" data-issue-key="GEOT-61"><strike>GEOT-61</strike></a>!)

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Affects versions

Priority

Medium
Configure