CodisLabs / jodis

A java client for codis based on Jedis and Curator
MIT License
217 stars 97 forks source link

No content to map due to end-of-input #57

Open flyfeifei66 opened 5 years ago

flyfeifei66 commented 5 years ago

com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input at [Source: [B@72f926e6; line: 1, column: 1] at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164) at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:2839) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2781) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2011) at com.wandoulabs.jodis.RoundRobinJedisPool.resetPools(RoundRobinJedisPool.java:255) at com.wandoulabs.jodis.RoundRobinJedisPool.(RoundRobinJedisPool.java:243) at com.wandoulabs.jodis.RoundRobinJedisPool.(RoundRobinJedisPool.java:64) at com.wandoulabs.jodis.RoundRobinJedisPool$Builder.build(RoundRobinJedisPool.java:479)

报这个错怎么回事

Apache9 commented 5 years ago

看起来是读到的文件是空的所以json parse失败了?

flyfeifei66 commented 5 years ago

找到原因了,jodis支持2.X和3.X,总之用法版本没对应上,改了一通,好了。

freeport0421 commented 5 years ago

codis3.2.2版本 jodis0.5.1,0.4.1 都试了 仍报这个错 No content to map due to end-of-input. 你是怎么解决的?