Discussion:
[Geoserver-users] CreateStoredQuery issue
Oscar Diago Alonso
2017-05-30 09:54:00 UTC
Permalink
Good morning.

I need to create a stored query for my WFS service. For that, I use the following POST request:

<wfs:CreateStoredQuery
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.opengis.net/wfs/2.0
http://schemas.opengis.net/wfs/2.0/wfs.xsd"
xmlns:cp_inspire="urn:x-inspire:specification:gmlas:CadastralParcels:4.0"
xmlns:fes="http://www.opengis.org/fes/2.0"
xmlns:wfs="http://www.opengis.net/wfs/2.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
service="WFS"
version="2.0.0">
<wfs:StoredQueryDefinition
id='http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet'>
<wfs:Parameter name='CRS' type='xsd:string'/>
<wfs:Parameter name='DataSetIdCode' type='xsd:string'/>
<wfs:Parameter name='DataSetIdNamespace' type='xsd:string'/>
<wfs:Parameter name='Language' type='xsd:string'/>
<wfs:Parameter name="count" type="xsd:integer"></wfs:Parameter>
<wfs:QueryExpressionText
returnFeatureTypes='cp_inspire:CP.CadastralParcel'
language='urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression'
isPrivate='false'>
<wfs:Query typeNames='cp_inspire:CP.CadastralParcel' srsName="${CRS}">
</wfs:Query>
</wfs:QueryExpressionText>
</wfs:StoredQueryDefinition>
</wfs:CreateStoredQuery>

To invoke that request, I have created the script attached to this message. When I run it, I get the following error:

"<ows:ExceptionReport xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:ows=\"http://www.opengis.net/ows/1.1\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" version=\"2.0.0\" xsi:schemaLocation=\"http://www.opengis.net/ows/1.1 http://www.araba.eus:80/geoserver/schemas/ows/1.1.0/owsAll.xsd\">\r\n <ows:Exception exceptionCode=\"OperationParsingFailed\">\r\n <ows:ExceptionText>Request parsing failed\r\n[Assertion failed] - this argument is required; it must not be null</ows:ExceptionText>\r\n </ows:Exception>\r\n</ows:ExceptionReport>\r\n"

Does anyone know where is the problem? Is there another way of creating Stored Queries that i could test?

Thanks for any help provided!

Óscar Diago Alonso
Desarrollador GIS / GIS Developer

Tel: +34 945131372 e-mail: mailto:***@geograma.com
Calle Pintor Clemente Arraiz, 3 Bajo 01008 Vitoria-Gasteiz
Geograma. Expertos en GeoInformación

[cid:***@01D26517.F6475990]
www.geograma.com<http://www.geograma.com/>

De acuerdo con la LO 15/1999, de Protección de Datos, y la Ley 34/2002 (LSSICE), se informa que su dirección de correo electrónico figura en nuestros archivos, al objeto de mantener el contacto y remitirle publicidad e información empresarial sobre las actividades de Geograma, S.L. Si no desea recibir publicidad e información empresarial sobre las actividades de Geograma SL le rogamos que nos lo comunique a la siguiente dirección de correo electrónico: ***@geograma.com<mailto:***@geograma.com> Podrá ejercer los derechos de acceso, cancelación, rectificación y oposición reconocidos por la LOPD mediante solicitud escrita y firmada a Geograma, S.L. a la siguiente dirección C/ Castillo de Eskibel, 2 Bajo de Vitoria (C.P. 01007), adjuntando en todo caso copia de su DNI. En caso de modificación de sus datos deberá notificarlo en la misma dirección, declinando toda responsabilidad para la empresa en caso de no hacerlo. Si no es Ud. el destinatario y ha recibido este mensaje por error, agradecemos que lo comunique inmediatamente al remitente sin difundir, almacenar o copiar su contenido.
Andrea Aime
2017-05-30 12:38:46 UTC
Permalink
Hi,
can you share the full stack trace generated by that request? It can be
found in the log files

