Play 2.3中的Json解析问题

时间:2014-10-14 05:08:06

标签: java json jackson playframework-2.3

对于某些JSON请求,我的播放应用程序会记录以下错误。

2014-10-14 03:58:59 +0000 - [DEBUG] - from play in play-internal-execution-context-32582 
Invalid Json
java.io.CharConversionException: Invalid UTF-32 character 0x7b226174(above 10ffff)  at         char #362, byte #1451)
at com.fasterxml.jackson.core.io.UTF32Reader.reportInvalid(UTF32Reader.java:155) ~[com.fasterxml.jackson.core.jackson-core-2.3.2.jar:2.3.2]
at com.fasterxml.jackson.core.io.UTF32Reader.read(UTF32Reader.java:109) ~[com.fasterxml.jackson.core.jackson-core-2.3.2.jar:2.3.2]
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.loadMore(ReaderBasedJsonParser.java:131) ~[com.fasterxml.jackson.core.jackson-core-2.3.2.jar:2.3.2]
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._skipWSOrEnd(ReaderBasedJsonParser.java:1688) ~[com.fasterxml.jackson.core.jackson-core-2.3.2.jar:2.3.2]
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:562) ~[com.fasterxml.jackson.core.jackson-core-2.3.2.jar:2.3.2]

这会导致什么?为什么它说UTF32,我以为它正在使用UTF-8。

0 个答案:

没有答案