Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13398

Exception on PDF-export after customizing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 7.4.2
    • None
    • None
    • jetty-hsql distro on linux
    • Unknown

    Description

      Steps to reproduce:

      • attach an empty "pdf.css" to XWiki.DefaultSkin
      • export any page as PDF

      Result: error page with stack trace:

      Caused by: java.lang.NoSuchMethodError: info.informatica.doc.dom4j.XHTMLDocumentFactory.getInstance()Linfo/informatica/doc/dom4j/XHTMLDocumentFactory;
      	at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS(PdfExportImpl.java:443)
      	at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS(PdfExportImpl.java:422)
      	at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:257)
      	at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:243)
      	at com.xpn.xwiki.web.ExportAction.export(ExportAction.java:239)
      	at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:81)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:430)
      	... 42 more
      

      The problem seems to be that xwiki-platform is build against css4j-0.20, but the jetty-hsql distro comes shipped with css4j-0.13.jar.
      Replacing the jar with the one with proper version fixes the issue.

      Attachments

        Activity

          People

            camil7 Clemens Robbenhaar
            camil7 Clemens Robbenhaar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: