org.springframework.dao.InvalidDataAccessApiUsageException: ERR Protocol error: invalid multibulk length; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: invalid multibulk length

Spring JIRA | Jennifer Hickey | 4 years ago
  1. 0

    PubSubResubscribeTests.testInitializeContainerWithMultipleTopicsIncludingPattern fails or displays stack traces intermittently with various issues related to corrupted input/output streams (example below). This may be caused by PatternSubscriptionTask attempting to psubscribe while SubscriptionTask is still sending the subscribe command. {code} Exception in thread "SimpleAsyncTaskExecutor-2" org.springframework.dao.InvalidDataAccessApiUsageException: ERR Protocol error: invalid multibulk length; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: invalid multibulk length at org.springframework.data.redis.connection.jedis.JedisUtils.convertJedisAccessException(JedisUtils.java:72) at org.springframework.data.redis.connection.jedis.JedisConnection.convertJedisAccessException(JedisConnection.java:135) at org.springframework.data.redis.connection.jedis.JedisConnection.subscribe(JedisConnection.java:2437) at org.springframework.data.redis.listener.RedisMessageListenerContainer$SubscriptionTask.run(RedisMessageListenerContainer.java:723) at java.lang.Thread.run(Thread.java:680) Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: invalid multibulk length at redis.clients.jedis.Protocol.processError(Protocol.java:59) at redis.clients.jedis.Protocol.process(Protocol.java:66) at redis.clients.jedis.Protocol.read(Protocol.java:131) at redis.clients.jedis.Connection.getObjectMultiBulkReply(Connection.java:206) at redis.clients.jedis.BinaryJedisPubSub.process(BinaryJedisPubSub.java:80) at redis.clients.jedis.BinaryJedisPubSub.proceed(BinaryJedisPubSub.java:75) at redis.clients.jedis.BinaryJedis.subscribe(BinaryJedis.java:3041) at org.springframework.data.redis.connection.jedis.JedisConnection.subscribe(JedisConnection.java:2434) ... 2 more {code}

    Spring JIRA | 4 years ago | Jennifer Hickey
    org.springframework.dao.InvalidDataAccessApiUsageException: ERR Protocol error: invalid multibulk length; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: invalid multibulk length
  2. 0

    PubSubResubscribeTests.testInitializeContainerWithMultipleTopicsIncludingPattern fails or displays stack traces intermittently with various issues related to corrupted input/output streams (example below). This may be caused by PatternSubscriptionTask attempting to psubscribe while SubscriptionTask is still sending the subscribe command. {code} Exception in thread "SimpleAsyncTaskExecutor-2" org.springframework.dao.InvalidDataAccessApiUsageException: ERR Protocol error: invalid multibulk length; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: invalid multibulk length at org.springframework.data.redis.connection.jedis.JedisUtils.convertJedisAccessException(JedisUtils.java:72) at org.springframework.data.redis.connection.jedis.JedisConnection.convertJedisAccessException(JedisConnection.java:135) at org.springframework.data.redis.connection.jedis.JedisConnection.subscribe(JedisConnection.java:2437) at org.springframework.data.redis.listener.RedisMessageListenerContainer$SubscriptionTask.run(RedisMessageListenerContainer.java:723) at java.lang.Thread.run(Thread.java:680) Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: invalid multibulk length at redis.clients.jedis.Protocol.processError(Protocol.java:59) at redis.clients.jedis.Protocol.process(Protocol.java:66) at redis.clients.jedis.Protocol.read(Protocol.java:131) at redis.clients.jedis.Connection.getObjectMultiBulkReply(Connection.java:206) at redis.clients.jedis.BinaryJedisPubSub.process(BinaryJedisPubSub.java:80) at redis.clients.jedis.BinaryJedisPubSub.proceed(BinaryJedisPubSub.java:75) at redis.clients.jedis.BinaryJedis.subscribe(BinaryJedis.java:3041) at org.springframework.data.redis.connection.jedis.JedisConnection.subscribe(JedisConnection.java:2434) ... 2 more {code}

    Spring JIRA | 4 years ago | Jennifer Hickey
    org.springframework.dao.InvalidDataAccessApiUsageException: ERR Protocol error: invalid multibulk length; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: invalid multibulk length
  3. 0

    ERR Protocol error: invalid bulk length

    Google Groups | 1 year ago | Sairam M P
    redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: invalid bulk length
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting Exception in Jedis

    Stack Overflow | 12 months ago | Jinu Santh Rose
    redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: invalid bulk length
  6. 0

    Getting Invalid Bulk Length Exception on Using BinaryJedis

    GitHub | 1 year ago | sparkpool
    redis.clients.jedis.exceptions.JedisDataException: ERR Protocol error: invalid bulk length

    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.JedisDataException

      ERR Protocol error: invalid multibulk length

      at redis.clients.jedis.Protocol.processError()
    2. Jedis
      BinaryJedis.subscribe
      1. redis.clients.jedis.Protocol.processError(Protocol.java:59)
      2. redis.clients.jedis.Protocol.process(Protocol.java:66)
      3. redis.clients.jedis.Protocol.read(Protocol.java:131)
      4. redis.clients.jedis.Connection.getObjectMultiBulkReply(Connection.java:206)
      5. redis.clients.jedis.BinaryJedisPubSub.process(BinaryJedisPubSub.java:80)
      6. redis.clients.jedis.BinaryJedisPubSub.proceed(BinaryJedisPubSub.java:75)
      7. redis.clients.jedis.BinaryJedis.subscribe(BinaryJedis.java:3041)
      7 frames
    3. Spring Data Redis
      RedisMessageListenerContainer$SubscriptionTask.run
      1. org.springframework.data.redis.connection.jedis.JedisConnection.subscribe(JedisConnection.java:2434)
      2. org.springframework.data.redis.listener.RedisMessageListenerContainer$SubscriptionTask.run(RedisMessageListenerContainer.java:723)
      2 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame