org.springframework.dao.InvalidDataAccessApiUsageException: ERR syntax error; nested exception is org.idevlab.rjc.RedisException: ERR syntax error

Spring JIRA | Jennifer Hickey | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The following call results in a syntax error on RjcConnection: {code} connection.zUnionStore("thirdset", Aggregate.MAX, new int[] { 2, 3 }, "myset", "otherset") org.springframework.dao.InvalidDataAccessApiUsageException: ERR syntax error; nested exception is org.idevlab.rjc.RedisException: ERR syntax error at org.springframework.data.redis.connection.rjc.RjcUtils.convertRjcAccessException(RjcUtils.java:68) at org.springframework.data.redis.connection.rjc.RjcConnection.convertRjcAccessException(RjcConnection.java:80) at org.springframework.data.redis.connection.rjc.RjcConnection.zUnionStore(RjcConnection.java:1868) at org.springframework.data.redis.connection.DefaultStringRedisConnection.zUnionStore(DefaultStringRedisConnection.java:1140) at org.springframework.data.redis.connection.AbstractConnectionIntegrationTests.testZUnionStoreAggWeights(AbstractConnectionIntegrationTests.java:1006) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: org.idevlab.rjc.RedisException: ERR syntax error at org.idevlab.rjc.protocol.Protocol.processError(Protocol.java:69) at org.idevlab.rjc.protocol.Protocol.process(Protocol.java:76) at org.idevlab.rjc.protocol.Protocol.read(Protocol.java:137) at org.idevlab.rjc.ds.RedisConnectionImpl.getIntegerReply(RedisConnectionImpl.java:160) at org.idevlab.rjc.ds.PoolableRedisConnection.getIntegerReply(PoolableRedisConnection.java:123) at org.idevlab.rjc.Client.getIntegerReply(Client.java:676) at org.idevlab.rjc.RedisSessionImpl.zunionstore(RedisSessionImpl.java:590) at org.springframework.data.redis.connection.rjc.RjcConnection.zUnionStore(RjcConnection.java:1866) ... 32 more {code}

    Spring JIRA | 4 years ago | Jennifer Hickey
    org.springframework.dao.InvalidDataAccessApiUsageException: ERR syntax error; nested exception is org.idevlab.rjc.RedisException: ERR syntax error
  2. 0

    The following call results in a syntax error on RjcConnection: {code} connection.zUnionStore("thirdset", Aggregate.MAX, new int[] { 2, 3 }, "myset", "otherset") org.springframework.dao.InvalidDataAccessApiUsageException: ERR syntax error; nested exception is org.idevlab.rjc.RedisException: ERR syntax error at org.springframework.data.redis.connection.rjc.RjcUtils.convertRjcAccessException(RjcUtils.java:68) at org.springframework.data.redis.connection.rjc.RjcConnection.convertRjcAccessException(RjcConnection.java:80) at org.springframework.data.redis.connection.rjc.RjcConnection.zUnionStore(RjcConnection.java:1868) at org.springframework.data.redis.connection.DefaultStringRedisConnection.zUnionStore(DefaultStringRedisConnection.java:1140) at org.springframework.data.redis.connection.AbstractConnectionIntegrationTests.testZUnionStoreAggWeights(AbstractConnectionIntegrationTests.java:1006) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: org.idevlab.rjc.RedisException: ERR syntax error at org.idevlab.rjc.protocol.Protocol.processError(Protocol.java:69) at org.idevlab.rjc.protocol.Protocol.process(Protocol.java:76) at org.idevlab.rjc.protocol.Protocol.read(Protocol.java:137) at org.idevlab.rjc.ds.RedisConnectionImpl.getIntegerReply(RedisConnectionImpl.java:160) at org.idevlab.rjc.ds.PoolableRedisConnection.getIntegerReply(PoolableRedisConnection.java:123) at org.idevlab.rjc.Client.getIntegerReply(Client.java:676) at org.idevlab.rjc.RedisSessionImpl.zunionstore(RedisSessionImpl.java:590) at org.springframework.data.redis.connection.rjc.RjcConnection.zUnionStore(RjcConnection.java:1866) ... 32 more {code}

    Spring JIRA | 4 years ago | Jennifer Hickey
    org.springframework.dao.InvalidDataAccessApiUsageException: ERR syntax error; nested exception is org.idevlab.rjc.RedisException: ERR syntax error

    Root Cause Analysis

    1. org.idevlab.rjc.RedisException

      ERR syntax error

      at org.idevlab.rjc.protocol.Protocol.processError()
    2. org.idevlab.rjc
      RedisSessionImpl.zunionstore
      1. org.idevlab.rjc.protocol.Protocol.processError(Protocol.java:69)
      2. org.idevlab.rjc.protocol.Protocol.process(Protocol.java:76)
      3. org.idevlab.rjc.protocol.Protocol.read(Protocol.java:137)
      4. org.idevlab.rjc.ds.RedisConnectionImpl.getIntegerReply(RedisConnectionImpl.java:160)
      5. org.idevlab.rjc.ds.PoolableRedisConnection.getIntegerReply(PoolableRedisConnection.java:123)
      6. org.idevlab.rjc.Client.getIntegerReply(Client.java:676)
      7. org.idevlab.rjc.RedisSessionImpl.zunionstore(RedisSessionImpl.java:590)
      7 frames
    3. org.springframework.data
      RjcConnection.zUnionStore
      1. org.springframework.data.redis.connection.rjc.RjcConnection.zUnionStore(RjcConnection.java:1866)
      1 frame
    4. Spring Data Redis
      AbstractConnectionIntegrationTests.testZUnionStoreAggWeights
      1. org.springframework.data.redis.connection.DefaultStringRedisConnection.zUnionStore(DefaultStringRedisConnection.java:1140)
      2. org.springframework.data.redis.connection.AbstractConnectionIntegrationTests.testZUnionStoreAggWeights(AbstractConnectionIntegrationTests.java:1006)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. JUnit
      RunBefores.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      5 frames
    7. Spring TestContext
      RunBeforeTestMethodCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
      1 frame
    8. JUnit
      RunAfters.evaluate
      1. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      1 frame
    9. Spring TestContext
      SpringJUnit4ClassRunner.runChild
      1. org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83)
      2. org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
      3. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
      3 frames
    10. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      2. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      3. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      4. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      5. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      6. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      6 frames
    11. Spring TestContext
      RunAfterTestClassCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
      2. org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
      2 frames
    12. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      1 frame
    13. Spring TestContext
      SpringJUnit4ClassRunner.run
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
      1 frame
    14. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      1 frame
    15. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      5 frames