org.apache.batik.css.parser.ParseException: character JIRA | Nigel Smith | 7 years ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    To reproduce: * Make sure that no pdf.css exists either in the templates dir or as an attachment to the current skin * Create a XWiki.PDFClass (with the correct attributes as set in * Create a XWiki.PDFTemplate doc and add a PDFClass object to it * Export a document, specifying the PDFTemplate as the template to use during the export (as per The style will not be applied until pdf.css exists. The error message in the logs is: ...bin/export/Space/DocumentName?format=pdf] WARN impl.PdfExportImpl - Failed to apply CSS: character org.apache.batik.css.parser.ParseException: character at org.apache.batik.css.parser.Scanner.nextToken( at at org.apache.batik.css.parser.Parser.parseStyleSheet( at at info.informatica.doc.dom4j.XHTMLDocument.addStyleSheet( at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS( at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS( at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml( at com.xpn.xwiki.pdf.impl.PdfExportImpl.export( at com.xpn.xwiki.web.ExportAction.exportPDFOrRTF( at com.xpn.xwiki.web.ExportAction.render( at com.xpn.xwiki.web.XWikiAction.execute( at com.xpn.xwiki.web.XWikiAction.execute( JIRA | 7 years ago | Nigel Smith
    org.apache.batik.css.parser.ParseException: character

    Root Cause Analysis

    1. org.apache.batik.css.parser.ParseException


      at org.apache.batik.css.parser.Scanner.nextToken()
    2. Batik CSS engine
      1. org.apache.batik.css.parser.Scanner.nextToken(
      3. org.apache.batik.css.parser.Parser.parseStyleSheet(
      3 frames
    3. info.informatica.doc
      2. info.informatica.doc.dom4j.XHTMLDocument.addStyleSheet(
      2 frames
    4. com.xpn.xwiki
      1. com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS(
      2. com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS(
      3. com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(
      4. com.xpn.xwiki.pdf.impl.PdfExportImpl.export(
      5. com.xpn.xwiki.web.ExportAction.exportPDFOrRTF(
      6. com.xpn.xwiki.web.ExportAction.render(
      7. com.xpn.xwiki.web.XWikiAction.execute(
      8. com.xpn.xwiki.web.XWikiAction.execute(
      8 frames