»»»

redis.clients.jedisConnection errorsJedis

Top patterns

  1. Tried to use the same Jedis object in multiple Threads

    You should share the pool and get a different Jedis from it in every thread.

    See more on GitHub

  2. Jedis client uses an invalid connection

    Read this github issue Some ideas to try:

    • Don't use Jedis client in multithreaded mode (or check out how to that properly)
    • Use jedis.close() instead of returnXXXResource(jedis)
    • Update your jedis version :)
  3. Cannot read Redis status code reply as a byte array
    No solution
Error patternsMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Tried to use the same Jedis object in multiple Threads

java.lang.ClassCastException
redis.clients.jedis.Connection.getIntegerReply
14Web pages
1Solution
ClassCastExceptionConnection.getIntegerReply14

Jedis client uses an invalid connection

java.lang.ClassCastException
redis.clients.jedis.Connection.getBinaryMultiBulkReply
13Web pages
1Solution
ClassCastExceptionConnection.getBinaryMultiBulkReply13

Cannot read Redis status code reply as a byte array

java.lang.ClassCastException
redis.clients.jedis.Connection.getStatusCodeReply
12Web pages
ClassCastExceptionConnection.getStatusCodeReply12

Connection.sendCommand() has thrown a SocketTimeoutException

java.net.SocketTimeoutException
2 frames hidden
redis.clients.jedis.Connection.sendCommand
6Web pages
SocketTimeoutExceptionConnection.sendCommand6

Connection.sendCommand() has thrown a SocketException

java.net.SocketException
2 frames hidden
redis.clients.jedis.Connection.sendCommand
3Web pages
SocketExceptionConnection.sendCommand3

Redis connection broken while sending a command

java.net.SocketException
redis.clients.jedis.Connection.flush
3Web pages
SocketExceptionConnection.flush3

Redis output stream is uninitialized

java.lang.NullPointerException
2 frames hidden
redis.clients.jedis.Connection.sendCommand
3Web pages
NullPointerExceptionConnection.sendCommand3

Jedis cannot connect to Redis

java.net.ConnectException
redis.clients.jedis.Connection.connect
3Web pages
ConnectExceptionConnection.connect3

Cannot send command to Redis, it closed the connection

redis.clients.jedis.exceptions.JedisConnectionException
2 frames hidden
redis.clients.jedis.Connection.sendCommand
1Web pages
JedisConnectionExceptionConnection.sendCommand1
Nothing to list here.
Nothing to list here.