#1 Fri 22 April 2011 14:15
- GeoMax
- Participant occasionnel
- Lieu: Toulouse
- Date d'inscription: 15 Feb 2006
- Messages: 21
[Geoserver] Erreur WFS-T PostGis / Geoserver
Bonjour à tous !
J'ai un problème de WFS-T sur une configuration PostGis / Geoserver 2.0.2 sur un server Ubuntu...
Ma requête :
Code:
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <wfs:Insert> <feature:photoexploreur_polygone xmlns:feature="http://192.168.3.23:8080/VMSRVSIG01_postgis"> <feature:geom> <gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:2154"> <gml:outerBoundaryIs> <gml:LinearRing> <gml:coordinates decimal="." cs="," ts=" ">473113.0133206877,6255500.186454025 473491.92773575603,6254715.390845995 473979.8054236502,6255573.432141554 473113.0133206877,6255500.186454025</gml:coordinates> </gml:LinearRing> </gml:outerBoundaryIs> </gml:Polygon> </feature:geom> <feature:ident>undefined</feature:ident> <feature:couleur>Rouge_P</feature:couleur> <feature:createur>sigmax</feature:createur> <feature:datesaisie>Thu, 21 Apr 2011 15:49:53 GMT</feature:datesaisie> <feature:actif>O</feature:actif> <feature:surface>35.4789 ha</feature:surface> </feature:photoexploreur_polygone> </wfs:Insert> </wfs:Transaction>
La réponse de Geoserver :
Code:
<?xml version="1.0" encoding="UTF-8"?> <wfs:WFS_TransactionResponse version="1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://192.168.3.23:8080/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd"> <wfs:InsertResult> <ogc:FeatureId fid="none"/> </wfs:InsertResult> <wfs:TransactionResult> <wfs:Status> <wfs:FAILED/> </wfs:Status> <wfs:Message>Error performing insert</wfs:Message> </wfs:TransactionResult> </wfs:WFS_TransactionResponse>
<wfs:Message>Error performing insert</wfs:Message>
Le message d'erreur dans les log Geoserver :
Code:
2011-04-21 17:49:57,546 INFO [geoserver.wfs] - Request: getServiceInfo 2011-04-21 17:49:57,585 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) 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 $Proxy17.transaction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) 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:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.NullPointerException at org.geoserver.gwc.GWCTransactionListener.dataStoreChange(GWCTransactionListener.java:61) at org.geoserver.wfs.Transaction$TransactionListenerMux.dataStoreChange(Transaction.java:624) at org.geoserver.wfs.Transaction$TransactionListenerMux.dataStoreChange(Transaction.java:631) at org.geoserver.wfs.InsertElementHandler.execute(InsertElementHandler.java:172) ... 68 more 2011-04-21 17:49:57,586 INFO [geoserver.wfs] - Request: transaction handle = null service = WFS version = 1.0.0 baseUrl = http://192.168.3.23:8080/geoserver/ providedVersion = null lockId = null group = [wfs:insert=net.opengis.wfs.impl.InsertElementTypeImpl@512edb85 (feature: [SimpleFeatureImpl:photoexploreur_polygone=[SimpleFeatureImpl.Attribute: createur<createur id=fid-369b7495_12f78bbe6f4_-783d>=Sigmax, SimpleFeatureImpl.Attribute: datesaisie<datesaisie id=fid-369b7495_12f78bbe6f4_-783d>=Thu, 21 Apr 2011 15:49:53 GMT, SimpleFeatureImpl.Attribute: actif<actif id=fid-369b7495_12f78bbe6f4_-783d>=O, SimpleFeatureImpl.Attribute: couleur<couleur id=fid-369b7495_12f78bbe6f4_-783d>=Rouge_P, SimpleFeatureImpl.Attribute: ident<ident id=fid-369b7495_12f78bbe6f4_-783d>=undefined, SimpleFeatureImpl.Attribute: surface<surface id=fid-369b7495_12f78bbe6f4_-783d>=35.4789 ha, SimpleFeatureImpl.Attribute: geom<geom id=fid-369b7495_12f78bbe6f4_-783d>=POLYGON ((473113.0133206877 6255500.186454025, 473491.92773575603 6254715.390845995, 473979.8054236502 6255573.432141554, 473113.0133206877 6255500.186454025))]], handle: null, idgen: <unset>, inputFormat: <unset>, srsName: null)] insert = [net.opengis.wfs.impl.InsertElementTypeImpl@512edb85 (feature: [SimpleFeatureImpl:photoexploreur_polygone=[SimpleFeatureImpl.Attribute: createur<createur id=fid-369b7495_12f78bbe6f4_-783d>=Sigmax, SimpleFeatureImpl.Attribute: datesaisie<datesaisie id=fid-369b7495_12f78bbe6f4_-783d>=Thu, 21 Apr 2011 15:49:53 GMT, SimpleFeatureImpl.Attribute: actif<actif id=fid-369b7495_12f78bbe6f4_-783d>=O, SimpleFeatureImpl.Attribute: couleur<couleur id=fid-369b7495_12f78bbe6f4_-783d>=Rouge_P, SimpleFeatureImpl.Attribute: ident<ident id=fid-369b7495_12f78bbe6f4_-783d>=undefined, SimpleFeatureImpl.Attribute: surface<surface id=fid-369b7495_12f78bbe6f4_-783d>=35.4789 ha, SimpleFeatureImpl.Attribute: geom<geom id=fid-369b7495_12f78bbe6f4_-783d>=POLYGON ((473113.0133206877 6255500.186454025, 473491.92773575603 6254715.390845995, 473979.8054236502 6255573.432141554, 473113.0133206877 6255500.186454025))]], handle: null, idgen: <unset>, inputFormat: <unset>, srsName: null)] update = [] delete = [] native = [] releaseAction = ALL 2011-04-21 17:49:57,588 INFO [gwc.GWCCleanser] - Deleting GWC cache for VMSRVSIG01_postgis:photoexploreur_polygone 2011-04-21 17:49:57,590 INFO [file.FileBlobStore] - /tmp/tomcat6-tmp/geowebcache/VMSRVSIG01_postgis_photoexploreur_polygone does not exist or is not writable 2011-04-21 17:49:57,590 INFO [gwc.GWCCleanser] - GWC cache for VMSRVSIG01_postgis:photoexploreur_polygone deleted successfully 2011-04-21 17:49:58,518 INFO [geoserver.wfs] - Request: getServiceInfo 2011-04-21 17:49:58,545 INFO [geoserver.wfs] - Request: getFeature handle = null service = WFS version = 1.0.0 baseUrl = http://192.168.3.23:8080/geoserver/ providedVersion = null query = [net.opengis.wfs.impl.QueryTypeImpl@6c84433d (group: null, propertyName: null, function: null, filter: [ geom bbox POLYGON ((0.1179762410140802 43.33268541092459, 0.1179762410140802 43.38076324493066, 0.3159214092552061 43.38076324493066, 0.3159214092552061 43.33268541092459, 0.1179762410140802 43.33268541092459)) ], sortBy: null, featureVersion: null, handle: null, srsName: null, typeName: [{http://192.168.3.23:8080/VMSRVSIG01_postgis}photoexploreur_polygone])] maxFeatures = null outputFormat = GML2 resultType = results traverseXlinkDepth = null traverseXlinkExpiry = null formatOptions = {}
Bon ce que je ne comprends pas trop c'est que la même requête exécuté sur une autre instance de Geoserver (2.0.1 sur un windows server 2008) fonctionne parfaitement...
(même base PostGis...)
Je n'arrive pas a comprendre le log d'erreur... Y a-t-il quelques chose à en tirer ...?
Merci d’avance a ceux qui m'apporteront leur aide...
Hors ligne