Jedis errors

Jedis is a blazingly small and sane Redis java client

https://github.com/xetorthio/jedis
Solution coverage:
Summary coverage:

Top patterns

  1. Redis responded with an error code that is not processed by Jedis

    This exception can occur in different situations. For example.: Missing authentication parameter, etc.

  2. Redis responded an error code that is unhandled by Jedis

    This exception can occur in different situations. For example.: Redis timeout, etc.

  3. Too many redirections when connecting to Redis

    This exception can occur, when you are trying to connect to your redis cluster, but unfortunately it fails. This exception also can occur, when you are trying to create a cluster, but you are using localhost or 127.0.0.1 to setup cluster.


DescriptionException TypeEntry MethodWeb pages

Redis responded with an error code that is not processed by Jedis

redis.clients.jedis.exceptions.JedisDataException
redis.clients.jedis.Protocol.processError
100Web pages
1Solution
JedisDataExceptionProtocol.processError100

Redis responded an error code that is unhandled by Jedis

redis.clients.jedis.exceptions.JedisConnectionException
redis.clients.jedis.Protocol.process
21Web pages
1Solution
JedisConnectionExceptionProtocol.process21

Too many redirections when connecting to Redis

redis.clients.jedis.exceptions.JedisClusterMaxRedirectionsException
1 frames hidden
redis.clients.jedis.JedisClusterCommand.runWithRetries
15Web pages
1Solution
JedisClusterMaxRedirectionsExceptionJedisClusterCommand.runWithRetries15

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

Jedis write buffer overloaded.

java.lang.ArrayIndexOutOfBoundsException
1 frames hidden
redis.clients.jedis.Protocol.sendCommand
8Web pages
1Solution
ArrayIndexOutOfBoundsExceptionProtocol.sendCommand8

Reading Redis response timed out

java.net.SocketTimeoutException
redis.clients.jedis.Protocol.process
8Web pages
SocketTimeoutExceptionProtocol.process8

Cannot read Redis response as a byte array

java.lang.ClassCastException
redis.clients.jedis.BuilderFactory$5.build
8Web pages
1Solution
ClassCastExceptionBuilderFactory$5.build8

Cannot get a Redis connection from the pool

redis.clients.jedis.exceptions.JedisConnectionException
2 frames hidden
redis.clients.jedis.JedisClusterCommand.runWithRetries
7Web pages
JedisConnectionExceptionJedisClusterCommand.runWithRetries7

Connection.sendCommand() has thrown a SocketTimeoutException

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

Redis cluster is down

redis.clients.jedis.exceptions.JedisClusterException
1 frames hidden
redis.clients.jedis.Protocol.process
6Web pages
JedisClusterExceptionProtocol.process6

JedisSlotBasedConnectionHandler.getConnectionFromSlot() has thrown a JedisConnectionException

redis.clients.jedis.exceptions.JedisConnectionException
2 frames hidden
redis.clients.jedis.JedisSlotBasedConnectionHandler.getConnectionFromSlot
4Web pages
JedisConnectionExceptionJedisSlotBasedConnectionHandler.getConnectionFromSlot4

There is no reachable node in the cluster

redis.clients.jedis.exceptions.JedisNoReachableClusterNodeException
3 frames hidden
redis.clients.jedis.JedisClusterCommand.run
4Web pages
JedisNoReachableClusterNodeExceptionJedisClusterCommand.run4

Using `multi()` in Pipeline wasn't supported in earlier Jedis version

java.lang.ClassCastException
3 frames hidden
redis.clients.jedis.Pipeline.syncAndReturnAll
4Web pages
ClassCastExceptionPipeline.syncAndReturnAll4

The hash moved to a different Redis node

redis.clients.jedis.exceptions.JedisMovedDataException
2 frames hidden
redis.clients.jedis.Protocol.read
4Web pages
1Solution
JedisMovedDataExceptionProtocol.read4

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

Pong response is rejected by Jedis 2.7

redis.clients.jedis.exceptions.JedisException
redis.clients.jedis.JedisPubSub.process
2Web pages
1Solution
JedisExceptionJedisPubSub.process2

Redis client is uninitialized when finalizing pipeline execution

java.lang.NullPointerException
redis.clients.jedis.Pipeline.syncAndReturnAll
2Web pages
NullPointerExceptionPipeline.syncAndReturnAll2

Redis client is in Multi or Pipeline mode

redis.clients.jedis.exceptions.JedisDataException
redis.clients.jedis.BinaryJedis.checkIsInMultiOrPipeline
2Web pages
JedisDataExceptionBinaryJedis.checkIsInMultiOrPipeline2

