Sorry, my error, Must have been a copy/paste error. I don´t really understand how I can do anything to manipulate the xml transaction even if it was wrong. This happens internally in geoserver doesn´t it?
firebug XML 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:insert> <feature:the_geom> <gml:pointmember> <gml:point> <gml:pos>10.540008544922 52.280502319336</gml:pos> </gml:point> </gml:pointmember> </gml:multipoint> </feature:the_geom> </feature:points> </wfs:insert> </wfs:transaction> Geoserver:verbose bugging 01 Mrz 17:38:33 DEBUG [geoserver.filters] - filtering http://maps.zgb.de:8080/geoserver/wfs 01 Mrz 17:38:33 DEBUG [geoserver.filters] - Created BufferedRequestWrapper with String: "10.540008544922 52.280502319336" as buffer 01 Mrz 17:38:33 INFO [geoserver.filters] - 87.139.33.85 "POST /geoserver/wfs?" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729)" "http://maps.zgb.de:8080/geoserver/www/testing/postgis_editing.html" request-size: 588 body: 10.540008544922 52.280502319336 01 Mrz 17:38:33 DEBUG [geoserver.requests] - First 4 bytes of XML doc are : 3C ('<') 77 ('w') 66 ('f') 73 ('s') 01 Mrz 17:38:33 DEBUG [geoserver.requests] - Charset detection phase 1. Inferred encoding: UTF-8 01 Mrz 17:38:33 DEBUG [geoserver.requests] - Invalid(?) XML declaration: <wfs:T. 01 Mrz 17:38:33 DEBUG [geoserver.requests] - Charset detection phase 2. Charset in XML declaration is `null`. 01 Mrz 17:38:33 DEBUG [geoserver.requests] - Trying to create reader basing on existing charset information: `UTF-8`. 01 Mrz 17:38:33 DEBUG [geoserver.ows] - Raw XML request starts with: 10.540008544922 52.280502319336 01 Mrz 17:38:33 INFO [geoserver.wfs] - Request: getServiceInfo 01 Mrz 17:38:33 DEBUG [geotools.xml] - schemaLocation found: http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd 01 Mrz 17:38:33 DEBUG [geotools.xml] - Found override for http://www.opengis.net/wfs: http://schemas.opengis.net/wfs/1.1.0/wfs.xsd ==> jar:file:/home/geoadmin1/geoserver-2.0.2/webapps/geoserver/WEB-INF/lib/wfs-2.0.2.jar!/org/geoserver/wfs/xml/v1_1_0/wfs.xsd 01 Mrz 17:38:33 DEBUG [geoserver.wfs] - Locating FeatureSource uri:'http://www.zgb.de/postgis' name:'points' 01 Mrz 17:38:33 DEBUG [geoserver.wfs] - located FeatureType w/ typeRef 'points:points' and elementName '{http://www.zgb.de/postgis}points' 01 Mrz 17:38:33 DEBUG [geoserver.wfs] - Transasction Insert:net.opengis.wfs.impl.InsertElementTypeImpl@262730 (feature: [SimpleFeatureImpl:points=[SimpleFeatureImpl.Attribute: id<id id=fid-509f0e2a_12e727ffccb_-8000>=null, SimpleFeatureImpl.Attribute: name<name id=fid-509f0e2a_12e727ffccb_-8000>=null, SimpleFeatureImpl.Attribute: value<value id=fid-509f0e2a_12e727ffccb_-8000>=null, SimpleFeatureImpl.Attribute: the_geom<the_geom id=fid-509f0e2a_12e727ffccb_-8000>=]], handle: null, idgen: <unset>, inputFormat: <unset>, srsName: null) 01 Mrz 17:38:33 DEBUG [geoserver.wfs] - Use featureValidation to check contents of insert 01 Mrz 17:38:33 DEBUG [geotools.jdbc] - CREATE CONNECTION 01 Mrz 17:38:33 TRACE [geotools.core] - ENTRY -12.345 01 Mrz 17:38:33 DEBUG [geotools.jdbc] - SELECT "gid","id","name","value",encode(asBinary(force_2d("the_geom"),'XDR'),'base64') as "the_geom" FROM "public"."points" WHERE 0 = 1 01 Mrz 17:38:33 DEBUG [geotools.jdbc] - Setting id to null 01 Mrz 17:38:33 DEBUG [geotools.jdbc] - Setting 0 to null 01 Mrz 17:38:33 DEBUG [geotools.jdbc] - Setting name to null 01 Mrz 17:38:33 DEBUG [geotools.jdbc] - Setting 1 to null 01 Mrz 17:38:33 DEBUG [geotools.jdbc] - Setting value to null 01 Mrz 17:38:33 DEBUG [geotools.jdbc] - Setting 2 to null 01 Mrz 17:38:33 DEBUG [geotools.jdbc] - Setting the_geom to 01 Mrz 17:38:33 DEBUG [geotools.jdbc] - Setting 3 to 01 Mrz 17:38:33 ERROR [geoserver.wfs] - Transaction failed org.geoserver.wfs.WFSTransactionException: Error performing insert at org.geoserver.wfs.InsertElementHandler.execute(InsertElementHandler.java:204) at org.geoserver.wfs.Transaction.execute(Transaction.java:334) at org.geoserver.wfs.Transaction.transaction(Transaction.java:109) at org.geoserver.wfs.DefaultWebFeatureService.transaction(DefaultWebFeatureService.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.geoserver.ows.util.EMFLogger.invoke(EMFLogger.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy19.transaction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:599) at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:230) 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) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:69) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to com.vividsolutions.jts.geom.Geometry at org.geotools.jdbc.JDBCDataStore.insertSQL(JDBCDataStore.java:3245) at org.geotools.jdbc.JDBCDataStore.insert(JDBCDataStore.java:1249) at org.geotools.jdbc.JDBCDataStore.insert(JDBCDataStore.java:1207) at org.geotools.jdbc.JDBCInsertFeatureWriter.write(JDBCInsertFeatureWriter.java:73) at org.geotools.data.InProcessLockingManager$1.write(InProcessLockingManager.java:335) at org.geotools.data.store.ContentFeatureStore.addFeatures(ContentFeatureStore.java:255) at org.vfny.geoserver.global.GeoServerFeatureStore.addFeatures(GeoServerFeatureStore.java:81) at org.geoserver.wfs.InsertElementHandler.execute(InsertElementHandler.java:173) ... 69 more 01 Mrz 17:38:33 INFO [geoserver.wfs] - Request: transaction handle = null service = WFS version = 1.1.0 baseUrl = http://maps.zgb.de:8080/geoserver/ providedVersion = null lockId = null group = [wfs:insert=net.opengis.wfs.impl.InsertElementTypeImpl@262730 (feature: [SimpleFeatureImpl:points=[SimpleFeatureImpl.Attribute: id<id id=fid-509f0e2a_12e727ffccb_-8000>=null, SimpleFeatureImpl.Attribute: name<name id=fid-509f0e2a_12e727ffccb_-8000>=null, SimpleFeatureImpl.Attribute: value<value id=fid-509f0e2a_12e727ffccb_-8000>=null, SimpleFeatureImpl.Attribute: the_geom<the_geom id=fid-509f0e2a_12e727ffccb_-8000>=]], handle: null, idgen: <unset>, inputFormat: <unset>, srsName: null)] insert = [net.opengis.wfs.impl.InsertElementTypeImpl@262730 (feature: [SimpleFeatureImpl:points=[SimpleFeatureImpl.Attribute: id<id id=fid-509f0e2a_12e727ffccb_-8000>=null, SimpleFeatureImpl.Attribute: name<name id=fid-509f0e2a_12e727ffccb_-8000>=null, SimpleFeatureImpl.Attribute: value<value id=fid-509f0e2a_12e727ffccb_-8000>=null, SimpleFeatureImpl.Attribute: the_geom<the_geom id=fid-509f0e2a_12e727ffccb_-8000>=]], handle: null, idgen: <unset>, inputFormat: <unset>, srsName: null)] update = [] delete = [] native = [] releaseAction = ALL 01 Mrz 17:38:33 ERROR [geoserver.ows] - org.geoserver.wfs.WFSException: Error performing insert at org.geoserver.wfs.response.TransactionResponse.v_1_1(TransactionResponse.java:197) at org.geoserver.wfs.response.TransactionResponse.write(TransactionResponse.java:67) at org.geoserver.ows.Dispatcher.response(Dispatcher.java:726) at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:234) 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) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:69) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) 01 Mrz 17:38:33 INFO [gwc.GWCCleanser] - Deleting GWC cache for postgis:points 01 Mrz 17:38:33 INFO [file.FileBlobStore] - /home/geoadmin1/geoserver-2.0.2/bin/../data_dir/gwc/postgis_points does not exist or is not writable 01 Mrz 17:38:33 INFO [gwc.GWCCleanser] - GWC cache for postgis:points deleted successfully 01 Mrz 17:38:33 INFO [geoserver.filters] - 87.139.33.85 "POST /geoserver/wfs?" took 227ms ________________________________ Von: Charles Galpin <[email protected]> An: Robert Buckley <[email protected]> CC: [email protected] Gesendet: Dienstag, den 1. März 2011, 18:09:41 Uhr Betreff: Re: [Geoserver-users] geoserver and postgis: inconsistant Robert, unless it's a cut/paste or conversion issue in your email, the XMl looks invalid. From here, I see no start <feature:points> tag for example. hth, charles On Mar 1, 2011, at 8:11 AM, Robert Buckley wrote: my xml insert looks like this... > ><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:insert> > > <feature:the_geom> > > <gml:pointmember> > <gml:point> > <gml:pos>10.555801391602 52.301788330078</gml:pos> > </gml:point> > </gml:pointmember> > </gml:multipoint> > </feature:the_geom> > <feature:name>test 7</feature:name> > <feature:value>orange</feature:value> > </feature:points> ></wfs:insert> ></wfs:transaction> >
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
