2008-11-20 16:46:51,500 ERROR [data.jdbc] - SQL Exception writing geometry
columnERROR: null value in column "zeit" violates not-null constraint
org.postgresql.util.PSQLException: ERROR: null value in column "zeit"
violates not-null constraint
...
2008-11-20 16:46:51,515 WARN [data.jdbc] - Feature writer calling close when
queryData is already closed
2008-11-20 16:46:51,515 ERROR [geoserver.wfs] - Transaction failed
org.geoserver.wfs.WFSTransactionException: Error performing insert
...
Caused by: org.geotools.data.DataSourceException: SQL Exception writing
geometry columnERROR: null value in column "zeit" violates not-null
constraint
...
Caused by: org.postgresql.util.PSQLException: ERROR: null value in column
"zeit" violates not-null constraint
I have deleted the "not null"-constrain in the database but than I get empty
fields and not the default value.
Can anybody please help me?
GeoServer does not know about the default value and just specifies a NULL, in that case the DEFAULT rule you specified does not work anymore.
I don't know if it would be possible to recognize those attributes
with a default and avoid specifying them into the insert in case
there is no value, but the change in the code would not be trivial.
As a workaround you can turn your DEFAULT into a trigger that forces
in the current time on transaction commit.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.