Details
Description
I got following exception when building attached project (mvn clean install):
-------------------------------------------------------------------------------
Test set: pl.mmadej.jbehave.JBehaveStoriesTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.562 sec <<< FAILURE!
[run_with_no_replacement.story](pl.mmadej.jbehave.JBehaveStoriesTest) Time elapsed: 0.343 sec <<< ERROR!
org.jbehave.core.embedder.Embedder$RunningStoriesFailed: Failures in running before or after stories steps
at org.jbehave.core.embedder.Embedder.runStoriesAsPaths(Embedder.java:210)
at pl.mmadej.jbehave.JBehaveStoriesTest.run(JBehaveStoriesTest.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Please investigate. This error happens with jbehave 3.4. When I'm using 3.3.2 everything looks ok.
Internally there is NPE in StoryRunner:76 – currentStrategy.get().handleFailure(storyFailure.get());
currentStrategy.get() returns null.
Please investigate.
Thanks in advance for your help
Activity
Field | Original Value | New Value |
---|---|---|
Summary | NPE in StoryRunner:76 [currentStrategy.get().handleFailure(storyFailure.get());] - causing org.jbehave.core.embedder.Embedder$RunningStoriesFailed: Failures in running before or after stories steps | NPE in StoryRunner: currentStrategy is not set when running before or after stories steps |
Fix Version/s | 3.4.1 [ 17387 ] | |
Fix Version/s | 3.4 [ 17278 ] |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Summary | NPE in StoryRunner: currentStrategy is not set when running before or after stories steps | StoryRunner failure strategy is not set when running before or after stories steps in multiple threads |
Fix Version/s | 3.5 [ 17393 ] |
Only occurs if you use multiple threads.
Need to investigate why, but for nos stick to 1 thread.