Questions tagged [http-message-converter]

21 questions
0
votes
1 answer

Could not extract response: no suitable HttpMessageConverter found for response type and content type [binary/octet-stream]

So i am consuming JSON response from this URL through RestTemplate Link: "https://s3-ap-southeast-1.amazonaws.com/he-public-data/productdf38641.json" My Product POJO: import lombok.AllArgsConstructor; import lombok.Data; import…
0
votes
0 answers

no suitable HttpMessageConverter found for response type [class java.lang.Object] and content type [multipart/form-data;boundary=XXX;charset=UTF-8]

I am doing multipart formdata post call from UI to upload a file. From UI, the call goes to component A controller which you can consider it as a common component or bus which just read the stream pass the stream to other component B controller…
0
votes
1 answer

Spring Boot / RabbitMQ different content_type with Jackson2JsonMessageConverter

I have a usecase where a service consumes different RabbitMQ queues. On one of the queues there is JSON encoded data, where the content_type header is set to application/json There is a second queue, where binary data is being consumed,…
Alex Tbk
  • 2,042
  • 2
  • 20
  • 38
0
votes
2 answers

Error in org.springframework.web.client.RestClientException: No HttpMessageConverter for java.util.HashMap

I'm getting the following error in org.springframework.web.client.RestClientException: No HttpMessageConverter for java.util.HashMapwhen using rest template. Does anyone have any idea whats wrong? Using java 1.8, spring 5.2.2, commons-logging 1.2. …
0
votes
1 answer

How can I resolve HttpMessageConverterExtractor error when using exchange method from RestTemplate?

I am using the Spring REST template to get the response from a REST service. I am getting the below exception, but I am unable to figure out the issue. Please find the below details. Am I missing something? I am getting the correct response when I…
Nithin
  • 371
  • 7
  • 29
0
votes
1 answer

Spring Boot http message converter serialize null sometimes

In Spring boot, is it possible to have many different versions of gson or Jackson http converters and use them dynamically whenever I need a specific type of data format?
Kingj
  • 1
  • 1
1
2