java.lang.Exception: Unexpected exception, expected<java.lang.IndexOutOfBoundsException> but was<org.lmdbjava.Dbi$BadValueSizeException>

GitHub | benalexau | 6 months 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

    GitHub comment 25#245168748

    GitHub | 6 months ago | benalexau
    java.lang.Exception: Unexpected exception, expected<java.lang.IndexOutOfBoundsException> but was<org.lmdbjava.Dbi$BadValueSizeException>

    Root Cause Analysis

    1. org.lmdbjava.Dbi$BadValueSizeException

      Unsupported size of key/DB name/data, or wrong DUPFIXED size (-30781)

      at org.lmdbjava.ResultCodeMapper.checkRc()
    2. org.lmdbjava
      TxnTest.largeKeysRejected
      1. org.lmdbjava.ResultCodeMapper.checkRc(ResultCodeMapper.java:72)
      2. org.lmdbjava.Dbi.put(Dbi.java:306)
      3. org.lmdbjava.Dbi.put(Dbi.java:275)
      4. org.lmdbjava.TxnTest.largeKeysRejected(TxnTest.java:91)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    4. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
      6. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      7. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      8. org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      9. org.junit.rules.RunRules.evaluate(RunRules.java:20)
      10. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      11. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      12. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      13. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      14. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      15. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      16. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      17. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      18. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      18 frames
    5. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      4. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
      4 frames
    6. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      3 frames