Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tidy Issue  RSS feed

 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following error when I try and run tidy:

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:307)

Anyone seen this before? Suggestions?


Below is the method that contains the tidy implementation:

private String htmlTidy(String html) {
try {
StringBufferInputStream sbis=new StringBufferInputStream(html);
ByteArrayOutputStream baos=new ByteArrayOutputStream();
Tidy tidy = new Tidy();
Trace.ENTER("FOP PDF: Tidy object created.");
//configure tidy
tidy.setQuiet(true);
tidy.setShowWarnings(false);
tidy.setXmlOut(false);
tidy.setXHTML(true);
tidy.setMakeClean(false);
tidy.setTidyMark(false);
tidy.setUpperCaseTags(false);
tidy.setUpperCaseAttrs(false);
tidy.setQuoteAmpersand(false);
tidy.setNumEntities(true);
tidy.setCharEncoding(Configuration.UTF8);
Trace.ENTER("FOP PDF: Tidy object configured.");
tidy.parse(sbis,baos);
Trace.ENTER("FOP PDF: Tidy parsing complete.");
html = baos.toString();
}
catch (Exception e) {
Trace.ENTER("FOP PDF: TIDY ERROR!!! " + e);
}
return html;
}

Luke
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:307)

The line you posted is not an error. What is your problem?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!