#436 httpunit 1.7 does not work with latest Tidy release r918

closed-fixed
None
5
2012-09-12
2009-10-16
Chuck Betts
No

When running with the latest versions of jtidy-r918 and httpunit-1.7 I see the following errors:

java.lang.NoSuchMethodError: org.w3c.tidy.Tidy.setCharEncoding(I)V
at com.meterware.httpunit.parsing.JTidyHTMLParser.getParser(JTidyHTMLParser.java:90)
at com.meterware.httpunit.parsing.JTidyHTMLParser.parse(JTidyHTMLParser.java:46)
at com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:271)
at com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:1301)
at com.meterware.httpunit.WebResponse.getFrames(WebResponse.java:1285)
at com.meterware.httpunit.WebResponse.getFrameRequests(WebResponse.java:1024)

I decompiled the latest tidy.class and sure enough, the "setCharEncoding" method no longer exists, presumably replaced by the "setInputEncoding" method. I will use the older jtidy version for now, but would like to update in the future.

Discussion

  • Wolfgang Fahl

    Wolfgang Fahl - 2012-09-12
    • assigned_to: nobody --> wolfgang_fahl
    • status: open --> closed-fixed
     
  • Wolfgang Fahl

    Wolfgang Fahl - 2012-09-12

    The change is now in the subversion repository and will be in the next build

     

Log in to post a comment.