Thank you! As i do not have any java skills it is maybe better not to provide a patch ;)
At the moment we are trying to fix the capabilities document. Additional i tried to change the wfs strategy to 'unstrict' via the web-formular, which i thougth matches maybe better then 'strict'. 2020-02-26 08:56:36,161 DEBUG [org.geotools.data.ows] - Executed request to URL: http://192.168.1.125:8000/wfs?REQUEST=GetCapabilities&VERSION=2.0.2&SERVICE=WFS 2020-02-26 08:56:36,161 WARN [org.geotools.data.wfs.internal] - Could not handle wfs strategy override nonstrict proceeding with autodetection 2020-02-26 08:56:36,161 DEBUG [org.geotools.data.wfs.internal] - Using WFS Strategy: org.geotools.data.wfs.internal.v2_0.StrictWFS_2_0_Strategy Why is it not possible to change this? it always ends with autodetection, which uses at the end the default strategy. Is it possible to change this default setting? Regards Uwe Am Di., 25. Feb. 2020 um 18:14 Uhr schrieb Andrea Aime < andrea.a...@geo-solutions.it>: > Hi Uwe, > the line points at this code: > > > https://github.com/geotools/geotools/blob/21.1/modules/unsupported/wfs-ng/src/main/java/org/geotools/data/wfs/internal/v2_0/StrictWFS_2_0_Strategy.java#L643 > > Agree with Mark, it seems related to the output format, the code is > looking for an "allowed values" entry that is not found > (and it seems like it ought to to be there, or at least, the code assumes > to always find it). Not sure what's the case here. > > Mind, the WFS store is, as you can see by the link, unsupported, so it's > probably quicker to work around its limitations rather > than get a fix... but if you want to contribute a fix, we're surely happy > to get a pull request > <https://github.com/geotools/geotools/blob/master/CONTRIBUTING.md>. > > Cheers > Andrea > > > On Tue, Feb 25, 2020 at 1:52 PM Uwe Seher <uwe.se...@gmail.com> wrote: > >> Hello! >> I am trying to add a wfs build by ourself as a wfs-ng datasource. This >> work just to the point when i try to create a layer from the datasource. >> At this moment the following error occurs (full stacktrace as file): >> >> Caused by: java.lang.NullPointerException >> at >> org.geotools.data.wfs.internal.v2_0.StrictWFS_2_0_Strategy.findParameters(StrictWFS_2_0_Strategy.java:643) >> at >> org.geotools.data.wfs.internal.v2_0.StrictWFS_2_0_Strategy.getServerSupportedOutputFormats(StrictWFS_2_0_Strategy.java:529) >> at >> org.geotools.data.wfs.internal.AbstractWFSStrategy.getDefaultOutputFormat(AbstractWFSStrategy.java:377) >> at org.geotools.data.wfs.internal.WFSRequest.<init>(WFSRequest.java:73) >> at >> org.geotools.data.wfs.internal.DescribeFeatureTypeRequest.<init>(DescribeFeatureTypeRequest.java:24) >> at >> org.geotools.data.wfs.internal.WFSClient.createDescribeFeatureTypeRequest(WFSClient.java:358) >> at >> org.geotools.data.wfs.WFSDataStore.getRemoteFeatureType(WFSDataStore.java:203) >> at >> org.geotools.data.wfs.WFSDataStore.getRemoteSimpleFeatureType(WFSDataStore.java:262) >> at >> org.geotools.data.wfs.WFSFeatureSource.buildFeatureType(WFSFeatureSource.java:364) >> at >> org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:327) >> at >> org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:296) >> at >> org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:105) >> at >> org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:342) >> at >> org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:325) >> at >> org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:413) >> ... 123 more >> >> When i add the wfs in QGIS everything works, also the getCapabilities via >> browser. I am running geoserver 2.15.1 on tomcat9 (openJDK). >> I added the full stacktrace m the datasource-definition and the >> getCapabilities as files below. >> Thank you for your help in advance >> >> Uwe Seher >> >> Build-Informationen >> >> - Version2.15.1 >> - Git Version6028a3cc138224e46b5bf949730043d15ef6a370 >> - Build-Datum29-Apr-2019 07:40 >> - GeoTools Version21.1 (rev 5df58c1ab9b9585655b2fc132e8f2b15c8bf5dae) >> - GeoWebCache Version1.15.1 (rev >> >> af748c033b889e0ffe68977c203fd5564bbcabf6/af748c033b889e0ffe68977c203fd5564bbcabf6 >> ) >> >> _______________________________________________ >> 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 >> >> >> Geoserver-users@lists.sourceforge.net >> 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 Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users