java.lang.ExceptionInInitializerError

Google Groups | Johan Haleby | 4 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael , rafael and poroszd . 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
    samebug tip
    This might be a conflict between different annotation methods. Try not using more than one to avoid conflicts.
    via GitHub by jvalkeal
  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
    You have two conflicting batik dependencies. Remove or exclude on of them.

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

      Stub!

      at android.net.Uri.parse()
    2. Android Platform
      Uri.parse
      1. android.net.Uri.parse(Uri.java:53)
      1 frame
    3. com.example.gamecat
      GameCatalogContentProvider.<clinit>
      1. com.example.gamecat.GameCatalogContentProvider.<clinit>(GameCatalogContentProvider.java:19)
      1 frame
    4. Unknown
      GameCatalogContentProviderTest.useAppsTable
      1. GameCatalogContentProviderTest.useAppsTable(GameCatalogContentProviderTest.java:37)
      1 frame
    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
      InvokeMethod.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      4 frames
    7. Powermock
      PowerMockStatement$1.run
      1. org.powermock.modules.junit4.rule.PowerMockStatement$1.run(PowerMockRule.java:52)
      1 frame
    8. 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
    9. powermock-reflect
      Whitebox.invokeMethod
      1. org.powermock.reflect.internal.WhiteboxImpl.performMethodInvocation(WhiteboxImpl.java:2014)
      2. org.powermock.reflect.internal.WhiteboxImpl.doInvokeMethod(WhiteboxImpl.java:885)
      3. org.powermock.reflect.internal.WhiteboxImpl.invokeMethod(WhiteboxImpl.java:713)
      4. org.powermock.reflect.Whitebox.invokeMethod(Whitebox.java:401)
      4 frames
    10. powermock-classloading-base
      ClassloaderExecutor.execute
      1. org.powermock.classloading.ClassloaderExecutor.execute(ClassloaderExecutor.java:98)
      2. org.powermock.classloading.ClassloaderExecutor.execute(ClassloaderExecutor.java:78)
      2 frames
    11. Powermock
      PowerMockStatement.evaluate
      1. org.powermock.modules.junit4.rule.PowerMockStatement.evaluate(PowerMockRule.java:49)
      1 frame
    12. Robolectric
      RobolectricTestRunner$1.evaluate
      1. com.xtremelabs.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:288)
      1 frame
    13. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
      2. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
      3. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
      4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
      5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
      6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
      7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
      8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
      9. org.junit.runners.ParentRunner.run(ParentRunner.java:300)
      9 frames
    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