Hi, Good, then I will try to have a look at it.
Regards, Roar > 30. mai 2023 kl. 14:35 skrev Susanne Köhn <susanne.ko...@data-experts.de>: > > Hello, > > thanks for your reply, I have reported the problem as a bug. > > Susanne > > > > Von: "Roar Brænden" <roar.brenden...@gmail.com> > An: "Susanne Köhn" <susanne.ko...@data-experts.de> > Kopie: geotools-gt2-users@lists.sourceforge.net > Datum: 26.05.2023 11:25 > Betreff: Re: [Geotools-gt2-users] Problems with requesting Features > from a WSF Version 2.0.0 and using a HTTP proxy > > > > Hi, > > I’ve encounterred a similar problem, but that was related to authentication. > It would be fine if you report this as a bug. > > Then I will work more on my solution, so that it could be accepted into the > code base. > > Regards, > Roar Brænden > > fre. 26. mai 2023 kl. 10:25 skrev Susanne Köhn <susanne.ko...@data-experts.de > <mailto:susanne.ko...@data-experts.de>>: > Hello, > > I am using geotools Version 28.1. When requesting Features from a WSF Version > 2.0.0 and using a HTTP proxy for the requests I get the following Exception. > > java.lang.ClassCastException: java.util.HashMap cannot be cast to > org.opengis.feature.simple.SimpleFeature > at > org.geotools.data.wfs.internal.parsers.PullParserFeatureReader.parse(PullParserFeatureReader.java:119) > at > org.geotools.data.wfs.internal.parsers.PullParserFeatureReader.parse(PullParserFeatureReader.java:47) > at > org.geotools.data.wfs.WFSFeatureReader.<init>(WFSFeatureReader.java:54) > at > org.geotools.data.wfs.WFSFeatureSource.getReaderInternal(WFSFeatureSource.java:290) > at > org.geotools.data.store.ContentFeatureSource.getReader(ContentFeatureSource.java:636) > at > org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:173) > at > org.geotools.data.store.ContentFeatureCollection.features(ContentFeatureCollection.java:52) > > The problem is that the ParserHandler wants to load the Schema for the > DescribeFeatureType URL directly. This leads to a > java.net.SocketTimeoutException, because the used HTTP proxy is ignored. > > Is there a way to tell the Parserhandler the Proxy Information? Or is there > another way to load the Schema for the DescribeFeatureType? > > Kind regards > > Susanne _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > <mailto:GeoTools-GT2-Users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > <https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users> >
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users