Thanks for the help.

I think I have to ask a few questions about logging first.

In geoserver < global setting I have changed the logging profile to verbose. 
it doesn´t state where the log file is...but I guess it is the one located in 
data_dir/logs/geoserver.log (ps..I had to first make this file)
There is another log - the request log...


I am using this code to insert.

Ext.onReady(function() {

            var saveStrategy = new OpenLayers.Strategy.Save();

            var layer = new OpenLayers.Layer.Vector("vector", {
            strategies: [new OpenLayers.Strategy.Fixed(), saveStrategy],
            protocol: new OpenLayers.Protocol.WFS({
               url: "http://maps.zgb.de:8080/geoserver/wfs?";,
              version: "1.1.0",
              featureType: "points",
              featureNS: "http://www.zgb.de/postgis";,
              srsName: "EPSG:4326",
           })
        });


(taken from an opengeo snippet)

I guess this means i am using "WFS version 1.1.0"

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>


The Geoserver demo page and the  "WFS_transactionInsert.xml" looks totally 
different. ..for example in "WFS_transactionInsert.xml" the namespace is in the 
header, the version  is 1.0.0, and the Schema location has the 
DescribeFeatureType?typename etc etc in it.



Andrea wrote.."Please provide the entire stack trace, the part you pasted is 
the 
non useful one. Always include all the "caused by"
sections as well."....











________________________________
Von: Rahkonen Jukka <[email protected]>
An: Robert Buckley <[email protected]>; 
[email protected]
Gesendet: Dienstag, den 1. März 2011, 9:21:49 Uhr
Betreff: Re: [Geoserver-users] geoserver and postgis: inconsistant

 
Hi,
 
My first guess is that your insert statement is wrong.   Did you create it by 
hand or was is generated by some ready made  application?  For example it looks 
like you are trying to do insert against  WFS version 1.0.0 which is using GML2 
but you are giving the geometry as GML3 as  in WFS version 1.1.0.  Also it 
looks 
like there is for example closing  </gml:multipoint> without starting one but 
maybe it is just missing from  your request excerpt.
Perhaps having a look at the Geoserver demo page and the  
WFS_transactionInsert.xml example could give some help.  It will be also  
much easier to help you in the future if you capture and mail a full  request 
that is sent for Geoserver in xml format. 

 
-Jukka Rahkonen-
 
 
 
 Robert Buckley  wrote:

Hi,
>
>Ubuntu    10.04
>geoserver-2.0.2
>postgresql 8.4
>postgis
>
>I am experiencing    the following:
>
>
>I can edit a shapefile through geoserver
>I can edit a postgis    database geometry in Quantum GIS
>..but I can´t edit the same postgis db    geometry through geoserver.
>
>Anyone have any ideas why    not?
>
>yours,
>
>Robert
>
>
>firebug:POST
>XML
>
><wfs:insert>
>
><feature:the_geom>
>
><gml:pointmember>
><gml:point>
><gml:pos>10.610046386719    52.270202636719</gml:pos>
></gml:point>
></gml:pointmember>
></gml:multipoint>
></feature:the_geom>
></feature:points>
></wfs:insert>
></wfs:transaction>
>  
>firebug:response
>
><?xml version="1.0"    encoding="UTF-8"?>
><ows:ExceptionReport    version="1.0.0"
>  xsi:schemaLocation="http://www.opengis.net/ows 
>http://maps.zgb.de: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</ows:ExceptionText>
>     </ows:Exception>
></ows:ExceptionReport>
>
>geoserver    error:
>01 Mrz 07:55:09 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:73)
>           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)
>
>

------------------------------------------------------------------------------
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

Reply via email to