Can not deserialize instance of java.lang.String out of START_OBJECT token
来源:互联网 发布:ubuntu 修改ip 编辑:程序博客网 时间:2024/05/16 10:14
转自
http://blog.csdn.net/smileiam/article/details/49964289
org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: org.apache.http.conn.EofSensorInputStream@42b0f150; line: 1, column: 112] (through reference chain: com.combanc.jxhd.webservice.net.model.GetAffairNewsListResponse["list"]->com.combanc.jxhd.webservice.net.model.AffairNewsList["publishTime"]);
nested exception is org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: org.apache.http.conn.EofSensorInputStream@42b0f150; line: 1, column: 112] (through reference chain: com.combanc.jxhd.webservice.net.model.GetAffairNewsListResponse["list"]->com.combanc.jxhd.webservice.net.model.AffairNewsList["publishTime"])
遇到这样的错误,主要是服务器数据和客户端数据类型不一致,如我这里遇到的publishTime数据类型,服务器是date型,而我客户端数据是String型,就会导致这样的错误,调成一致就好了。
- Could not read JSON: Can not deserialize instance of java.lang.String out of START_OBJECT token
- Can not deserialize instance of java.lang.String out of START_OBJECT token
- Can not deserialize instance of java.lang.String out of START_OBJECT token
- Could not read JSON: Can not deserialize instance of java.lang.Integer out of START_OBJECT token
- Could not read document: Can not deserialize instance of java.lang.xxx out of START_OBJECT token
- 关于接收List报Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
- Cannot deserialize instance of java.lang.String out of START_ARRAY/START_OBJECT token,RestTemplate小坑
- Could not read JSON: Can not deserialize instance of java.lang.String[] out of VALUE_STRING token
- Unexpected error during response processing Can not deserialize instance of java.lang.String out of
- Can not deserialize instance of java.util.ArrayList out of VALUE_FALSE token
- Could not read JSON: Can not deserialize instance of out of START_ARRAY token
- com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize out of START_ARRAY token
- org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of java.util.ArrayList o
- 关于fasterxml-jackson发生Can not deserialize instance of异常原因验证
- java.lang.StringIndexOutOfBoundsException: String index out of range: 0
- HIbernate 3.2 java.lang.IllegalArgumentException: object is not an instance of declaring class
- java.lang.IllegalArgumentException: object is not an instance of declaring class
- nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class
- 被解救的Django【3】
- vi编辑器的指令和Git 命令
- 文章标题
- VS2010帮助文档安装方法
- 统计学习方法 7-支持向量机
- Can not deserialize instance of java.lang.String out of START_OBJECT token
- html表单相关知识
- MVP 一个简单的登录+判断
- jvm之对象
- c进阶代码练习
- Storm概念、原理详解及其应用(一)BaseStorm
- [python]利用Python生成xml文件
- PX4源码初学习(px4_simple_app.c)
- 选择排序