W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

JTidy exception: IllegalAccessError

From: Michael Goldberg <MGoldberg@yet2.com>
Date: Thu, 21 Dec 2000 10:10:48 -0800
Message-ID: <D090FE9586C9D4119E4E00A02493157A05258B@ferris.tahoe.yet2.com>
To: "'html-tidy@w3.org'" <html-tidy@w3.org>
All,

I am trying to use jtidy for the first time, but I get an IllegalAccessError
exception with the following stack trace:

java.lang.IllegalAccessError: org/w3c/tidy/ParserImpl: field _parseHead is
inaccessible
	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 WordAccessClass.tidyFile (WordAccessClass.java:129)
	at WordAccessClass.main (WordAccessClass.java:209)

My code is pretty simple.  Here's a snippet:

		FileInputStream inStream = new FileInputStream(
inputFilename );
		
		Tidy tidy = new Tidy();
		org.w3c.dom.Document tidyOut = null;
		try
		{
			tidyOut = tidy.parseDOM( inStream, null );
		}
		catch( java.lang.IllegalAccessError e )
		{
			System.out.println( "ERROR: " + e.getMessage() );
			e.printStackTrace( System.out );
		}

Unfortunately, it dies on the parseDOM method.  Any ideas how to proceed?

Sincerely,
Michael S. Goldberg
mgoldberg@yet2.com
Received on Thursday, 21 December 2000 13:11:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT