java.lang.ExceptionInInitializerError

GitHub | jlchoike-DL | 2 years ago
  1. 0

    JMockit 1.9 will not run with Robolectric 2.2

    GitHub | 2 years ago | jlchoike-DL
    java.lang.IllegalArgumentException: attempted to invoke public void org.robolectric.shadows.ShadowConfiguration.__constructor__(android.content.res.Configuration) on instance of class org.robolectric.shadows.ShadowConfiguration, but ShadowConfiguration doesn't extend ShadowConfiguration
  2. 0

    IllegalArgumentException when calling shadowed MessageQueue after another Robolectric test

    GitHub | 8 months ago | kzaikin
    java.lang.IllegalArgumentException: attempted to invoke public void com.example.myapplication.SecondTest$InstantMessageQueue.addIdleHandler(android.os.MessageQueue$IdleHandler) on instance of class org.robolectric.shadows.ShadowMessageQueue, but ShadowMessageQueue doesn't extend InstantMessageQueue
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GenericJson.clone() method blows up when trying to clone Google reads

    GitHub | 1 year ago | akiezun
    java.lang.IllegalArgumentException: unable to create new instance of class java.util.Arrays$ArrayList possibly because it is not public
  5. 0

    GitHub comment 38#150273186

    GitHub | 1 year ago | akiezun
    java.lang.IllegalArgumentException: unable to create new instance of class com.google.common.collect.Lists$TransformingRandomAccessList possibly because it is not public

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

      attempted to invoke public void org.robolectric.shadows.ShadowConfiguration.__constructor__(android.content.res.Configuration) on instance of class org.robolectric.shadows.ShadowConfiguration, but ShadowConfiguration doesn't extend ShadowConfiguration

      at android.content.res.Configuration.<init>()
    2. Android Platform
      Configuration.__staticInitializer__
      1. android.content.res.Configuration.<init>(Configuration.java:545)
      2. android.content.res.Configuration.__staticInitializer__(Configuration.java:39)
      2 frames
    3. org.robolectric.bytecode
      RobolectricInternals.classInitializing
      1. org.robolectric.bytecode.RobolectricInternals.performStaticInitialization(RobolectricInternals.java:157)
      2. org.robolectric.bytecode.ShadowWrangler.classInitializing(ShadowWrangler.java:69)
      3. org.robolectric.bytecode.RobolectricInternals.classInitializing(RobolectricInternals.java:67)
      3 frames
    4. Android Platform
      Configuration.<clinit>
      1. android.content.res.Configuration.<clinit>(Configuration.java)
      1 frame
    5. Roboelectric HTTP
      ShadowResources.setSystemResources
      1. org.robolectric.shadows.ShadowResources.setSystemResources(ShadowResources.java:85)
      1 frame
    6. Roboelectric
      RobolectricTestRunner$2.evaluate
      1. org.robolectric.internal.ParallelUniverse.setUpApplicationState(ParallelUniverse.java:82)
      2. org.robolectric.RobolectricTestRunner.setUpApplicationState(RobolectricTestRunner.java:430)
      3. org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:236)
      3 frames
    7. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      2. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      3. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      8 frames
    8. Roboelectric
      RobolectricTestRunner$1.evaluate
      1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:177)
      1 frame
    9. JUnit
      JUnitCore.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      2. org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      2 frames
    10. IDEA
      AppMain.main
      1. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
      2. com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
      2 frames