Cheers
Andrea
Post by Oscar Diago Alonso
Good morning.
I need to create a stored query for my WFS service. For that, I use the
<wfs:CreateStoredQuery
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.opengis.net/wfs/2.0
http://schemas.opengis.net/wfs/2.0/wfs.xsd"
xmlns:cp_inspire="urn:x-inspire:specification:gmlas:CadastralParcels:4.0"
xmlns:fes="http://www.opengis.org/fes/2.0"
xmlns:wfs="http://www.opengis.net/wfs/2.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
service="WFS"
version="2.0.0">
<wfs:StoredQueryDefinition
id='http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet'>
<wfs:Parameter name='CRS' type='xsd:string'/>
<wfs:Parameter name='DataSetIdCode' type='xsd:string'/>
<wfs:Parameter name='DataSetIdNamespace' type='xsd:string'/>
<wfs:Parameter name='Language' type='xsd:string'/>
<wfs:Parameter name="count" type="xsd:integer"></wfs:Parameter>
<wfs:QueryExpressionText
returnFeatureTypes='cp_inspire:CP.CadastralParcel'
language='urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression'
isPrivate='false'>
<wfs:Query typeNames='cp_inspire:CP.CadastralParcel' srsName="${CRS}">
</wfs:Query>
</wfs:QueryExpressionText>
</wfs:StoredQueryDefinition>
</wfs:CreateStoredQuery>
To invoke that request, I have created the script attached to this
"<ows:ExceptionReport xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"
xmlns:ows=\"http://www.opengis.net/ows/1.1\" xmlns:xsi=\"
http://www.w3.org/2001/XMLSchema-instance\" version=\"2.0.0\"
xsi:schemaLocation=\"http://www.opengis.net/ows/1.1
http://www.araba.eus:80/geoserver/schemas/ows/1.1.0/owsAll.xsd\">\r\n
<ows:Exception exceptionCode=\"OperationParsingFailed\">\r\*n
<ows:ExceptionText>Request parsing failed\r\n[Assertion failed] - this
argument is required; it must not be null</ows:ExceptionText>\r\n
</ows:Exception>\r\n</ows:ExceptionReport>\r\n"*
Does anyone know where is the problem? Is there another way of creating
Stored Queries that i could test?
Thanks for any help provided!
*Óscar Diago Alonso *
*Desarrollador GIS** / **GIS Developer*
Calle Pintor Clemente Arraiz, 3 Bajo 01008 Vitoria-Gasteiz
*Geograma*. Expertos en GeoInformación
*www.geograma.com* <http://www.geograma.com/>
De acuerdo con la LO 15/1999, de Protección de Datos, y la Ley 34/2002
(LSSICE), se informa que su dirección de correo electrónico figura en
nuestros archivos, al objeto de mantener el contacto y remitirle
publicidad e información empresarial sobre las actividades de Geograma,
S.L. Si no desea recibir publicidad e información empresarial sobre las
actividades de Geograma SL le rogamos que nos lo comunique a la siguiente
cancelación, rectificación y oposición reconocidos por la LOPD mediante
solicitud escrita y firmada a Geograma, S.L. a la siguiente dirección C/
Castillo de Eskibel, 2 Bajo de Vitoria (C.P. 01007), adjuntando en todo
caso copia de su DNI. En caso de modificación de sus datos deberá
notificarlo en la misma dirección, declinando toda responsabilidad para la
empresa en caso de no hacerlo. Si no es Ud. el destinatario y ha recibido
este mensaje por error, agradecemos que lo comunique inmediatamente al
remitente sin difundir, almacenar o copiar su contenido.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo Ú consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
Oscar Diago Alonso
2017-05-30 12:52:20 UTC
Permalink
Hi!

Yes, this is the log from that request.

It’s a Geoserver 2.10.0.

