Skip to main content

Issue when running jbehave story

  3 posts   Feedicon  
Replies: 2 - Last Post: June 19, 2013 21:11
by: alex-okrushko
showing 1 - 3 of 3
Posted: September 26, 2012 07:47 by getafix14
Hi,
I am getting this error when running a jbehave story in Thucydides 0.9.22/webdriver

Can you please have a look what's the problem ?

Thanks,

Part of my pom.xml has
<thucydides.jbehave.version>0.9.20</thucydides.jbehave.version>
<thucydides.version>0.9.22</thucydides.version>
<spring.version>3.1.1.RELEASE</spring.version>
<jbehave.version>3.6.8</jbehave.version>
<poi.version>3.8</poi.version>

Console Error :


"C:\Program Files\Java\jdk1.6.0_25\bin\java" -ea -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 11.1.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 11.1.3\lib\idea_rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA 11.1.3\plugins\junit\lib\junit-rt.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.6.0_25\jre\lib\ext\sunpkcs11.jar;C:\workspace\ttss-acceptance\target\test-classes;C:\workspace\ttss-acceptance\target\classes;C:\tmp\.m2\repository.artifactory\org\dbunit\dbunit\2.4.8\dbunit-2.4.8.jar;C:\tmp\.m2\repository.artifactory\org\slf4j\slf4j-api\1.5.6\slf4j-api-1.5.6.jar;C:\tmp\.m2\repository.artifactory\junit\junit\3.8.2\junit-3.8.2.jar;C:\tmp\.m2\repository.artifactory\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\tmp\.m2\repository.artifactory\oracle\ojdbc6\11.2.0.2.0\ojdbc6-11.2.0.2.0.jar;C:\tmp\.m2\repository.artifactory\org\jbehave\jbehave-core\3.6.8\jbehave-core-3.6.8.jar;C:\tmp\.m2\repository.artifactory\junit\junit-dep\4.8.2\junit-dep-4.8.2.jar;C:\tmp\.m2\repository.artifactory\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar;C:\tmp\.m2\repository.artifactory\org\hamcrest\hamcrest-library\1.1\hamcrest-library-1.1.jar;C:\tmp\.m2\repository.artifactory\org\hamcrest\hamcrest-integration\1.1\hamcrest-integration-1.1.jar;C:\tmp\.m2\repository.artifactory\commons-io\commons-io\1.4\commons-io-1.4.jar;C:\tmp\.m2\repository.artifactory\commons-lang\commons-lang\2.5\commons-lang-2.5.jar;C:\tmp\.m2\repository.artifactory\org\codehaus\plexus\plexus-utils\2.0.5\plexus-utils-2.0.5.jar;C:\tmp\.m2\repository.artifactory\org\freemarker\freemarker\2.3.16\freemarker-2.3.16.jar;C:\tmp\.m2\repository.artifactory\com\thoughtworks\paranamer\paranamer\2.4\paranamer-2.4.jar;C:\tmp\.m2\repository.artifactory\com\thoughtworks\xstream\xstream\1.3.1\xstream-1.3.1.jar;C:\tmp\.m2\repository.artifactory\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;C:\tmp\.m2\repository.artifactory\org\jbehave\jbehave-groovy\3.6.8\jbehave-groovy-3.6.8.jar;C:\tmp\.m2\repository.artifactory\org\codehaus\groovy\groovy-all\1.8.6\groovy-all-1.8.6.jar;C:\tmp\.m2\repository.artifactory\net\thucydides\thucydides-core\0.9.18\thucydides-core-0.9.18.jar;C:\tmp\.m2\repository.artifactory\cglib\cglib\2.2.2\cglib-2.2.2.jar;C:\tmp\.m2\repository.artifactory\asm\asm\3.3.1\asm-3.3.1.jar;C:\tmp\.m2\repository.artifactory\commons-codec\commons-codec\1.6\commons-codec-1.6.jar;C:\tmp\.m2\repository.artifactory\com\opera\operadriver\0.10\operadriver-0.10.jar;C:\tmp\.m2\repository.artifactory\com\opera\operalaunchers\0.6\operalaunchers-0.6.jar;C:\tmp\.m2\repository.artifactory\com\google\protobuf\protobuf-java\2.4.1\protobuf-java-2.4.1.jar;C:\tmp\.m2\repository.artifactory\com\google\guava\guava\13.0\guava-13.0.jar;C:\tmp\.m2\repository.artifactory\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;C:\tmp\.m2\repository.artifactory\org\apache\commons\commons-exec\1.1\commons-exec-1.1.jar;C:\tmp\.m2\repository.artifactory\org\ini4j\ini4j\0.5.2\ini4j-0.5.2.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-server\2.25.0\selenium-server-2.25.0.jar;C:\tmp\.m2\repository.artifactory\org\bouncycastle\bcprov-jdk15on\1.47\bcprov-jdk15on-1.47.jar;C:\tmp\.m2\repository.artifactory\org\bouncycastle\bcpkix-jdk15on\1.47\bcpkix-jdk15on-1.47.jar;C:\tmp\.m2\repository.artifactory\mx4j\mx4j-tools\3.0.1\mx4j-tools-3.0.1.jar;C:\tmp\.m2\repository.artifactory\org\mortbay\jetty\servlet-api-2.5\6.1.9\servlet-api-2.5-6.1.9.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\jetty-repacked\7.6.1\jetty-repacked-7.6.1.jar;C:\tmp\.m2\repository.artifactory\net\jcip\jcip-annotations\1.0\jcip-annotations-1.0.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-java\2.25.0\selenium-java-2.25.0.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-android-driver\2.25.0\selenium-android-driver-2.25.0.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-remote-driver\2.25.0\selenium-remote-driver-2.25.0.jar;C:\tmp\.m2\repository.artifactory\org\json\json\20080701\json-20080701.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-api\2.25.0\selenium-api-2.25.0.jar;C:\tmp\.m2\repository.artifactory\org\apache\httpcomponents\httpclient\4.1.2\httpclient-4.1.2.jar;C:\tmp\.m2\repository.artifactory\org\apache\httpcomponents\httpcore\4.1.2\httpcore-4.1.2.jar;C:\tmp\.m2\repository.artifactory\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;C:\tmp\.m2\repository.artifactory\net\java\dev\jna\jna\3.4.0\jna-3.4.0.jar;C:\tmp\.m2\repository.artifactory\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-chrome-driver\2.25.0\selenium-chrome-driver-2.25.0.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-htmlunit-driver\2.25.0\selenium-htmlunit-driver-2.25.0.jar;C:\tmp\.m2\repository.artifactory\net\sourceforge\htmlunit\htmlunit\2.9\htmlunit-2.9.jar;C:\tmp\.m2\repository.artifactory\xalan\xalan\2.7.1\xalan-2.7.1.jar;C:\tmp\.m2\repository.artifactory\xalan\serializer\2.7.1\serializer-2.7.1.jar;C:\tmp\.m2\repository.artifactory\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\tmp\.m2\repository.artifactory\org\apache\httpcomponents\httpmime\4.1.2\httpmime-4.1.2.jar;C:\tmp\.m2\repository.artifactory\net\sourceforge\htmlunit\htmlunit-core-js\2.9\htmlunit-core-js-2.9.jar;C:\tmp\.m2\repository.artifactory\xerces\xercesImpl\2.9.1\xercesImpl-2.9.1.jar;C:\tmp\.m2\repository.artifactory\net\sourceforge\nekohtml\nekohtml\1.9.15\nekohtml-1.9.15.jar;C:\tmp\.m2\repository.artifactory\net\sourceforge\cssparser\cssparser\0.9.5\cssparser-0.9.5.jar;C:\tmp\.m2\repository.artifactory\org\w3c\css\sac\1.3\sac-1.3.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-firefox-driver\2.25.0\selenium-firefox-driver-2.25.0.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-ie-driver\2.25.0\selenium-ie-driver-2.25.0.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-iphone-driver\2.25.0\selenium-iphone-driver-2.25.0.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-safari-driver\2.25.0\selenium-safari-driver-2.25.0.jar;C:\tmp\.m2\repository.artifactory\org\webbitserver\webbit\0.4.6\webbit-0.4.6.jar;C:\tmp\.m2\repository.artifactory\org\jboss\netty\netty\3.2.7.Final\netty-3.2.7.Final.jar;C:\tmp\.m2\repository.artifactory\org\seleniumhq\selenium\selenium-support\2.25.0\selenium-support-2.25.0.jar;C:\tmp\.m2\repository.artifactory\org\yaml\snakeyaml\1.8\snakeyaml-1.8.jar;C:\tmp\.m2\repository.artifactory\net\sf\opencsv\opencsv\2.0\opencsv-2.0.jar;C:\tmp\.m2\repository.artifactory\commons-beanutils\commons-beanutils-core\1.8.3\commons-beanutils-core-1.8.3.jar;C:\tmp\.m2\repository.artifactory\com\googlecode\lambdaj\lambdaj\2.3.3\lambdaj-2.3.3.jar;C:\tmp\.m2\repository.artifactory\org\objenesis\objenesis\1.2\objenesis-1.2.jar;C:\tmp\.m2\repository.artifactory\joda-time\joda-time\2.0\joda-time-2.0.jar;C:\tmp\.m2\repository.artifactory\net\thucydides\thucydides-report-resources\0.9.18\thucydides-report-resources-0.9.18.jar;C:\tmp\.m2\repository.artifactory\com\google\inject\guice\3.0\guice-3.0.jar;C:\tmp\.m2\repository.artifactory\javax\inject\javax.inject\1\javax.inject-1.jar;C:\tmp\.m2\repository.artifactory\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\tmp\.m2\repository.artifactory\org\apache\commons\commons-lang3\3.0.1\commons-lang3-3.0.1.jar;C:\tmp\.m2\repository.artifactory\net\sf\flexjson\flexjson\2.1\flexjson-2.1.jar;C:\tmp\.m2\repository.artifactory\net\sourceforge\jexcelapi\jxl\2.6.12\jxl-2.6.12.jar;C:\tmp\.m2\repository.artifactory\log4j\log4j\1.2.14\log4j-1.2.14.jar;C:\tmp\.m2\repository.artifactory\joda-time\joda-time-hibernate\1.3\joda-time-hibernate-1.3.jar;C:\tmp\.m2\repository.artifactory\com\h2database\h2\1.3.160\h2-1.3.160.jar;C:\tmp\.m2\repository.artifactory\net\sf\extcos\extcos\0.3b\extcos-0.3b.jar;C:\tmp\.m2\repository.artifactory\asm\asm-all\3.2\asm-all-3.2.jar;C:\tmp\.m2\repository.artifactory\org\hibernate\hibernate-entitymanager\3.5.4-Final\hibernate-entitymanager-3.5.4-Final.jar;C:\tmp\.m2\repository.artifactory\org\hibernate\hibernate-core\3.5.4-Final\hibernate-core-3.5.4-Final.jar;C:\tmp\.m2\repository.artifactory\antlr\antlr\2.7.6\antlr-2.7.6.jar;C:\tmp\.m2\repository.artifactory\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\tmp\.m2\repository.artifactory\javax\transaction\jta\1.1\jta-1.1.jar;C:\tmp\.m2\repository.artifactory\org\hibernate\hibernate-annotations\3.5.4-Final\hibernate-annotations-3.5.4-Final.jar;C:\tmp\.m2\repository.artifactory\org\hibernate\hibernate-commons-annotations\3.2.0.Final\hibernate-commons-annotations-3.2.0.Final.jar;C:\tmp\.m2\repository.artifactory\org\hibernate\javax\persistence\hibernate-jpa-2.0-api\1.0.0.Final\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\tmp\.m2\repository.artifactory\javassist\javassist\3.9.0.GA\javassist-3.9.0.GA.jar;C:\tmp\.m2\repository.artifactory\net\thucydides\thucydides-junit\0.9.18\thucydides-junit-0.9.18.jar;C:\tmp\.m2\repository.artifactory\net\thucydides\thucydides-jbehave-plugin\0.9.20\thucydides-jbehave-plugin-0.9.20.jar;C:\tmp\.m2\repository.artifactory\de\codecentric\jbehave-junit-runner\1.0.1\jbehave-junit-runner-1.0.1.jar;C:\tmp\.m2\repository.artifactory\org\mockito\mockito-core\1.9.0\mockito-core-1.9.0.jar;C:\tmp\.m2\repository.artifactory\org\slf4j\slf4j-simple\1.6.1\slf4j-simple-1.6.1.jar;C:\tmp\.m2\repository.artifactory\org\apache\poi\poi\3.8\poi-3.8.jar;C:\tmp\.m2\repository.artifactory\org\apache\poi\poi-ooxml\3.8\poi-ooxml-3.8.jar;C:\tmp\.m2\repository.artifactory\org\apache\poi\poi-ooxml-schemas\3.8\poi-ooxml-schemas-3.8.jar;C:\tmp\.m2\repository.artifactory\org\apache\xmlbeans\xmlbeans\2.3.0\xmlbeans-2.3.0.jar;C:\tmp\.m2\repository.artifactory\stax\stax-api\1.0.1\stax-api-1.0.1.jar;C:\tmp\.m2\repository.artifactory\org\springframework\spring-test\3.1.1.RELEASE\spring-test-3.1.1.RELEASE.jar;C:\tmp\.m2\repository.artifactory\org\springframework\spring-context\3.1.1.RELEASE\spring-context-3.1.1.RELEASE.jar;C:\tmp\.m2\repository.artifactory\org\springframework\spring-aop\3.1.1.RELEASE\spring-aop-3.1.1.RELEASE.jar;C:\tmp\.m2\repository.artifactory\org\springframework\spring-asm\3.1.1.RELEASE\spring-asm-3.1.1.RELEASE.jar;C:\tmp\.m2\repository.artifactory\org\springframework\spring-beans\3.1.1.RELEASE\spring-beans-3.1.1.RELEASE.jar;C:\tmp\.m2\repository.artifactory\org\springframework\spring-core\3.1.1.RELEASE\spring-core-3.1.1.RELEASE.jar;C:\tmp\.m2\repository.artifactory\org\springframework\spring-expression\3.1.1.RELEASE\spring-expression-3.1.1.RELEASE.jar;C:\tmp\.m2\repository.artifactory\org\springframework\spring-context-support\3.1.1.RELEASE\spring-context-support-3.1.1.RELEASE.jar;C:\tmp\.m2\repository.artifactory\org\springframework\spring-jdbc\3.1.1.RELEASE\spring-jdbc-3.1.1.RELEASE.jar;C:\tmp\.m2\repository.artifactory\org\springframework\spring-tx\3.1.1.RELEASE\spring-tx-3.1.1.RELEASE.jar;C:\tmp\.m2\repository.artifactory\com\kenai\nbpwr\org-apache-commons-dbcp\1.2.2-201002241055\org-apache-commons-dbcp-1.2.2-201002241055.jar;C:\tmp\.m2\repository.artifactory\commons-dbcp\commons-dbcp\1.2.2\commons-dbcp-1.2.2.jar;C:\tmp\.m2\repository.artifactory\commons-pool\commons-pool\1.3\commons-pool-1.3.jar;C:\tmp\.m2\repository.artifactory\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1_3.jar" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 au.gov.nsw.transport.webtest.RegisterClient
SLF4J: The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
Processing system properties {}
Using controls EmbedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=false,ignoreFailureInView=false,verboseFailures=false,verboseFiltering=false,storyTimeoutInSecs=300,threads=1]

