[Geoserver-users] Post GIS WFS-T Insert Feature is read-only error

Hello GeoServer Users,

I am using the latest 1.6.x war (downloaded) in tomcat and creating Features from a Post GIS 1.3.2 data source.
When I attempt to insert a feature through the sample requests page, I get the error:
org.geoserver.wfs.WFSTransactionException: {http://schemas.c2.ngc.com/wfs/2006/01/MIL-STD-2525B}SDE.MILSTD2525_SYMBOLS is read-only

at org.geoserver.wfs.Transaction.execute(Transaction.java:267)
at org.geoserver.wfs.Transaction.transaction(Transaction.java:104)
at org.geoserver.wfs.DefaultWebFeatureService.transaction(DefaultWebFeatureService.java:156)

Is there something simple I am overlooking when configuring GeoServer?
Also see the same with 1.6.3 war (downloaded) and 1.6.0-RC3 (built from src).
This worked ok with 1.4.0-RC5 war (built from src).

Attached are my services.xml, catalog.xml and geoserver.log, the WFS-T xml I posted and how I setup Post GIS/postgres.

Thanks,
Mike

<<WFS_singleTransationalInsertSDE.MILSTD2525_SYMBOLS.xml>> <<services.xml>> <<catalog.xml>> <<geoserver.log>>

Michael L. Runnals
Software Engineer
Northrop Grumman
12350 Jefferson Ave.
Newport News, VA 23602
757.249.1234 ex 385

WFS_singleTransationalInsertSDE.MILSTD2525_SYMBOLS.xml (1.92 KB)

services.xml (6.51 KB)

catalog.xml (8.19 KB)

geoserver.log (83.6 KB)

Runnals, Mike ha scritto:

Hello GeoServer Users,

I am using the latest 1.6.x war (downloaded) in tomcat and creating Features from a Post GIS 1.3.2 data source.
When I attempt to insert a feature through the sample requests page, I get the error:
org.geoserver.wfs.WFSTransactionException: {_http://schemas.c2.ngc.com/wfs/2006/01/MIL-STD-2525B\}SDE.MILSTD2525_SYMBOLS_ is read-only

Do you have a primary key in that table? We cannot generate a feature id out of it without it, and that's the usual reason why a feature type
becomes read only.

Why it allowed you to perform the insert in in 1.4.0, I don't know... it shouldn't have.

Cheers
Andrea

Yep, that was it. Added the primary key at works great now.
Thanks!

-Mike

-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Saturday, April 26, 2008 4:37 AM
To: Runnals, Mike
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Post GIS WFS-T Insert Feature is
read-only error

Runnals, Mike ha scritto:

Hello GeoServer Users,

I am using the latest 1.6.x war (downloaded) in tomcat and creating
Features from a Post GIS 1.3.2 data source.
When I attempt to insert a feature through the sample requests page, I

get the error:
org.geoserver.wfs.WFSTransactionException:
{_http://schemas.c2.ngc.com/wfs/2006/01/MIL-STD-2525B\}SDE.MILSTD2525_S
YMBOLS_
is read-only

Do you have a primary key in that table? We cannot generate a feature id
out of it without it, and that's the usual reason why a feature type
becomes read only.

Why it allowed you to perform the insert in in 1.4.0, I don't know... it
shouldn't have.

Cheers
Andrea