2017-05-30 14:47:35,245 INFO [geoserver.wfs] -
Request: getServiceInfo
2017-05-30 14:47:35,260 ERROR [geoserver.ows] -
org.geoserver.wfs.WFSException: Request parsing failed
at org.geoserver.wfs.xml.v2_0.WfsXmlReader.read(WfsXmlReader.java:61)
at org.geoserver.ows.Dispatcher.parseRequestXML(Dispatcher.java:1548)
at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:684)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:258)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:147)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:870)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:158)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
at org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:84)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:152)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:87)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:48)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null
at org.springframework.util.Assert.notNull(Assert.java:115)
at org.springframework.util.Assert.notNull(Assert.java:126)
at org.geoserver.security.SecureCatalogImpl.buildWrapperPolicy(SecureCatalogImpl.java:695)
at org.geoserver.security.InMemorySecurityFilter.evaluate(InMemorySecurityFilter.java:69)
at org.geoserver.security.InMemorySecurityFilter.evaluate(InMemorySecurityFilter.java:23)
at org.geotools.filter.FilterAbstract.eval(FilterAbstract.java:95)
at org.geotools.filter.MultiCompareFilterImpl.evaluate(MultiCompareFilterImpl.java:65)
at org.geotools.filter.AndImpl.evaluate(AndImpl.java:44)
at org.geoserver.catalog.impl.DefaultCatalogFacade$1.apply(DefaultCatalogFacade.java:1193)
at org.geoserver.catalog.impl.DefaultCatalogFacade$1.apply(DefaultCatalogFacade.java:1189)
at com.google.common.collect.Iterators$7.computeNext(Iterators.java:647)
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
at org.geoserver.catalog.util.CloseableIteratorAdapter.hasNext(CloseableIteratorAdapter.java:47)
at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:43)
at org.geoserver.catalog.util.CloseableIteratorAdapter.hasNext(CloseableIteratorAdapter.java:47)
at com.google.common.collect.Iterators$7.computeNext(Iterators.java:645)
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
at org.geoserver.catalog.util.CloseableIteratorAdapter.hasNext(CloseableIteratorAdapter.java:47)
at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:43)
at org.geoserver.catalog.util.CloseableIteratorAdapter.hasNext(CloseableIteratorAdapter.java:47)
at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:43)
at org.geoserver.catalog.util.CloseableIteratorAdapter.hasNext(CloseableIteratorAdapter.java:47)
at org.geoserver.wfs.CatalogNamespaceSupport$1.hasMoreElements(CatalogNamespaceSupport.java:42)
at org.geotools.xml.ParserNamespaceSupport$CompositeEnumeration.hasMoreElements(ParserNamespaceSupport.java:113)
at org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:606)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at org.geotools.xml.Parser.parse(Parser.java:249)
at org.geoserver.wfs.xml.WFSXmlUtils.parseRequest(WFSXmlUtils.java:77)
at org.geoserver.wfs.xml.v2_0.WfsXmlReader.read(WfsXmlReader.java:56)
... 86 more
2017-05-30 14:47:35,276 WARN [catalog.util] - There is code not closing CloseableIterator!!! Auto closing at finalize().

Best regards.

Óscar Diago Alonso
Desarrollador GIS / GIS Developer

Tel: +34 945131372 e-mail: mailto:***@geograma.com
Calle Pintor Clemente Arraiz, 3 Bajo 01008 Vitoria-Gasteiz
Geograma. Expertos en GeoInformación

[GEOGRAMA] [Certification_Badges-EDDA]
www.geograma.com<http://www.geograma.com/>

De acuerdo con la LO 15/1999, de Protección de Datos, y la Ley 34/2002 (LSSICE), se informa que su dirección de correo electrónico figura en nuestros archivos, al objeto de mantener el contacto y remitirle publicidad e información empresarial sobre las actividades de Geograma, S.L. Si no desea recibir publicidad e información empresarial sobre las actividades de Geograma SL le rogamos que nos lo comunique a la siguiente dirección de correo electrónico: ***@geograma.com<mailto:***@geograma.com> Podrá ejercer los derechos de acceso, cancelación, rectificación y oposición reconocidos por la LOPD mediante solicitud escrita y firmada a Geograma, S.L. a la siguiente dirección C/ Castillo de Eskibel, 2 Bajo de Vitoria (C.P. 01007), adjuntando en todo caso copia de su DNI. En caso de modificación de sus datos deberá notificarlo en la misma dirección, declinando toda responsabilidad para la empresa en caso de no hacerlo. Si no es Ud. el destinatario y ha recibido este mensaje por error, agradecemos que lo comunique inmediatamente al remitente sin difundir, almacenar o copiar su contenido.

De: ***@gmail.com [mailto:***@gmail.com] En nombre de Andrea Aime
Enviado el: martes, 30 de mayo de 2017 14:39
Para: Oscar Diago Alonso <***@geograma.com>
CC: geoserver-***@lists.sourceforge.net
Asunto: Re: [Geoserver-users] CreateStoredQuery issue

Hi,
can you share the full stack trace generated by that request? It can be found in the log files

Cheers
Andrea

2017-05-30 11:54 GMT+02:00 Oscar Diago Alonso <***@geograma.com<mailto:***@geograma.com>>:
Good morning.

