title: I am getting following error org.springframework.http.converter.HttpMessageNotReadableException:
body: <p>Error:</p>
  <blockquote>
  <p>org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Unexpected character ('&lt;' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')</p>
  </blockquote>
  <p>I was trying to fetch list&lt;byte[]&gt; which contains pdfs in it from a MongoDB collection and after fetching this list of byte array passing it to another jar via cross call.</p>
  <pre><code>responsePayload = adhHttpAdaptorCm.getMethod(env.getProperty(&quot;tm.getPdfs.url&quot;), map, TmResponsePayload.class);
  </code></pre>
  <p>getMethod is as follows :</p>
  <pre><code>@Override
  public T getMethod(String url, Map&lt;String, String&gt; params, Class&lt;T&gt; responseType) {
      log.debug(&quot;Entered getMethod&quot;);
      requestHttpHeaders.set(&quot;Content-Type&quot;,&quot;application/json&quot;);
      HttpEntity&lt;T&gt; httpEntity = new HttpEntity&lt;&gt;(requestHttpHeaders);
     
      T t=null;
      ResponseEntity&lt;T&gt; responseEntity =  restTemplate.exchange(url, HttpMethod.GET, httpEntity, responseType, params);
     
      if (responseEntity != null &amp;&amp; responseEntity.getBody() != null) {
          t = responseEntity.getBody();
      }
  
      log.debug(&quot;Exiting getMethod&quot;);
      return t;
  }
  </code></pre>
  <p>what can be done to fix the error I am getting once the control reaches the inside get method?</p>