redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream.

GitHub | wangchangjian | 2 months ago
  1. 0

    orca and front50 connect exception when create app or query app

    GitHub | 2 months ago | wangchangjian
    redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream.
  2. 0

    The concurrent use of {{SCAN}} and iteration over the resulting {{Cursor}} causes various Exceptions using the Jedis Driver. Test case: https://gist.github.com/mp911de/327cb876117bc1d74049aff25e5509cb {code} redis.clients.jedis.exceptions.JedisConnectionException: Unknown reply: 5 at redis.clients.jedis.Protocol.process(Protocol.java:154) at redis.clients.jedis.Protocol.processMultiBulkReply(Protocol.java:196) at redis.clients.jedis.Protocol.process(Protocol.java:147) at redis.clients.jedis.Protocol.processMultiBulkReply(Protocol.java:196) at redis.clients.jedis.Protocol.process(Protocol.java:147) at redis.clients.jedis.Protocol.read(Protocol.java:205) at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:297) at redis.clients.jedis.Connection.getRawObjectMultiBulkReply(Connection.java:242) at redis.clients.jedis.Connection.getObjectMultiBulkReply(Connection.java:248) at redis.clients.jedis.BinaryJedis.hscan(BinaryJedis.java:3300) at org.springframework.data.redis.connection.jedis.JedisConnection$5.doScan(JedisConnection.java:3437) {code} {code} java.lang.ClassCastException: [B cannot be cast to java.util.List at redis.clients.jedis.Connection.getRawObjectMultiBulkReply(Connection.java:242) at redis.clients.jedis.Connection.getObjectMultiBulkReply(Connection.java:248) at redis.clients.jedis.BinaryJedis.hscan(BinaryJedis.java:3300) at org.springframework.data.redis.connection.jedis.JedisConnection$5.doScan(JedisConnection.java:3437) {code} This issue gets only visible if: 1. Multiple threads try to use the {{SCAN}} command and iterate over the resulting {{Cursor}} 2. There is enough data to keep the iteration busy The reason is that the resulting {{Cursor}} s hold a reference to the connection that was allocated during the {{.scan()}} invocation. {{.scan()}} allocates a connection but then it releases the connection back and so can multiple {{Cursors}} in different {{Thread}} s share the same Jedis connection.

    Spring JIRA | 5 months ago | Mark Paluch
    redis.clients.jedis.exceptions.JedisConnectionException: Unknown reply: 5
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    jedis throws Unexpected end of stream

    Google Groups | 2 years ago | liwei jia
    redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream.
  5. 0

    GitHub comment 678#174916675

    GitHub | 10 months ago | Dreampie
    org.springframework.data.redis.RedisConnectionFailureException: Unexpected end of stream.; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. redis.clients.jedis.exceptions.JedisConnectionException

      Unexpected end of stream.

      at redis.clients.util.RedisInputStream.ensureFill()
    2. Jedis
      BinaryJedis.hscan
      1. redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:198)
      2. redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40)
      3. redis.clients.jedis.Protocol.process(Protocol.java:141)
      4. redis.clients.jedis.Protocol.read(Protocol.java:205)
      5. redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:297)
      6. redis.clients.jedis.Connection.getRawObjectMultiBulkReply(Connection.java:242)
      7. redis.clients.jedis.Connection.getObjectMultiBulkReply(Connection.java:248)
      8. redis.clients.jedis.BinaryJedis.hscan(BinaryJedis.java:3300)
      8 frames
    3. Spring Data Redis
      ConvertingCursor.hasNext
      1. org.springframework.data.redis.connection.jedis.JedisConnection$5.doScan(JedisConnection.java:3429)
      2. org.springframework.data.redis.core.KeyBoundCursor.doScan(KeyBoundCursor.java:39)
      3. org.springframework.data.redis.core.ScanCursor.scan(ScanCursor.java:86)
      4. org.springframework.data.redis.core.ScanCursor.hasNext(ScanCursor.java:169)
      5. org.springframework.data.redis.core.ConvertingCursor.hasNext(ConvertingCursor.java:56)
      5 frames
    4. Groovy
      PojoMetaMethodSite.call
      1. org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:2301)
      2. org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:2273)
      3. org.codehaus.groovy.runtime.dgm$62.invoke(Unknown Source)
      4. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
      5. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
      5 frames