redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: expected '$', got ' '

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

,
Expert tip

Redis has some limitations of various bulk length, the length of args of the API command MSET can't be bigger than 1024*1024, set a limiter on how big your list is to avoid this.

,
Expert tip

You're experiencing issue #124 in spring session: https://goo.gl/CgfzZ2. You can use the workaround described here: https://goo.gl/pnn7Cc or check the bug page mentioned for disscussion about it!

Solutions on the web

via GitHub by xetorthio
, 1 year ago
ERR Protocol error: expected '$', got ' '
via GitHub by Flawd
, 1 year ago
ERR Protocol error: expected '$', got ' '
via Google Groups by Sairam M P, 1 year ago
ERR Protocol error: invalid bulk length
redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: expected '$', got ' '
at redis.clients.jedis.Protocol.processError(Protocol.java:117)
at redis.clients.jedis.Protocol.process(Protocol.java:151)
at redis.clients.jedis.Protocol.read(Protocol.java:205)
at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:297)
at redis.clients.jedis.Connection.getIntegerReply(Connection.java:222)
at redis.clients.jedis.Jedis.hset(Jedis.java:606)
at me.FlawlezZ.FlawlordBasedSan.redis.JedisManager.hset(JedisManager.java:38)
at me.FlawlezZ.FlawlordChaRPGSan.data.Characters$JedisCharacter.read(Characters.java:43)
at me.FlawlezZ.FlawlordChaRPGSan.data.mongo.MongoCharacter.readCharacter(MongoCharacter.java:34)
at me.FlawlezZ.FlawlordChaRPGSan.data.mongo.MongoCharacter.lambda$loadCharacter$0(MongoCharacter.java:43)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

3676 times, 1 year ago
20 times, 1 month ago
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
5 times, 2 months ago
33 more bugmates

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