W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2002

Re: JTidy access error?

From: Rory I. Sinclair <rory@intronet.com>
Date: Thu, 21 Mar 2002 12:40:50 -0500 (EST)
Message-ID: <00c101c1d0ff$0a71c2b0$a502a8c0@homer>
To: <html-tidy@w3.org>
Is there any resolution for this problem?  As far as I can tell its still an
issue with the latest JUnit, HttpUnit and Sun JDK.

Date: Tue, 6 Feb 2001 18:20:40 -0500 (EST)
Message-Id: <v03110720b6a5f11e1d14@[]>
To: Gary L Peskin <garyp@firstech.com>
From: Russell Gold <russgold@acm.org>
Cc: HTML Tidy List <html-tidy@w3.org>
Subject: Re: JTidy access error?

At 11:36 PM -0000 2/5/01, Gary L Peskin wrote:
>Russell Gold wrote:
>> A number of people have been reporting this error when using JTidy with
HttpUnit and JUnit:
>> java.lang.IllegalAccessError: try to access field
>> org.w3c.tidy.ParserImpl._parseHead from class
>> org.w3c.tidy.ParserImpl$ParseHTML
>>         at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java)
>>         at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java)
>>         at org.w3c.tidy.Tidy.parse(Tidy.java)
>>         at org.w3c.tidy.Tidy.parseDOM(Tidy.java)
>>         at
>>         at
>> com.meterware.httpunit.WebResponse.getReceivedPage(WebResponse.java:351)
>>         at
>> com.meterware.httpunit.WebResponse.getFrames(WebResponse.java:334)
>>         at
>> com.meterware.httpunit.WebResponse.getFrameNames(WebResponse.java:97)
>>         at
>>         at ExampleTest.testWelcomePage(ExampleTest.java:39)
>> Now ParserImpl does not actually access _parseHead directly, but it does
call getParseHead() to get it (line 140). This looks legitimate to me, but I
wonder if there is some kind of optimization happening that might not work
well with certain VMs or classloaders. Any ideas?
>Russell --
>Are these people using Microsoft JVMs?  Older versions did not follow
>the appropriate rules for accessing fields in inner classes.  I'm not
>sure if this is fixed in current versions or not.
>If the errors were occurring with MS JVMs, you might try using Sun or

This is happening with Sun's JDK 1.3 with Hotspot, but only happens with
JUnit's awt or swing testrunner. It does not happen with the textui
testrunner, and did not happen in JTidy r5.

Russell Gold                     | "... society is tradition and order
russgold@acm.org                 | and reverence, not a series of cheap
                                 | bargains between selfish interests."
http://httpunit.sourceforge.net  |   - Poul Anderson, "Iron"
Received on Friday, 22 March 2002 00:38:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:51 UTC