码迷,mamicode.com
首页 > 其他好文 > 详细

jackson error 含义log

时间:2016-09-06 14:01:07      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

1. 反序列化失败,类型不匹配

技术分享
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserial
ize instance of java.lang.String out of START_OBJECT token
 at [Source: org.apache.http.conn.EofSensorInputStream@51796217; line: 1, column
: 274] (through reference chain: com.expedia.lodging.domain.valueobject.poi.tip.
Tip["postalAddress"])
        at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingE
xception.java:164)
        at com.fasterxml.jackson.databind.DeserializationContext.mappingExceptio
n(DeserializationContext.java:691)
        at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deseriali
ze(StringDeserializer.java:46)
        at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deseriali
ze(StringDeserializer.java:11)
        at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize
(SettableBeanProperty.java:525)
View Code

这段错误是因为给出的filed是String类型,而序列化的是字符串对应的为{},即使一个object。

jackson error 含义log

标签:

原文地址:http://www.cnblogs.com/woshimrf/p/5845364.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!