org.springframework.dao.InvalidDataAccessApiUsageException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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!

tip

Add your password property to the block in your Tomcat context.xml with JediShardInfo.setPassword(redisPassword)

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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}
    via by Jennifer Hickey,
  • 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}
    via by Jennifer Hickey,
  • ERR Protocol error: invalid bulk length
    via by Sairam M P,
  • migrate bug
    via GitHub by wylyeak
    ,
    • 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

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    aldrinlealaldrinleal
    3676 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    29 more bugmates