Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a DrawFeature tool.

create= new OpenLayers.Control.DrawFeature(myVecLayer,

I have a store.

st = new GeoExt.data.FeatureStore({
    layer: myVecLayer,
    fields: [
        {name: 'id', type: 'int'},
        {name: 'mydata', type: 'String'},
     proxy: new GeoExt.data.ProtocolProxy({
        protocol: new OpenLayers.Protocol.WFS({
            version: "1.0.0",
            url: "http://localhost:8080/geoserver/wfs",
            featureType: "filedata_temp",
            featureNS: "http://www.opengeospatial.net/cite",
    autoLoad: true

I start drawing

for(var i=0;i<create_cont.length;i++){

After I put attributes to feature and save result


But it's not saved.


<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0"  xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <feature:filedata_temp xmlns:feature="http://www.opengeospatial.net/cite">
    <gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913">
       <gml:posList>6756846.305626001 7731074.3336396 6756578.776027001 7730338.6272425 6757696.667564999 7730118.8707862 6758441.928590998 7730978.7873543 6756846.305626001 7731074.3336396</gml:posList>


<ows:ExceptionReport version="1.0.0" xsi:schemaLocation="http://www.opengis.net/ows http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">
 <ows:Exception exceptionCode="InvalidParameterValue">
  <ows:ExceptionText>Error performing insert: Error inserting features</ows:ExceptionText>

What am I doing wrong?

share|improve this question
It was a PostgresSql bug. I have a two tables whis triggers. If i insert data in first table trigger insert data in second too. But if trigger do this second table's trigger insert data in first table etc. So all what i write in code works fine. –  Kliver Max Aug 3 '12 at 7:02
If that is the solution to this problem could you post it as an answer, see meta.gis.stackexchange.com/questions/848/… –  Rob Quincey Aug 4 '12 at 21:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.