cucumber.runtime.CucumberException

java.lang.NoSuchMethodException: sk.bsmk.StepsB$$Lambda$1/464676531.accept(java.lang.Object, java.lang.Object)

Solutions on the web11

  • java.lang.NoSuchMethodException: sk.bsmk.StepsB$$Lambda$1/464676531.accept(java.lang.Object, java.lang.Object)
  • via GitHub by bassmake
    , 1 year ago
    java.lang.NoSuchMethodException: sk.bsmk.StepsB$$Lambda$1/516537656.accept(java.lang.Object, java.lang.Object)
  • via GitHub by atorstling
    , 11 months ago
    java.lang.NoSuchMethodException: com.example.Steps$$Lambda$3/358849801.accept(java.lang.Object)
  • Stack trace

    • cucumber.runtime.CucumberException: java.lang.NoSuchMethodException: sk.bsmk.StepsB$$Lambda$1/464676531.accept(java.lang.Object, java.lang.Object) at cucumber.runtime.java.JavaBackend.addStepDefinition(JavaBackend.java:164) at cucumber.api.java8.En.Then(En.java:289) at sk.bsmk.StepsB.<init>(StepsB.java:16) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:342) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:678) at cucumber.runtime.java.picocontainer.PicoFactory.getInstance(PicoFactory.java:37) at cucumber.runtime.java.JavaBackend.buildWorld(JavaBackend.java:131) at cucumber.runtime.Runtime.buildBackendWorlds(Runtime.java:140) at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:38) at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:93) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at cucumber.api.junit.Cucumber.run(Cucumber.java:98) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) Caused by: java.lang.NoSuchMethodException: sk.bsmk.StepsB$$Lambda$1/464676531.accept(java.lang.Object, java.lang.Object) at java.lang.Class.getDeclaredMethod(Class.java:2130) at cucumber.runtime.java.Java8StepDefinition.<init>(Java8StepDefinition.java:53) at cucumber.runtime.java.JavaBackend.addStepDefinition(JavaBackend.java:162) ... 48 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    63 times, 1 month ago
    Unknown user
    Once, 3 months ago
    11 times, 3 months ago
    3 times, 5 months ago
    48 more bugmates