nschmidt

Content was Consumed error on SSL Map Service QueryTask with 1.6.3 version of the SDK

Discussion created by nschmidt on Aug 22, 2012
We are getting the following message when using a QueryTask on a AGS 10.0 HTTPS map service using the 1.6.3 version of the Android SDK.  This HTTPS service is not using a self signed certificate, it uses a certificate from a trusted root cert authority. 

java.lang.IllegalStateException: Content has been consumed
            at org.apache.http.entity.BasicHttpEntity.getContent(BasicHttpEntity.java:84)
            at org.apache.http.conn.BasicManagedEntity.getContent(BasicManagedEntity.java:100)
            at org.apache.http.util.EntityUtils.toString(EntityUtils.java:112)
            at com.esri.core.internal.b.a.e.b(Unknown Source)
            at com.esri.core.tasks.ags.query.a.b(Unknown Source)
            at com.esri.core.tasks.ags.query.QueryTask.execute(Unknown Source)

This error does not happen on the 2.0 SDK.  We are looking for a solution to this issue or a change we can make so that we can get it to work with the 1.6.3 version of the SDK.  Has anyone run into this issue before?  Does anyone have any suggestions for how we might work around the issue or what the reason is for the exception?  Any help would be appreciated!

Outcomes