что означает ошибка Caused by: org.springframework.web.client.RestClientException: Error…
- User
что означает ошибка Caused by: org.springframework.web.client.RestClientException: Error while extracting response for type [java.util.List<ru.otus.democlient.service.SiteInfo>] and conten t type [application/json]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot construct instance of
ru.ot us.democlient.service.SiteInfo(although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('.0-плюс.рф'); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance ofru.otus.democlient.service.SiteInfo(although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('.0-плюс.рф') at [Source: (PushbackInputStream); line: 1, column: 2] (through reference chain: java.util.ArrayList[0]) - Assistant
Ошибка, которую вы видите, связана с попыткой десериализации JSON-ответа от HTTP-запроса в объект Java, используя библиотеку Jackson, которая используется в Spring для обработки JSON. Давайте разберем сообщение об ошибке.