Jedis.subscribe() has thrown a JedisConnectionException

redis.clients.jedis.exceptions.JedisConnectionException
3 frames hidden
redis.clients.jedis.Jedis.subscribe
2Web pages
JedisConnectionExceptionJedis.subscribe2

Response.get() has thrown a JedisDataException

redis.clients.jedis.exceptions.JedisDataException
redis.clients.jedis.Response.get
2Web pages
JedisDataExceptionResponse.get2

BinaryJedis.info() has thrown a JedisConnectionException

redis.clients.jedis.exceptions.JedisConnectionException
5 frames hidden
redis.clients.jedis.BinaryJedis.info
2Web pages
JedisConnectionExceptionBinaryJedis.info2

Jedis cannot process the response from Redis

redis.clients.jedis.JedisException
1 frames hidden
redis.clients.jedis.Protocol.read
2Web pages
JedisExceptionProtocol.read2

JedisSentinelPool.<init>() has thrown a JedisException

redis.clients.jedis.exceptions.JedisException
4 frames hidden
redis.clients.jedis.JedisSentinelPool.<init>
1Web pages
JedisExceptionJedisSentinelPool.<init>1

Jedis.set() has thrown a JedisConnectionException

redis.clients.jedis.exceptions.JedisConnectionException
5 frames hidden
redis.clients.jedis.Jedis.set
1Web pages
JedisConnectionExceptionJedis.set1

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

JedisPool.getResource() has thrown a JedisConnectionException

