java.lang.reflect.UndeclaredThrowableException

GitHub | mchiareli | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    CertStore.getCertificates() returns a HashSet, and this doesn't guarantee that the certificates will come ordered as desired, so you might have to use a Collection.toArray() and order them by serial number to be sure which one is which.
  2. 0
    samebug tip
    Check if your path is correct, if it's correct already you have to register your path to the mapping configuration.
  3. 0

    GitHub comment 709#275120962

    GitHub | 3 months ago | mchiareli
    java.lang.reflect.UndeclaredThrowableException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    WireMock, until 1.5.2, only worked with keystores with the password: "password", this was fixed in 1.5.3. Another issue that causes this exception was fixed in 1.5.3 as well.
  6. 0
    samebug tip
    This might be a conflict between different annotation methods. Try not using more than one to avoid conflicts.
    via GitHub by jvalkeal

    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. java.lang.IllegalAccessException

      class is not public: org.apache.ibatis.submitted.usesjava8.default_method.Mapper.defaultGetUser(Object[])User/invokeSpecial, from org.apache.ibatis.submitted.usesjava8.default_method.Mapper/2

      at java.lang.invoke.MemberName.makeAccessException()
    2. Java RT
      MethodHandles$Lookup.unreflectSpecial
      1. java.lang.invoke.MemberName.makeAccessException(MemberName.java:850)
      2. java.lang.invoke.MethodHandles$Lookup.checkAccess(MethodHandles.java:1534)
      3. java.lang.invoke.MethodHandles$Lookup.checkMethod(MethodHandles.java:1472)
      4. java.lang.invoke.MethodHandles$Lookup.getDirectMethodCommon(MethodHandles.java:1621)
      5. java.lang.invoke.MethodHandles$Lookup.getDirectMethodNoSecurityManager(MethodHandles.java:1615)
      6. java.lang.invoke.MethodHandles$Lookup.unreflectSpecial(MethodHandles.java:1234)
      6 frames
    3. MyBatis
      MapperProxy.invoke
      1. org.apache.ibatis.binding.MapperProxy.invokeDefaultMethod(MapperProxy.java:81)
      2. org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:53)
      2 frames
    4. org.apache.ibatis
      DefaultMethodTest.shouldInvokeDefaultMethod
      1. org.apache.ibatis.submitted.usesjava8.default_method.$Proxy8.defaultGetUser(Unknown Source)
      2. org.apache.ibatis.submitted.usesjava8.default_method.DefaultMethodTest.shouldInvokeDefaultMethod(DefaultMethodTest.java:61)
      2 frames
    5. 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
    6. JUnit
      JUnitCore.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.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      13. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      14. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      15. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      15 frames
    7. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
      1 frame
    8. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
      2. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
      3. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
      3 frames
    9. 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
    10. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      1 frame