(BeforeStories)

Running story stories/Client/register_client.story
Initialize listeners
984 [pool-1-thread-1] INFO net.thucydides.core.webdriver.SystemPropertiesConfiguration - Writing reports to target\site\thucydides
984 [pool-1-thread-1] INFO net.thucydides.core.Thucydides -

-------------------------------------------------------------------------------------------------------
.___________. __ __ __ __ ______ ____ ____ _______ __ _______ _______ _______.
| || | | | | | | | / |\ \ / / | \ | | | \ | ____| / |
`---| |----`| |__| | | | | | | ,----' \ \/ / | .--. || | | .--. || |__ | (----`
| | | __ | | | | | | | \_ _/ | | | || | | | | || __| \ \
| | | | | | | `--' | | `----. | | | '--' || | | '--' || |____.----) |
|__| |__| |__| \______/ \______| |__| |_______/ |__| |_______/ |_______|_______/

-------------------------------------------------------------------------------------------------------

1453 [pool-1-thread-1] ERROR net.thucydides.core.steps.Listeners - Failed to create the statistics listener - possible database configuration issue
java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/ObjectWinkLorg/slf4j/helpers/FormattingTuple;
at org.slf4j.impl.SimpleLogger.formatAndLog(SimpleLogger.java:222)
at org.slf4j.impl.SimpleLogger.info(SimpleLogger.java:258)
at org.hibernate.cfg.annotations.Version.<clinit>(Version.java:43)
at org.hibernate.cfg.AnnotationConfiguration.<clinit>(AnnotationConfiguration.java:135)
at org.hibernate.ejb.Ejb3Configuration.<clinit>(Ejb3Configuration.java:128)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:55)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48)
at net.thucydides.core.guice.ThucydidesModule.createEntityManagerFactory(ThucydidesModule.java:116)
at net.thucydides.core.guice.ThucydidesModule.provideEntityManagerFactory(ThucydidesModule.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:65)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:65)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:65)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1009)
at net.thucydides.core.steps.Listeners.getStatisticsListener(Listeners.java:48)
at net.thucydides.core.ThucydidesListeners.<init>(ThucydidesListeners.java:27)
at net.thucydides.core.ThucydidesReports.setupListeners(ThucydidesReports.java:16)
at net.thucydides.jbehave.ThucydidesReporter.getThucydidesListeners(ThucydidesReporter.java:60)
at net.thucydides.jbehave.ThucydidesReporter.beforeStory(ThucydidesReporter.java:93)
at org.jbehave.core.reporters.DelegatingStoryReporter.beforeStory(DelegatingStoryReporter.java:67)
at org.jbehave.core.reporters.ConcurrentStoryReporter.beforeStory(ConcurrentStoryReporter.java:107)
at org.jbehave.core.embedder.StoryRunner.runCancellable(StoryRunner.java:243)
at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:211)
at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:172)
at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:229)
at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:201)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

