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>: > 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 > 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