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>

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
	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;
			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?

Michael S. Goldberg
Received on Thursday, 21 December 2000 13:11:21 UTC

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