java.lang.ClassCastException: org.apache.http.impl.execchain.ResponseEntityWrapper cannot be cast to java.io.InputStream

GitHub | vinodborole | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    ClassCastException with HttpClient-2.0.1 connecter while downloading image

    GitHub | 2 years ago | vinodborole
    java.lang.ClassCastException: org.apache.http.impl.execchain.ResponseEntityWrapper cannot be cast to java.io.InputStream
  2. 0

    ClassCastException with HttpClient-2.0.1 connecter while downloading image

    GitHub | 2 years ago | vinodborole
    java.lang.ClassCastException: org.apache.http.impl.execchain.ResponseEntityWrapper cannot be cast to java.io.InputStream

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apache.http.impl.execchain.ResponseEntityWrapper cannot be cast to java.io.InputStream

      at org.openstack4j.connectors.httpclient.HttpResponseImpl.getInputStream()
    2. org.openstack4j.connectors
      HttpResponseImpl.getInputStream
      1. org.openstack4j.connectors.httpclient.HttpResponseImpl.getInputStream(HttpResponseImpl.java:91)
      1 frame
    3. OpenStack4j
      ImageServiceImpl.getAsStream
      1. org.openstack4j.openstack.image.internal.ImageServiceImpl.getAsStream(ImageServiceImpl.java:95)
      1 frame