java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha256Hex

3,084 views
Skip to first unread message

Muhammed Salman

unread,
Aug 6, 2013, 7:51:39 AM8/6/13
to thucydid...@googlegroups.com
Hi all,

I am getting the following error

Generating reports view to 'C:\Development\Projects\WebDriverJBehaveTest\ThucydidesJbehave\target\jbehave' using formats '[stats, console, html, xml, thucydidesreporter, junitscenarioreporter]' and view properties '{decorateNonHtml=true}'
Reports view generated with 4 stories (of which 0 pending) containing 4 scenarios (of which 0 pending)
java.lang.RuntimeException: java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha256Hex(Ljava/lang/String;)Ljava/lang/String;
at net.thucydides.jbehave.runners.ThucydidesReportingRunner.run(ThucydidesReportingRunner.java:154)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

I tried to work around with  'org.apache.commons.codec' based on this answer : http://stackoverflow.com/questions/9126567/method-not-found-using-digestutils-in-android?answertab=active#tab-top But no luck. If any one has any ideas would be great.

John Smart

unread,
Aug 6, 2013, 8:07:39 AM8/6/13
to Muhammed Salman, thucydid...@googlegroups.com
Looks like another dependency conflict - the apache commons codec dependency that Thucydides needs is being overridden by an older version in the pom file.


--
You received this message because you are subscribed to the Google Groups "Thucydides Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send an email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
___________________________________________________
John Smart | Wakaleo Consulting  |  +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com  |  john....@wakaleo.com

Muhammed Salman

unread,
Aug 6, 2013, 10:07:42 AM8/6/13
to thucydid...@googlegroups.com
Thanks John for the prompt reply. I was over complicating this. Solved simply by putting 

    <dependency>
      <groupId>org.apache.directory.studio</groupId>
      <artifactId>org.apache.commons.codec</artifactId>
      <version>1.8</version>
    </dependency>

in pom. 
Reply all
Reply to author
Forward
0 new messages