cucumber.runtime.CucumberException: Failed to instantiate class com.pack1.StepDefinitionXMLValidations

Google Groups | nagarjuna y | 4 months ago
  1. 0

    [Cucumber] [Selenium-Java] : Error : cucumber.runtime.CucumberException: Failed to instantiate class

    Google Groups | 4 months ago | nagarjuna y
    cucumber.runtime.CucumberException: Failed to instantiate class com.pack1.StepDefinitionXMLValidations
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Cannot instantiate class packageName.pageName

    Stack Overflow | 4 months ago | Arvind
    java.lang.NullPointerException
  4. 0

    'Cannot instantiate class' error in Selenium WebDriver

    Software Quality Assurance & Testing | 8 months ago | noor salma
    org.testng.TestNGException: Cannot instantiate class com.SF.TestCases.Administrator_Test_Case

  1. musketyr 2 times, last 3 months ago
  2. Nikolay Rybak 6 times, last 3 months ago
  3. Stefan Braune 1 times, last 5 months ago
  4. adawolfs 39 times, last 4 months ago
  5. brunosatriani 8 times, last 5 months ago
9 more registered users
46 unregistered visitors
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.NullPointerException

    No message provided

    at com.google.common.base.Preconditions.checkNotNull()
  2. Guava
    Preconditions.checkNotNull
    1. com.google.common.base.Preconditions.checkNotNull(Preconditions.java:212)
    1 frame
  3. selenium-support
    WebDriverWait.<init>
    1. org.openqa.selenium.support.ui.FluentWait.<init>(FluentWait.java:102)
    2. org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:71)
    3. org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:45)
    3 frames
  4. com.class1
    c1.<init>
    1. com.class1.c1.<init>(FPDMethods.java:26)
    1 frame
  5. com.pack1
    StepDefinitionXMLValidations.<init>
    1. com.pack1.StepDefinitionXMLValidations.<init>(StepDefinitionXMLValidations.java:31)
    1 frame
  6. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  7. Cucumber-JVM: Java
    JavaStepDefinition.execute
    1. cucumber.runtime.java.DefaultJavaObjectFactory.cacheNewInstance(DefaultJavaObjectFactory.java:40)
    2. cucumber.runtime.java.DefaultJavaObjectFactory.getInstance(DefaultJavaObjectFactory.java:32)
    3. cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38)
    3 frames
  8. Cucumber-JVM: Core
    CucumberScenario.run
    1. cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37)
    2. cucumber.runtime.Runtime.runStep(Runtime.java:299)
    3. cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
    4. cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
    5. cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44)
    5 frames
  9. Cucumber-JVM: JUnit
    ExecutionUnitRunner.run
    1. cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91)
    1 frame
  10. JUnit
    ParentRunner.run
    1. org.junit.runners.Suite.runChild(Suite.java:127)
    2. org.junit.runners.Suite.runChild(Suite.java:26)
    3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    8. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    8 frames
  11. Cucumber-JVM: JUnit
    ExamplesRunner.run
    1. cucumber.runtime.junit.ExamplesRunner.run(ExamplesRunner.java:59)
    1 frame
  12. JUnit
    ParentRunner.run
    1. org.junit.runners.Suite.runChild(Suite.java:127)
    2. org.junit.runners.Suite.runChild(Suite.java:26)
    3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    8. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    8 frames
  13. Cucumber-JVM: JUnit
    FeatureRunner.runChild
    1. cucumber.runtime.junit.ScenarioOutlineRunner.run(ScenarioOutlineRunner.java:53)
    2. cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
    3. cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
    3 frames
  14. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    6 frames
  15. Cucumber-JVM: JUnit
    Cucumber.runChild
    1. cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
    2. cucumber.api.junit.Cucumber.runChild(Cucumber.java:93)
    3. cucumber.api.junit.Cucumber.runChild(Cucumber.java:37)
    3 frames
  16. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    6 frames
  17. Cucumber-JVM: JUnit
    Cucumber.run
    1. cucumber.api.junit.Cucumber.run(Cucumber.java:98)
    1 frame
  18. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    1 frame
  19. 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