java.lang.RuntimeException: java.lang.AssertionError: Unexpected end event for AfterStories(java.lang.Object)

GitHub | ak120684 | 7 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

    GitHub comment 98#234627307

    GitHub | 7 months ago | ak120684
    java.lang.RuntimeException: java.lang.AssertionError: Unexpected end event for AfterStories(java.lang.Object)

    Root Cause Analysis

    1. java.lang.AssertionError

      Unexpected end event for AfterStories(java.lang.Object)

      at org.gradle.api.internal.tasks.testing.junit.JUnitTestEventAdapter.testFinished()
    2. org.gradle.api
      JUnitTestEventAdapter.testFinished
      1. org.gradle.api.internal.tasks.testing.junit.JUnitTestEventAdapter.testFinished(JUnitTestEventAdapter.java:121)
      1 frame
    3. JUnit
      RunNotifier.fireTestFinished
      1. org.junit.runner.notification.SynchronizedRunListener.testFinished(SynchronizedRunListener.java:56)
      2. org.junit.runner.notification.RunNotifier$7.notifyListener(RunNotifier.java:190)
      3. org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72)
      4. org.junit.runner.notification.RunNotifier.fireTestFinished(RunNotifier.java:187)
      4 frames
    4. de.codecentric.jbehave
      JUnitScenarioReporter.afterStory
      1. de.codecentric.jbehave.junit.monitoring.JUnitScenarioReporter.afterStory(JUnitScenarioReporter.java:141)
      1 frame
    5. JBehave Core
      Embedder.runStoriesAsPaths
      1. org.jbehave.core.reporters.DelegatingStoryReporter.afterStory(DelegatingStoryReporter.java:49)
      2. org.jbehave.core.reporters.ConcurrentStoryReporter.afterStory(ConcurrentStoryReporter.java:122)
      3. org.jbehave.core.embedder.PerformableTree.performBeforeOrAfterStories(PerformableTree.java:435)
      4. org.jbehave.core.embedder.StoryManager.performStories(StoryManager.java:130)
      5. org.jbehave.core.embedder.StoryManager.runStories(StoryManager.java:107)
      6. org.jbehave.core.embedder.StoryManager.runStoriesAsPaths(StoryManager.java:86)
      7. org.jbehave.core.embedder.Embedder.runStoriesAsPaths(Embedder.java:213)
      7 frames
    6. net.serenitybdd.jbehave
      SerenityReportingRunner.run
      1. net.serenitybdd.jbehave.embedders.ExtendedEmbedder.runStoriesAsPaths(ExtendedEmbedder.java:60)
      2. net.serenitybdd.jbehave.runners.SerenityReportingRunner.run(SerenityReportingRunner.java:175)
      2 frames
    7. org.gradle.api
      SuiteTestClassProcessor.processTestClass
      1. org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:112)
      2. org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:56)
      3. org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
      4. org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
      4 frames
    8. 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
    9. Gradle Core
      ProxyDispatchAdapter$DispatchingInvocationHandler.invoke
      1. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
      2. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
      3. org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
      4. org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
      4 frames
    10. com.sun.proxy
      $Proxy2.processTestClass
      1. com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
      1 frame
    11. org.gradle.api
      TestWorker.processTestClass
      1. org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
      1 frame
    12. 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
    13. Gradle Core
      ReflectionDispatch.dispatch
      1. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
      2. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
      2 frames
    14. org.gradle.messaging
      MessageHub$Handler.run
      1. org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:364)
      1 frame
    15. Gradle Core
      StoppableExecutorImpl$1.run
      1. org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
      2. org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
      2 frames
    16. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames