Could not extract response: no suitable HttpMessageConverter found for response
<p>Well, I am trying to consume REST webservice using RestTemplate in Spring.
The service returns a JSON with list of objects in it as below.</p>

<pre><code>[
  {
    "name": "123",
    "ids": {
      "y": 36.41666667,
      "x": 39.58333333,
      "z": 12
    },
    "ip": "10.219.90.12",
    "rate": 67.5,
    "id": 1
  },
  {
    "name": "123",
    "ids": {
      "y": 72.5,
      "x": 15.16666667,
      "z": 12
    },
    "ip": "10.219.90.13",
    "rate": 67.5,
    "aarid": 2
  },
  {
    "name": "123",
    "ids": {
      "y": 0,
      "x": 14.33333333,
      "z": 12
    },
    "ip": "10.219.90.14",
    "rate": 67.5,
    "id": 3
  }]
</code></pre>

<p>I have a POJO defined as below for this JSON.</p>

<pre><code>public class Data {

    @JsonProperty("name")
    private String name;
    @JsonProperty("ip")
    private String ip;
    @JsonProperty("rate")
    private Double rate;
    @JsonProperty("id")
    private Long id;
    @JsonProperty("ids")
    private Ids ids;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getIp() {
        return ip;
    }
    public void setIp(String ip) {
        this.ip = ip;
    }
    public Double getRate() {
        return rate;
    }
    public void setRate(Double rate) {
        this.rate = rate;
    }
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Ids getIds() {
        return ids;
    }
    public void setIds(Ids ids) {
        this.ids = ids;
    }
}


public class Ids {

    private Double x;

    private Double y;

    private Double z;

    public void setX(Double x) {
        this.x = x;
    }

    public void setY(Double y) {
        this.y = y;
    }

    public void setZ(Double z) {
        this.z = z;
    }

    public Double getX() {
        return x;
    }

    public Double getY() {
        return y;
    }

    public Double getZ() {
        return z;
    }

    @Override
    public String toString() {
        return "AARPosition [x=" + x + ", y=" + y + ", z=" + z + "]";
    }

}
</code></pre>

<p>I try to consume the service with following code:</p>

<pre><code>ResponseEntity&lt;List&lt;Data&gt;&gt; responseEntity = aarRestClient.exchange("http://123.11.25.333/v1/data",
                HttpMethod.GET, null, new ParameterizedTypeReference&lt;List&lt;Data&gt;&gt;() {    });
</code></pre>

<p>I am passing null into entity above, even if I create entity and try, same results come up.</p>

<pre><code>HttpHeaders headers = new HttpHeaders();
        headers.setAccept(Arrays.asList(MediaType.APPLICATION_OCTET_STREAM));

        HttpEntity&lt;String&gt; entity = new HttpEntity&lt;String&gt;("parameters", headers);

ResponseEntity&lt;List&lt;Data&gt;&gt; responseEntity = aarRestClient.exchange("http://123.11.25.333/v1/data",
                HttpMethod.GET, entity , new ParameterizedTypeReference&lt;List&lt;Data&gt;&gt;() { });
</code></pre>

<p>I have also tried with -</p>

<pre><code>ResponseEntity&lt;Data[]&gt; responseEntity = aarRestClient.getForEntity("http://123.11.25.333:42317/v1/data", Data[].class);
</code></pre>

<p>But, no luck. I get below exception in all the cases.</p>

<pre><code>org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class [Lcom.zebra.ala.rtlsclient.Data;] and content type [application/octet-stream]
    at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:109) ~[spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
    at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:835) ~[spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
    at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:819) ~[spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:599) ~[spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
    at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:557) ~[spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
    at org.springframework.web.client.RestTemplate.getForEntity(RestTemplate.java:289) ~[spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
    at com.zebra.ala.rtlsclient.AARHealthHandler.monitorAARHealth(AARHealthHandler.java:38) ~[classes/:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_92]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_92]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_92]
</code></pre>

<p>Could please anyone help me out!
Thanks in advance.</p>