Could not read document: Can not deserialize instance of java.lang.String out of START_ARRAY

Posted pengfei860

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not read document: Can not deserialize instance of java.lang.String out of START_ARRAY相关的知识,希望对你有一定的参考价值。

 

线上问题:

{
    "timestamp": "1544510665",
    "status": 400,
    "error": "Bad Request",
    "exception": "org.springframework.http.converter.HttpMessageNotReadableException",
    "message": "Could not read document: Can not deserialize instance of java.lang.String out of START_ARRAY token
 at [Source: [email protected]; line: 18, column: 18] (through reference chain: com.imdada.shine.dao.vo.SenderVo["poiAddress"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY token
 at [Source: [email protected]; line: 18, column: 18] (through reference chain: com.imdada.shine.dao.vo.SenderVo["poiAddress"])",
    "path": "/toc/corp/client/addSender"
}

解决方案:
发现是在解析json字符串的时候,某个字段的值本来应该是字符串,结果是[开头的



以上是关于Could not read document: Can not deserialize instance of java.lang.String out of START_ARRAY的主要内容,如果未能解决你的问题,请参考以下文章

Could not read document: Unexpected EOF read on the socket; nested exception is java.io.EOFException

Could not read document: Can not deserialize instance of java.lang.String out of START_ARRAY

hexo could not read form 问题

git Could not read from remote repository 解决

Could not read from remote repository.

git: fatal: Could not read from remote repository