Re: JTidy access error?

Dear sirs,

our build environment:

RedHat Linux 7.2
sun jvm/java 1.4
Tomcat 4.03
junit 3.7
httpunit 1.4
Tidy -- version packaged with httpunit 1.4, latest version I believe (R7?)

We are getting the above aforementioned error when using the textui testrunner version of junit, not the awt or swing testrunner.  This issue was fixed upon using JTidy R5, also as mentioned above.

The stacktrace is as follows:

[junit] try to access field org.w3c.tidy.ParserImpl._parseHead from class org.w3c.tidy.ParserImpl$ParseHTML
    [junit] java.lang.IllegalAccessError: try to access field org.w3c.tidy.ParserImpl._parseHead from class org.w3c.tidy.ParserImpl$ParseHTML
    [junit]     at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java)
    [junit]     at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java)
    [junit]     at org.w3c.tidy.Tidy.parse(Tidy.java)
    [junit]     at org.w3c.tidy.Tidy.parseDOM(Tidy.java)
    [junit]     at com.meterware.httpunit.ReceivedPage.getDOM(ReceivedPage.java:113)
    [junit]     at com.meterware.httpunit.ReceivedPage.<init>(ReceivedPage.java:47)
    [junit]     at com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:833)
    [junit]     at com.meterware.httpunit.WebResponse.addFrameTags(WebResponse.java:821)
    [junit]     at com.meterware.httpunit.WebResponse.getFrames(WebResponse.java:811)
    [junit]     at com.meterware.httpunit.WebResponse.getFrameNames(WebResponse.java:257)
    [junit]     at com.meterware.httpunit.WebClient.updateFrames(WebClient.java:389)
    [junit]     at com.meterware.httpunit.WebClient.updateClient(WebClient.java:306)
    [junit]     at com.meterware.httpunit.WebClient.getResponse(WebClient.java:72)
    [junit]     at com.meterware.httpunit.WebClient.getResponse(WebClient.java:57)
    [junit]     at com.thing8.web.logintest.LoginJspTest.getPage(Unknown Source)
    [junit]     at com.thing8.web.logintest.LoginJspTest.testLoginBadUsername(Unknown Source)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [junit]     at java.lang.reflect.Method.invoke(Method.java:324)
    [junit]     at junit.framework.TestCase.runTest(TestCase.java:166)
    [junit]     at junit.framework.TestCase.runBare(TestCase.java:140)
    [junit]     at junit.framework.TestResult$1.protect(TestResult.java:106)
    [junit]     at junit.framework.TestResult.runProtected(TestResult.java:124)
    [junit]     at junit.framework.TestResult.run(TestResult.java:109)
    [junit]     at junit.framework.TestCase.run(TestCase.java:131)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:168)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:168)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:168)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:582)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:403)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:380)
    [junit]     at org.apache.tools.ant.Task.perform(Task.java:217)
    [junit]     at org.apache.tools.ant.Target.execute(Target.java:184)
    [junit]     at org.apache.tools.ant.Target.performTasks(Target.java:202)
    [junit]     at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    [junit]     at org.apache.tools.ant.Project.executeTargets(Project.java:560)
    [junit]     at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [junit]     at org.apache.tools.ant.Main.start(Main.java:153)
    [junit]     at org.apache.tools.ant.Main.main(Main.java:176)
    [junit] 

Hope this helps...

Received on Thursday, 4 April 2002 11:57:46 UTC