Jerome Freyre ha scritto: > Hi Kris, > > It seems you are right... I tried to update only one column at time. > > It works for all column except those one: > <wfs:Property> > <wfs:Name>the_geom</wfs:Name> > <wfs:Value> > <gml:Point > srsName="http://www.opengis.net/gml/srs/epsg.xml#EPSG:21781"> > <gml:pos>538698.2299984342 > 182479.15984712465</gml:pos> > </gml:Point> > </wfs:Value> > </wfs:Property> > EXCEPTION: > org.xml.sax.SAXParseException: The prefix "gml" for element > "gml:Point" is not bound. > The prefix "gml" for element "gml:Point" is not bound. > > <wfs:Property> > <wfs:Name>rue</wfs:Name> > <wfs:Value>COIN DE TERRE, Rue du</wfs:Value> > </wfs:Property> > EXCEPTION: > org.geoserver.wfs.WFSException: update error > at > org.geoserver.wfs.response.v1_1_0.TransactionResponse.write(TransactionResponse.java:49) > at org.geoserver.ows.Dispatcher.response(Dispatcher.java:712) > at > org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:216) > at > org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) > at > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) > at > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) > at > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) > ..... > > Do you have an idea for those exception?
It would seem the gml prefix has no declaration in the document? In fact: <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"> <wfs:Update typeName="topp:lumin"> <wfs:Property> <wfs:Name>the_geom</wfs:Name> <wfs:Value> <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#EPSG:21781"> <gml:pos>538698.2299984342 182479.15984712465</gml:pos> </gml:Point> </wfs:Value> does not contain xmlns:gml="http://www.opengis.net/gml". Yet, I guess it should be imported via the WFS declaration. Btw, which version of GeoServer and OpenLayers are you using? Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users