java.lang.ClassCastException: net.opengis.wfs20.impl.WFSCapabilitiesTypeImpl cannot be cast to net.opengis.wfs.WFSCapabilitiesType

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Can't get a response from a wfs2.0.0 using Geotools

    Geographic Information Systems | 8 months ago | heljabiri
    java.lang.ClassCastException: net.opengis.wfs20.impl.WFSCapabilitiesTypeImpl cannot be cast to net.opengis.wfs.WFSCapabilitiesType

    Root Cause Analysis

    1. java.lang.ClassCastException

      net.opengis.wfs20.impl.WFSCapabilitiesTypeImpl cannot be cast to net.opengis.wfs.WFSCapabilitiesType

      at org.geotools.data.wfs.internal.v1_x.StrictWFS_1_x_Strategy.setCapabilities()
    2. org.geotools.data
      DataAccessFinder.getDataStore
      1. org.geotools.data.wfs.internal.v1_x.StrictWFS_1_x_Strategy.setCapabilities(StrictWFS_1_x_Strategy.java:411)
      2. org.geotools.data.wfs.internal.WFSClient.<init>(WFSClient.java:71)
      3. org.geotools.data.wfs.internal.WFSClient.<init>(WFSClient.java:62)
      4. org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:117)
      5. org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:70)
      6. org.geotools.data.DataAccessFinder.getDataStore(DataAccessFinder.java:130)
      6 frames