Hi Philipp,
so this is happening only when using the OGC API while cascading a remote
WFS server?
I have an example here using postgis, it's working properly:
http://vtp2.geo-solutions.it/geoserver/ogc/features/collections/syria_vtp:building_s/items?f=text%2Fhtml&limit=50

If it's limited to WFS cascading, please open a ticket here, possibly
including the capabilities link of a server causing the issue (it may well
be that
you can reproduce it using another GeoServer running locally, that would be
the best case if you cannot share the capabilities link of the server
you're using):
https://osgeo-org.atlassian.net/projects/GEOS/summary

Cheers
Andrea

On Wed, Mar 4, 2020 at 4:04 PM Philipp Opitz via Geoserver-users <
[email protected]> wrote:

> Hello There,
>
>
>    - I have some Problems using WFS as data basis. There is no problem
>    creating a new data store, no problem publishing layers, no problem in the
>    layer preview in GML.
>    - The WFS and the features are completely valid.
>    -
>    - When i want to access the Features via the OGC API
>    (collections/{collectionId}/items?f=text/html&limit=50) i get the following
>    error message. There is no such problem when i use Shape files as data
>    basis.
>    - Could you help me interpret their meaning?
>    -
>    - Thank you for your help!
>
>
> *Apache Tomcat:*
> apache-tomcat-8.5.50
>
>
> *Geoserver:*
>
>    - Version
>    2.17-SNAPSHOT
>    Git Version
>    667a9cfa70d2e34760ac488e1e901fa75274b343
>    Build-Datum
>    05-Feb-2020 07:35
>    GeoTools Version
>    23-SNAPSHOT (rev 87c989a42c85a08d4cf1f1085ab2300d4d249166)
>    GeoWebCache Version
>    1.17-SNAPSHOT (rev
>    
> c5ee18696fc707fa464d2dadd97f1b2e08a1827c/c5ee18696fc707fa464d2dadd97f1b2e08a1827c)
>    -
> - *Community Module:*
>    - name
>    ogcapi-plugin
>    Build-Datum
>    05-Feb-2020
>    - *Browser Response:*{
>        "code": "NoApplicableCode",
>        "description": "Parsing failed for FeatureCollection:
>    java.lang.RuntimeException: Unable to set property: boundedBy for eobject: 
> {
>    http://www.opengis.net/wfs/2.0}FeatureCollectionType\nUnable to set
>    property: boundedBy for eobject: {
>    http://www.opengis.net/wfs/2.0}FeatureCollectionType\njava.lang.String
>    cannot be cast to net.opengis.wfs20.EnvelopePropertyType"
>    }
>
> *Server Protocol:*
> 2020-03-04 10:31:26,908 ERROR [geoserver.api] - Failed to dispatch API
> request
> java.lang.RuntimeException: Parsing failed for FeatureCollection:
> java.lang.RuntimeException: Unable to set property: boundedBy for eobject: {
> http://www.opengis.net/wfs/2.0}FeatureCollectionType
> at org.geotools.xsd.impl.ParseExecutor.visit(ParseExecutor.java:153)
> at
> org.geotools.xsd.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:220)
> at org.geotools.xsd.impl.BindingWalker.walk(BindingWalker.java:186)
> at
> org.geotools.xsd.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java:232)
> at org.geotools.xsd.impl.ParserHandler.endElement(ParserHandler.java:778)
> at org.geotools.xsd.PullParser.parse(PullParser.java:105)
> at
> org.geotools.data.wfs.internal.parsers.PullParserFeatureReader.parse(PullParserFeatureReader.java:95)
> at
> org.geotools.data.wfs.internal.parsers.PullParserFeatureReader.parse(PullParserFeatureReader.java:46)
> at org.geotools.data.wfs.WFSFeatureReader.next(WFSFeatureReader.java:84)
> at org.geotools.data.wfs.WFSFeatureReader.next(WFSFeatureReader.java:32)
> at org.geotools.data.ReTypeFeatureReader.next(ReTypeFeatureReader.java:167)
> at org.geotools.data.ReTypeFeatureReader.next(ReTypeFeatureReader.java:55)
> at
> org.geotools.data.crs.ForceCoordinateSystemFeatureReader.next(ForceCoordinateSystemFeatureReader.java:131)
> at
> org.geotools.data.crs.ForceCoordinateSystemFeatureReader.next(ForceCoordinateSystemFeatureReader.java:56)
> at
> org.geotools.data.SimpleFeatureReaderBrige.next(SimpleFeatureReaderBrige.java:43)
> at
> org.geotools.data.SimpleFeatureReaderBrige.next(SimpleFeatureReaderBrige.java:29)
> at
> org.geotools.data.sort.MergeSortDumper.getDelegateReader(MergeSortDumper.java:132)
> at
> org.geotools.data.sort.MergeSortDumper.getDelegateReader(MergeSortDumper.java:77)
> at
> org.geotools.data.sort.SortedFeatureReader.<init>(SortedFeatureReader.java:74)
> at
> org.geotools.data.store.ContentFeatureSource.getReader(ContentFeatureSource.java:639)
> at
> org.geotools.data.store.ContentFeatureCollection.size(ContentFeatureCollection.java:239)
> at
> org.geotools.feature.collection.DecoratingSimpleFeatureCollection.size(DecoratingSimpleFeatureCollection.java:108)
> at
> org.geotools.data.crs.ReprojectFeatureResults.size(ReprojectFeatureResults.java:118)
> at org.geoserver.wfs.GetFeature.run(GetFeature.java:686)
> at org.geoserver.api.features.FeatureService.items(FeatureService.java:301)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.geoserver.api.APIConfigurationSupport$APIInvocableHandlerMethod.doInvoke(APIConfigurationSupport.java:57)
> at
> org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
> at
> org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
> at
> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
> at
> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800)
> at
> org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
> at
> org.geoserver.api.APIDispatcher.handleRequestInternal(APIDispatcher.java:275)
> at
> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:177)
> at
> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:52)
> at
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
> at
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
> at
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:998)
> at
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:890)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
> at
> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:875)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:26)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:69)
> at
> org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:73)
> at
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66)
> at
> org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:41)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:37)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
> at
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
> at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
> at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
> at
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74)
> at
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
> at
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
> at
> org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
> at
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74)
> at
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
> at
> org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:51)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
> at
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
> 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:74)
> at
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
> at
> org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:81)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
> at
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:70)
> at
> org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
> at
> org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:52)
> at
> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:74)
> at
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
> at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
> at
> org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
> at
> org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
> at
> org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:142)
> at
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
> at
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:101)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.geoserver.filters.XFrameOptionsFilter.doFilter(XFrameOptionsFilter.java:79)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:47)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:46)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:42)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
> at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
> at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
> at
> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:609)
> at
> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
> at
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:810)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1623)
> at
> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.RuntimeException: Unable to set property: boundedBy
> for eobject: {http://www.opengis.net/wfs/2.0}FeatureCollectionType
> at
> org.geotools.xsd.AbstractComplexEMFBinding.setProperty(AbstractComplexEMFBinding.java:280)
> at
> org.geotools.wfs.v2_0.FeatureCollectionTypeBinding.setProperty(FeatureCollectionTypeBinding.java:130)
> at
> org.geotools.xsd.AbstractComplexEMFBinding.setProperties(AbstractComplexEMFBinding.java:187)
> at
> org.geotools.xsd.AbstractComplexEMFBinding.parse(AbstractComplexEMFBinding.java:131)
> at
> org.geotools.wfs.v2_0.FeatureCollectionTypeBinding.parse(FeatureCollectionTypeBinding.java:90)
> at org.geotools.xsd.impl.ParseExecutor.visit(ParseExecutor.java:144)
> ... 131 more
> Caused by: java.lang.ClassCastException: java.lang.String cannot be cast
> to net.opengis.wfs20.EnvelopePropertyType
> at
> net.opengis.wfs20.impl.SimpleFeatureCollectionTypeImpl.eSet(SimpleFeatureCollectionTypeImpl.java:181)
> at
> net.opengis.wfs20.impl.FeatureCollectionTypeImpl.eSet(FeatureCollectionTypeImpl.java:496)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1071)
> at org.geotools.xsd.EMFUtils.set(EMFUtils.java:62)
> at
> org.geotools.xsd.AbstractComplexEMFBinding.setProperty(AbstractComplexEMFBinding.java:215)
> ... 136 more
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

Regards, Andrea Aime == 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
------------------------------------------------------- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to