java.lang.RuntimeException: Stub!

GitHub | RobertREvans76 | 9 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

    "XmlPullParserFactory not mocked" issue while unit testing

    Stack Overflow | 2 weeks ago | remya thekkuvettil
    java.lang.RuntimeException: Method newInstance in org.xmlpull.v1.XmlPullParserFactory not mocked. See http://g.co/androidstudio/not-mocked for details.
  2. 0

    Robolectric and Dagger testing

    Stack Overflow | 4 years ago | Andrea Richiardi
    java.lang.RuntimeException: Stub!
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Exception in thread "main" java.lang.RuntimeException: Stub XmlPullParserFactory

    Stack Overflow | 2 years ago | Olva
    java.lang.RuntimeException: Stub!

    3 unregistered visitors

    Root Cause Analysis

    1. java.lang.RuntimeException

      Stub!

      at org.xmlpull.v1.XmlPullParserFactory.newInstance()
    2. Android Platform
      XmlPullParserFactory.newInstance
      1. org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:13)
      1 frame
    3. XStream Core
      XStream.fromXML
      1. com.thoughtworks.xstream.io.xml.XppDriver.createParser(XppDriver.java:57)
      2. com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54)
      3. com.thoughtworks.xstream.XStream.fromXML(XStream.java:1085)
      4. com.thoughtworks.xstream.XStream.fromXML(XStream.java:1076)
      4 frames
    4. Roboelectric
      RobolectricTestRunner.runChild
      1. org.robolectric.internal.DeepCloner.clone(DeepCloner.java:29)
      2. org.robolectric.ParameterizedRobolectricTestRunner$TestClassRunnerForParameters.methodBlock(ParameterizedRobolectricTestRunner.java:109)
      3. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:174)
      4. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:63)
      4 frames
    5. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      5 frames
    6. Roboelectric
      RobolectricTestRunner$1.evaluate
      1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:140)
      1 frame
    7. JUnit
      JUnitCore.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      2. org.junit.runners.Suite.runChild(Suite.java:128)
      3. org.junit.runners.Suite.runChild(Suite.java:27)
      4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      9. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      10. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      10 frames
    8. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
      2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
      2 frames
    9. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
      2 frames
    10. 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:497)
      4 frames
    11. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      1 frame