(AfterStories)
generateReports
generateReports done

Generating reports view to 'C:\workspace\ttss-acceptance\target\jbehave' using formats '[stats, console, html, xml, thucydidesreporter, junitscenarioreporter]' and view properties '{decorateNonHtml=true}'
log4j:WARN No appenders could be found for logger (freemarker.cache).
log4j:WARN Please initialize the log4j system properly.
Reports view generated with 0 stories (of which 0 pending) containing 0 scenarios (of which 0 pending)
java.lang.RuntimeException: org.jbehave.core.embedder.Embedder$RunningStoriesFailed: Failures in running stories:
stories/Client/register_client.story: org.jbehave.core.embedder.StoryManager$StoryExecutionFailed: stories/Client/register_client.story
at de.codecentric.jbehave.junit.monitoring.JUnitReportingRunner.run(JUnitReportingRunner.java:81)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:76)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.jbehave.core.embedder.Embedder$RunningStoriesFailed: Failures in running stories:
stories/Client/register_client.story: org.jbehave.core.embedder.StoryManager$StoryExecutionFailed: stories/Client/register_client.story
at org.jbehave.core.embedder.Embedder$ThrowingRunningStoriesFailed.handleFailures(Embedder.java:495)
at org.jbehave.core.embedder.Embedder.handleFailures(Embedder.java:224)
at org.jbehave.core.embedder.Embedder.runStoriesAsPaths(Embedder.java:205)
at de.codecentric.jbehave.junit.monitoring.JUnitReportingRunner.run(JUnitReportingRunner.java:79)
... 9 more

Process finished with exit code -2
Posted: September 26, 2012 07:52 by johnsmart
At first glance, this looks like an issue with conflicting versions of slf4j. Could you send me your pom.xml? I'll take a look.
Posted: June 19, 2013 21:11 by alex-okrushko
You are right!

added the dependency that wrongfully added dependencies on both slf4j-simple and slf4j-api. (only slf4j-simple is needed -> it already include slf4j-api)

excluding the slf4j-api from that dependency solved the problem.

[http://i.imgur.com/HaMS5LN.jpg]
Replies: 2 - Last Post: June 19, 2013 21:11
by: alex-okrushko
 
 
Close
loading
Please Confirm
Close