redis.clients.jedis.exceptions.JedisConnectionException
9 frames hidden
redis.clients.jedis.JedisPool.getResource
0Web pages
JedisConnectionExceptionJedisPool.getResource0
Package namePatterns foundSolution coverageSummary coverage
redis.clients.jedis173
redis.clients.util29
Package nameClass namePatterns foundSolution coverageSummary coverage
redis.clients.jedisConnection61
redis.clients.jedisProtocol22
redis.clients.jedisBinaryJedis17
redis.clients.jedisJedisPool17
redis.clients.jedisJedis14
redis.clients.jedisBinaryClient10
redis.clients.jedisJedisClusterCommand6
redis.clients.jedisPipeline5
redis.clients.jedisJedisCluster4
redis.clients.jedisResponse4
redis.clients.jedisJedisSlotBasedConnectionHandler3
redis.clients.jedisJedisFactory2
redis.clients.jedisBuilderFactory$52
redis.clients.jedisJedisPubSub1
redis.clients.jedisTransaction1
redis.clients.jedisJedisSentinelPool1
redis.clients.jedisBinaryShardedJedis1
redis.clients.jedisHostAndPort1
redis.clients.jedisBinaryJedisCluster1
Package nameClass nameMethod namePatterns foundSolution coverage
redis.clients.jedisConnectionconnect15
redis.clients.jedisProtocolprocess11
redis.clients.jedisBinaryJedisconnect11
redis.clients.jedisConnectionreadProtocolWithCheckingBroken10
redis.clients.jedisJedisPoolgetResource10
redis.clients.jedisBinaryClientconnect9
redis.clients.jedisConnectionsendCommand8
redis.clients.jedisProtocolread7
redis.clients.jedisConnectiongetBinaryMultiBulkReply7
redis.clients.jedisConnectiongetIntegerReply6
redis.clients.jedisPipelinesyncAndReturnAll4
redis.clients.jedisJedisset4
redis.clients.jedisResponseget4
redis.clients.jedisJedisClusterCommandrunWithRetries4
redis.clients.jedisJedisPoolreturnResource4
redis.clients.jedisConnectionflush3
redis.clients.jedisConnectiongetStatusCodeReply3
redis.clients.jedisJedisClusterset3
redis.clients.jedisProtocolsendCommand3
redis.clients.jedisJedissubscribe2
redis.clients.jedisJedisFactorymakeObject2
redis.clients.jedisJedisClusterCommandrun2
redis.clients.jedisJedisPool<init>2
redis.clients.jedisConnectiongetBinaryBulkReply2
redis.clients.jedisBuilderFactory$5build2
redis.clients.jedisConnectiongetMultiBulkReply2
redis.clients.jedisConnectiongetAll2
redis.clients.jedisJedisconfigSet1
redis.clients.jedisJedisSentinelPool<init>1
redis.clients.jedisJediswatch1
redis.clients.jedisJedisexpire1
redis.clients.jedisPipelinesync1
redis.clients.jedisConnectiongetRawObjectMultiBulkReply1
redis.clients.jedisBinaryJedischeckIsInMultiOrPipeline1
redis.clients.jedisJedisPubSubprocess1
redis.clients.jedisJedisttl1
redis.clients.jedisBinaryJedisClusterget1
redis.clients.jedisProtocolprocessError1
redis.clients.jedisConnectionclose1
redis.clients.jedisBinaryJedisinfo1
redis.clients.jedisHostAndPortgetLocalHostQuietly1
redis.clients.jedisBinaryShardedJedisget1
redis.clients.jedisJedismget1
redis.clients.jedisJedisSlotBasedConnectionHandlergetConnectionFromSlot1
redis.clients.jedisJedishset1
redis.clients.jedisJedisSlotBasedConnectionHandler<init>1
redis.clients.jedisTransactionexec1
redis.clients.jedisJedisSlotBasedConnectionHandlergetConnection1
redis.clients.jedisConnectiongetBulkReply1
redis.clients.jedisJedisclose1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
redis.clients.jedisBinaryJedisconnectJedisConnectionException8
redis.clients.jedisConnectionreadProtocolWithCheckingBrokenJedisConnectionException8
redis.clients.jedisJedisPoolgetResourceJedisConnectionException8
redis.clients.jedisBinaryClientconnectJedisConnectionException8
redis.clients.jedisConnectionconnectJedisConnectionException8
redis.clients.jedisProtocolprocessJedisConnectionException7
redis.clients.jedisConnectiongetIntegerReplyJedisConnectionException5
redis.clients.jedisConnectiongetBinaryMultiBulkReplyJedisConnectionException5
redis.clients.jedisConnectionsendCommandJedisConnectionException4
redis.clients.jedisJedisPoolreturnResourceJedisException4
redis.clients.jedisConnectionconnectConnectException4
redis.clients.jedisProtocolreadJedisConnectionException3
redis.clients.jedisJedisClusterCommandrunWithRetriesJedisConnectionException3
redis.clients.jedisBinaryJedisconnectConnectException2
redis.clients.jedisConnectionconnectSocketTimeoutException2
redis.clients.jedisJedissetJedisConnectionException2
redis.clients.jedisConnectiongetBinaryBulkReplyJedisConnectionException2
redis.clients.jedisConnectiongetAllJedisConnectionException2
redis.clients.jedisResponsegetClassCastException2
redis.clients.jedisConnectiongetMultiBulkReplyJedisConnectionException2
redis.clients.jedisJedisClustersetJedisClusterMaxRedirectionsException2
redis.clients.jedisBuilderFactory$5buildClassCastException2
redis.clients.jedisProtocolsendCommandSocketException2
redis.clients.jedisPipelinesyncAndReturnAllClassCastException2
redis.clients.jedisPipelinesyncAndReturnAllNullPointerException2
redis.clients.jedisProtocolprocessSocketTimeoutException2
redis.clients.jedisConnectionflushSocketException2
redis.clients.jedisJedissubscribeJedisConnectionException2
redis.clients.jedisJedisFactorymakeObjectJedisConnectionException2
redis.clients.jedisConnectionreadProtocolWithCheckingBrokenJedisMovedDataException1
redis.clients.jedisConnectiongetStatusCodeReplyJedisConnectionException1
redis.clients.jedisConnectiongetStatusCodeReplyJedisMovedDataException1
redis.clients.jedisJedisSlotBasedConnectionHandlergetConnectionJedisDataException1
redis.clients.jedisConnectionsendCommandSocketException1
redis.clients.jedisJedisPubSubprocessJedisException1
redis.clients.jedisProtocolprocessJedisDataException1
redis.clients.jedisBinaryJedisauthJedisConnectionException1
redis.clients.jedisHostAndPortgetLocalHostQuietlyUnknownHostException1
redis.clients.jedisJedisincrByJedisDataException1
redis.clients.jedisJedisPool<init>NotCompliantMBeanException1
redis.clients.jedisProtocolreadJedisDataException1
redis.clients.jedisJedisPoolreturnBrokenResourceJedisException1
redis.clients.jedisJediscloseJedisConnectionException1
redis.clients.jedisConnectionsendCommandArrayIndexOutOfBoundsException1
redis.clients.jedisJedisSentinelPool<init>JedisException1
redis.clients.jedisBinaryJedisconnectIllegalArgumentException1
redis.clients.jedisJedisPoolgetResourceNoSuchElementException1
redis.clients.jedisBinaryJedisrpushClassCastException1
redis.clients.jedisPipelinesyncJedisConnectionException1
redis.clients.jedisBinaryClientconnectIllegalArgumentException1