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

PDF export crash with a openOffice table with style included

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.4.2
    • Fix Version/s: 8.0-milestone-1
    • Component/s: Old Core - PDF export
    • Labels:
      None
    • Environment:
      xwiki 5.4.2 and 5.3 on Tomcat server 7.0.47 and postgreSQL database
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      My user import a openOffice document in a xwiki page without "filter style" and the PDF export crash when he want export his page.
      (he want a nice table on his page...)

      Here a openOffice document to import if you want testing.

      To reproduce this bug: Import or use the opendocument viewer (wihout filter style) , the PDF export crash

      Here the catalina.log:

      2014-03-17 15:32:16,396 [http://iwiki.cp2i.i2:8080/bin/export/Sandbox/copie_de_CAC_P3] WARN  c.x.x.p.i.PdfExportImpl        - Failed to apply CSS: null 
      java.lang.NullPointerException: null
              at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration.defaultPropertyValue(BaseCSSStyleDeclaration.java:491) ~[css4j-0.13.jar:na]
              at info.informatica.doc.style.css.dom.ComputedCSSStyle.getCSSValue(ComputedCSSStyle.java:100) ~[css4j-0.13.jar:na]
              at info.informatica.doc.style.css.dom.ComputedCSSStyle.getColor(ComputedCSSStyle.java:199) ~[css4j-0.13.jar:na]
              at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration.defaultPropertyValue(BaseCSSStyleDeclaration.java:506) ~[css4j-0.13.jar:na]
              at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration$ShorthandSetter.setPropertyDefault(BaseCSSStyleDeclaration.java:745) ~[css4j-0.13.jar:na]
              at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration$ShorthandSetter.resetSubproperties(BaseCSSStyleDeclaration.java:734) ~[css4j-0.13.jar:na]
              at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration$ShorthandSetter.assignSubproperties(BaseCSSStyleDeclaration.java:784) ~[css4j-0.13.jar:na]
              at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration.setSubproperties(BaseCSSStyleDeclaration.java:574) ~[css4j-0.13.jar:na]
              at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration.setProperty(BaseCSSStyleDeclaration.java:298) ~[css4j-0.13.jar:na]
              at info.informatica.doc.style.css.dom.PropertyDocumentHandler.property(PropertyDocumentHandler.java:101) ~[css4j-0.13.jar:na]
              at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration$StyleDeclarationDocumentHandler.property(BaseCSSStyleDeclaration.java:599) ~[css4j-0.13.jar:na]
              at com.steadystate.css.parser.AbstractSACParser.handleProperty(AbstractSACParser.java:551) ~[cssparser-0.9.11.jar:na]
              at com.steadystate.css.parser.SACParserCSS21.declaration(SACParserCSS21.java:1626) ~[cssparser-0.9.11.jar:na]
              at com.steadystate.css.parser.SACParserCSS21.styleDeclaration(SACParserCSS21.java:1577) ~[cssparser-0.9.11.jar:na]
              at com.steadystate.css.parser.AbstractSACParser.parseStyleDeclaration(AbstractSACParser.java:300) ~[cssparser-0.9.11.jar:na]
              at com.steadystate.css.parser.SACParserCSS21.parseStyleDeclaration(SACParserCSS21.java:22) ~[cssparser-0.9.11.jar:na]
              at info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration.setCssText(BaseCSSStyleDeclaration.java:172) ~[css4j-0.13.jar:na]
              at info.informatica.doc.dom4j.CSSStylableElement.getStyle(CSSStylableElement.java:70) ~[css4j-0.13.jar:na]
              at info.informatica.doc.dom4j.DOM4JCSSStyleSheet.getComputedStyle(DOM4JCSSStyleSheet.java:64) ~[css4j-0.13.jar:na]
              at info.informatica.doc.dom4j.CSSStylableElement.getComputedStyle(CSSStylableElement.java:93) ~[css4j-0.13.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyInlineStyle(PdfExportImpl.java:450) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyInlineStyle(PdfExportImpl.java:456) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyInlineStyle(PdfExportImpl.java:456) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyInlineStyle(PdfExportImpl.java:456) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyInlineStyle(PdfExportImpl.java:456) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyInlineStyle(PdfExportImpl.java:456) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyInlineStyle(PdfExportImpl.java:456) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyInlineStyle(PdfExportImpl.java:456) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS(PdfExportImpl.java:416) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS(PdfExportImpl.java:391) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:224) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:210) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.web.ExportAction.export(ExportAction.java:223) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:79) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:294) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:129) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) ~[struts-core-1.3.10.jar:1.3.10]
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) ~[struts-core-1.3.10.jar:1.3.10]
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) ~[struts-core-1.3.10.jar:1.3.10]
              at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) ~[struts-core-1.3.10.jar:1.3.10]
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) ~[servlet-api.jar:na]
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) ~[servlet-api.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:126) ~[xwiki-platform-wysiwyg-server-5.4.2.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) ~[tomcat7-websocket.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) ~[xwiki-platform-webdav-server-5.4.2.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) ~[xwiki-platform-container-servlet-5.4.2.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) ~[xwiki-platform-container-servlet-5.4.2.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) ~[catalina.jar:7.0.47]
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) ~[catalina.jar:7.0.47]
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) ~[catalina.jar:7.0.47]
              at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) ~[catalina.jar:7.0.47]
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) ~[catalina.jar:7.0.47]
              at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) ~[tomcat-coyote.jar:7.0.47]
              at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) ~[tomcat-coyote.jar:7.0.47]
              at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) ~[tomcat-coyote.jar:7.0.47]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25]
              at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
      ID système inconnu; Ligne #3; Colonne #3; Content is not allowed in prolog.
      [Fatal Error] :-1:-1: Premature end of file.
      2014-03-17 15:32:18,572 [http://iwiki.cp2i.i2:8080/bin/export/Sandbox/copie_de_CAC_P3] WARN  c.x.x.w.XWikiAction            - Uncaught exception: Error number 11015 in 11: Exception while exporting 
      com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while exporting
              at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:82) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:294) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:129) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) ~[struts-core-1.3.10.jar:1.3.10]
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) ~[struts-core-1.3.10.jar:1.3.10]
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) ~[struts-core-1.3.10.jar:1.3.10]
              at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) ~[struts-core-1.3.10.jar:1.3.10]
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) ~[servlet-api.jar:na]
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) ~[servlet-api.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:126) ~[xwiki-platform-wysiwyg-server-5.4.2.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) ~[tomcat7-websocket.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) ~[xwiki-platform-webdav-server-5.4.2.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) ~[xwiki-platform-container-servlet-5.4.2.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) ~[xwiki-platform-container-servlet-5.4.2.jar:na]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) ~[catalina.jar:7.0.47]
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) ~[catalina.jar:7.0.47]
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) ~[catalina.jar:7.0.47]
              at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) ~[catalina.jar:7.0.47]
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) ~[catalina.jar:7.0.47]
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) ~[catalina.jar:7.0.47]
              at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) ~[tomcat-coyote.jar:7.0.47]
              at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) ~[tomcat-coyote.jar:7.0.47]
              at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) ~[tomcat-coyote.jar:7.0.47]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25]
              at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
      Caused by: com.xpn.xwiki.XWikiException: Error number 12002 in 12: Exception while exporting pdf
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.createException(PdfExportImpl.java:569) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.renderXSLFO(PdfExportImpl.java:343) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHTML(PdfExportImpl.java:271) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:224) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:210) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.web.ExportAction.export(ExportAction.java:223) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:79) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              ... 42 common frames omitted
      Caused by: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; Premature end of file.
              at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:502) ~[xalan-2.7.1.jar:na]
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.renderXSLFO(PdfExportImpl.java:327) ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
              ... 47 common frames omitted
      Caused by: org.xml.sax.SAXParseException: Premature end of file.
              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[xercesImpl-2.11.0.jar:na]
              at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485) ~[xalan-2.7.1.jar:na]
              ... 48 common frames omitted
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                Pbas Pascal BASTIEN
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days
                  3d