java.lang.RuntimeException: Could not decode JSON

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Rather than generating JSON by string concatenation, which is pretty much guaranteed to give you functionality and security issues, I recommend using a JSON library instead. We use Jersey in JIRA but any would do.

Solutions on the web

via Spring JIRA by Pavel Bernshtam, 1 year ago
Could not decode JSON
via Spring JIRA by Pavel Bernshtam, 1 year ago
Could not decode JSON
com.fasterxml.jackson.core.JsonParseException: Numeric value (1381061520766) out of range of int at [Source: java.io.StringReader@8e396; line: 1, column: 27]
at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1369)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:599)
at com.fasterxml.jackson.core.base.ParserBase.convertNumberToInt(ParserBase.java:847)
at com.fasterxml.jackson.core.base.ParserBase.getIntValue(ParserBase.java:643)
at com.fasterxml.jackson.core.base.ParserMinimalBase.getValueAsInt(ParserMinimalBase.java:293)
at org.springframework.data.couchbase.core.convert.translation.JacksonTranslationService.decodePrimitive(JacksonTranslationService.java:201)
at org.springframework.data.couchbase.core.convert.translation.JacksonTranslationService.decodeObject(JacksonTranslationService.java:150)

Users with the same issue

2 times, 5 days ago
Once, 3 weeks ago
2 times, 3 weeks ago
Once, 3 weeks ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.