title: Response.readEntity(String.class) failing to read the response
body: <p>Recently I started facing an issue all of a sudden for read entity API.
  I have attached the pom.xml and the code used could someone please help me find the issue here,
  code that is reading the response</p>
  <pre><code>Response serverResponse = executeRequest(httpPost, log);
  String responseData = serverResponse.readEntity(String.class);
  </code></pre>
  <p>Error that I was getting is</p>
  <pre><code>java.lang.IllegalStateException: Method not supported on an outbound message.
      at org.glassfish.jersey.message.internal.OutboundJaxrsResponse.readEntity(OutboundJaxrsResponse.java:144)
  </code></pre>
  <p>pom.xml</p>
  <pre><code> &lt;dependencies&gt;
          &lt;!-- https://mvnrepository.com/artifact/com.ibm.mfp/adapter-maven-api --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.ibm.mfp&lt;/groupId&gt;
              &lt;artifactId&gt;adapter-maven-api&lt;/artifactId&gt;
              &lt;version&gt;8.0.2018071507&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          
          &lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-web --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
              &lt;version&gt;3.0.4.RELEASE&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
          
          &lt;!-- https://mvnrepository.com/artifact/log4j/log4j --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;1.2.17&lt;/version&gt;
          &lt;/dependency&gt;
          
          &lt;!-- https://mvnrepository.com/artifact/org.apache.commons/commons-io --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
              &lt;version&gt;1.3.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-annotations&lt;/artifactId&gt;
              &lt;version&gt;2.9.7&lt;/version&gt;
          &lt;/dependency&gt;
          
          &lt;!-- https://mvnrepository.com/artifact/com.ibm.mfp/mfp-java-token-validator --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.ibm.mfp&lt;/groupId&gt;
              &lt;artifactId&gt;mfp-java-token-validator&lt;/artifactId&gt;
              &lt;version&gt;8.0.2017020112&lt;/version&gt;
          &lt;/dependency&gt;
          
          &lt;!-- https://mvnrepository.com/artifact/com.ibm.mfp/mfp-security-checks-base --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.ibm.mfp&lt;/groupId&gt;
              &lt;artifactId&gt;mfp-security-checks-base&lt;/artifactId&gt;
              &lt;version&gt;8.0.2018030404&lt;/version&gt;
          &lt;/dependency&gt;
          
          &lt;!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
              &lt;artifactId&gt;gson&lt;/artifactId&gt;
              &lt;version&gt;2.8.5&lt;/version&gt;
          &lt;/dependency&gt;
  &lt;!-- https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
      &lt;artifactId&gt;javax.ws.rs-api&lt;/artifactId&gt;
      &lt;version&gt;2.0.1&lt;/version&gt;
  &lt;/dependency&gt;    
  </code></pre>
  
  <p>error message:</p>
  <p>nested exception is java.lang.AbstractMethodError: javax/ws/rs/core/Response.readEntity(Ljava/lang/Class;)Ljava/lang/Object;, status=500</p>