I need to create a stored query for my WFS service. For that, I use the following POST request:

<wfs:CreateStoredQuery
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.opengis.net/wfs/2.0
http://schemas.opengis.net/wfs/2.0/wfs.xsd"
xmlns:cp_inspire="urn:x-inspire:specification:gmlas:CadastralParcels:4.0"
xmlns:fes="http://www.opengis.org/fes/2.0"
xmlns:wfs="http://www.opengis.net/wfs/2.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
service="WFS"
version="2.0.0">
<wfs:StoredQueryDefinition
id='http://inspire.ec.europa.eu/operation/download/GetSpatialDataSet'>
<wfs:Parameter name='CRS' type='xsd:string'/>
<wfs:Parameter name='DataSetIdCode' type='xsd:string'/>
<wfs:Parameter name='DataSetIdNamespace' type='xsd:string'/>
<wfs:Parameter name='Language' type='xsd:string'/>
<wfs:Parameter name="count" type="xsd:integer"></wfs:Parameter>
<wfs:QueryExpressionText
returnFeatureTypes='cp_inspire:CP.CadastralParcel'
language='urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression'
isPrivate='false'>
<wfs:Query typeNames='cp_inspire:CP.CadastralParcel' srsName="${CRS}">
</wfs:Query>
</wfs:QueryExpressionText>
</wfs:StoredQueryDefinition>
</wfs:CreateStoredQuery>

To invoke that request, I have created the script attached to this message. When I run it, I get the following error:

"<ows:ExceptionReport xmlns:xs=\"http://www.w3.org/2001/XMLSchema\<http://www.w3.org/2001/XMLSchema%5C>" xmlns:ows=\"http://www.opengis.net/ows/1.1\<http://www.opengis.net/ows/1.1%5C>" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\<http://www.w3.org/2001/XMLSchema-instance%5C>" version=\"2.0.0\" xsi:schemaLocation=\"http://www.opengis.net/ows/1.1 http://www.araba.eus:80/geoserver/schemas/ows/1.1.0/owsAll.xsd\">\r\n<http://www.araba.eus:80/geoserver/schemas/ows/1.1.0/owsAll.xsd%5C%22%3E%5Cr%5Cn> <ows:Exception exceptionCode=\"OperationParsingFailed\">\r\n <ows:ExceptionText>Request parsing failed\r\n[Assertion failed] - this argument is required; it must not be null</ows:ExceptionText>\r\n </ows:Exception>\r\n</ows:ExceptionReport>\r\n"

Does anyone know where is the problem? Is there another way of creating Stored Queries that i could test?

Thanks for any help provided!

Óscar Diago Alonso
Desarrollador GIS / GIS Developer

Tel: +34 945131372<tel:+34%20945%2013%2013%2072> e-mail: mailto:***@geograma.com
Calle Pintor Clemente Arraiz, 3 Bajo 01008 Vitoria-Gasteiz
Geograma. Expertos en GeoInformación

[cid:***@01D2D954.532F8870] [cid:***@01D2D954.532F8870]
www.geograma.com<http://www.geograma.com/>

De acuerdo con la LO 15/1999, de Protección de Datos, y la Ley 34/2002 (LSSICE), se informa que su dirección de correo electrónico figura en nuestros archivos, al objeto de mantener el contacto y remitirle publicidad e información empresarial sobre las actividades de Geograma, S.L. Si no desea recibir publicidad e información empresarial sobre las actividades de Geograma SL le rogamos que nos lo comunique a la siguiente dirección de correo electrónico: ***@geograma.com<mailto:***@geograma.com> Podrá ejercer los derechos de acceso, cancelación, rectificación y oposición reconocidos por la LOPD mediante solicitud escrita y firmada a Geograma, S.L. a la siguiente dirección C/ Castillo de Eskibel, 2 Bajo de Vitoria (C.P. 01007), adjuntando en todo caso copia de su DNI. En caso de modificación de sus datos deberá notificarlo en la misma dirección, declinando toda responsabilidad para la empresa en caso de no hacerlo. Si no es Ud. el destinatario y ha recibido este mensaje por error, agradecemos que lo comunique inmediatamente al remitente sin difundir, almacenar o copiar su contenido.




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Geoserver-***@lists.sourceforge.net<mailto:Geoserver-***@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo Ú consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

-------------------------------------------------------
Loading...