org.apache.fop.fo.ValidationException: file:/C:/Temp/Essaie%20xml%20xsl%20fo/test%20xml%20xsl%20fo/cinema.xml_xslt:1:-1: Error(1/-1): fo:flow is missing child elements. Required Content Model: marker* (%block;)+

oxygenxml.com | 3 months ago
  1. 0

    Error transform from xml xsl-fo to pdf - Oxygen XML Forum

    oxygenxml.com | 3 months ago
    org.apache.fop.fo.ValidationException: file:/C:/Temp/Essaie%20xml%20xsl%20fo/test%20xml%20xsl%20fo/cinema.xml_xslt:1:-1: Error(1/-1): fo:flow is missing child elements. Required Content Model: marker* (%block;)+
  2. 0

    This problem is raised from the support issue - https://support.atlassian.com/browse/CSP-11863 The initial problem was a failure during PDF export which looked like - {noformat} 2007-10-03 21:26:09,006 ERROR [Export Space task] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during export -- url: /spaces/doexportspace.action | userName: pcurren | action: doexportspace com.atlassian.confluence.importexport.ImportExportException: java.lang.NullPointerException at com.atlassian.confluence.importexport.impl.PdfExporter.generateXslFo(PdfExporter.java:178) at com.atlassian.confluence.importexport.impl.PdfExporter.doExportEntity(PdfExporter.java:97) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportSpace(AbstractRendererExporterImpl.java:127) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.doExport(AbstractRendererExporterImpl.java:109) at com.atlassian.confluence.importexport.impl.PdfExporter.doExport(PdfExporter.java:63) at com.atlassian.confluence.importexport.DefaultImportExportManager.exportAs(DefaultImportExportManager.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy49.exportAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask$2.doInTransactionWithoutResult(ExportSpaceLongRunningTask.java:8 5) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask.runInternal(ExportSpaceLongRunningTask.java:61) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NullPointerException at com.caucho.server.connection.AbstractHttpRequest.getContextPath(AbstractHttpRequest.java:506) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:108) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:108) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:108) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:108) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:108) at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:403) at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:350) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportResource(AbstractRendererExporterImpl.java:208) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportImages(AbstractRendererExporterImpl.java:151) at com.atlassian.confluence.importexport.impl.PdfExporter.generateXslFo(PdfExporter.java:174) ... 22 more {noformat} This is due to the HttpServletRequest instance being stored within the ThreadLocal and accessed by the LongRunningTask thread as it performed the export. When resin returns the HttpServletRequest to the pool some internal details are nulled (such as the context). This was worked around by wrapping the request in a compatible class which takes a copy of the necessary data. The ServletContextHoldingRequest also needed to be modified. It was returning an HttpSession instance anonymous class which resin was later trying to cast to it's own SessionImpl class. (ServletContextHoldingRequest was modified to hold the HttpSession instance from the real request.) Once this was all hacked around, a new problem was being exposed - {noformat} 2007-10-08 13:26:57,004 ERROR [Export Space task] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during export -- url: /spaces/doexportspace.action | userName: pcurren | action: doexportspace com.atlassian.confluence.importexport.ImportExportException: Error while generating PDF! at com.atlassian.confluence.importexport.impl.PdfExporter.foToPdf(PdfExporter.java:137) at com.atlassian.confluence.importexport.impl.PdfExporter.doExportEntity(PdfExporter.java:98) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportSpace(AbstractRendererExporterImpl.java:127) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.doExport(AbstractRendererExporterImpl.java:109) at com.atlassian.confluence.importexport.impl.PdfExporter.doExport(PdfExporter.java:63) at com.atlassian.confluence.importexport.DefaultImportExportManager.exportAs(DefaultImportExportManager.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy49.exportAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask$2.doInTransactionWithoutResult(ExportSpaceLongRunningTask.java:87) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask.runInternal(ExportSpaceLongRunningTask.java:63) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:613) Caused by: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: file:///Users/pcurren/Atlassian/data/confluence/cac/temp/export_10082007_131342/CONF256-20071008-13_13_42.fo:16961:0: Error(16961/0): fo:list-block is missing child elements. Required Content Model: marker* (list-item)+ at com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:61) at com.atlassian.confluence.importexport.impl.PdfExporter.foToPdf(PdfExporter.java:132) ... 22 more Caused by: org.apache.fop.fo.ValidationException: file:///Users/pcurren/Atlassian/data/confluence/cac/temp/export_10082007_131342/CONF256-20071008-13_13_42.fo:16961:0: Error(16961/0): fo:list-block is missing child elements. Required Content Model: marker* (list-item)+ at org.apache.fop.fo.FONode.missingChildElementError(FONode.java:408) at org.apache.fop.fo.flow.ListBlock.endOfNode(ListBlock.java:105) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:379) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:195) at com.caucho.xml.XmlParser.addElement(XmlParser.java:2608) at com.caucho.xml.XmlParser.parseElement(XmlParser.java:641) at com.caucho.xml.XmlParser.parseNode(XmlParser.java:367) at com.caucho.xml.XmlParser.parseInt(XmlParser.java:242) at com.caucho.xml.AbstractParser.parse(AbstractParser.java:633) at com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:59) ... 23 more {noformat} At this point, I've decided to resolved the support request in a different way, and gift these three problems to the bug fix team :-)

    Atlassian JIRA | 9 years ago | Paul Curren
    com.atlassian.confluence.importexport.ImportExportException: Error while generating PDF!
  3. 0

    I think this problem may be specific to an older version of the dynamictasklist macro (1.5). If you have a task list on a page which has no items then this will render HTML which has an empty 'ul' tag and this causes the following exception in the PDF Export. {noformat} 2007-10-08 13:26:57,004 ERROR [Export Space task] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during export -- url: /spaces/doexportspace.action | userName: pcurren | action: doexportspace com.atlassian.confluence.importexport.ImportExportException: Error while generating PDF! at com.atlassian.confluence.importexport.impl.PdfExporter.foToPdf(PdfExporter.java:137) at com.atlassian.confluence.importexport.impl.PdfExporter.doExportEntity(PdfExporter.java:98) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportSpace(AbstractRendererExporterImpl.java:127) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.doExport(AbstractRendererExporterImpl.java:109) at com.atlassian.confluence.importexport.impl.PdfExporter.doExport(PdfExporter.java:63) at com.atlassian.confluence.importexport.DefaultImportExportManager.exportAs(DefaultImportExportManager.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy49.exportAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask$2.doInTransactionWithoutResult(ExportSpaceLongRunningTask.java:87) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask.runInternal(ExportSpaceLongRunningTask.java:63) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:613) Caused by: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: file:///Users/pcurren/Atlassian/data/confluence/cac/temp/export_10082007_131342/CONF256-20071008-13_13_42.fo:16961:0: Error(16961/0): fo:list-block is missing child elements. Required Content Model: marker* (list-item)+ at com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:61) at com.atlassian.confluence.importexport.impl.PdfExporter.foToPdf(PdfExporter.java:132) ... 22 more Caused by: org.apache.fop.fo.ValidationException: file:///Users/pcurren/Atlassian/data/confluence/cac/temp/export_10082007_131342/CONF256-20071008-13_13_42.fo:16961:0: Error(16961/0): fo:list-block is missing child elements. Required Content Model: marker* (list-item)+ at org.apache.fop.fo.FONode.missingChildElementError(FONode.java:408) at org.apache.fop.fo.flow.ListBlock.endOfNode(ListBlock.java:105) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:379) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:195) at com.caucho.xml.XmlParser.addElement(XmlParser.java:2608) at com.caucho.xml.XmlParser.parseElement(XmlParser.java:641) at com.caucho.xml.XmlParser.parseNode(XmlParser.java:367) at com.caucho.xml.XmlParser.parseInt(XmlParser.java:242) at com.caucho.xml.AbstractParser.parse(AbstractParser.java:633) at com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:59) ... 23 more {noformat} While the fault is with the macro for rendering illegal HTML, the PDF export should probably be robust enough to cope.

    Atlassian JIRA | 9 years ago | Paul Curren
    com.atlassian.confluence.importexport.ImportExportException: Error while generating PDF!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    This problem is raised from the support issue - https://support.atlassian.com/browse/CSP-11863 The initial problem was a failure during PDF export which looked like - {noformat} 2007-10-03 21:26:09,006 ERROR [Export Space task] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during export -- url: /spaces/doexportspace.action | userName: pcurren | action: doexportspace com.atlassian.confluence.importexport.ImportExportException: java.lang.NullPointerException at com.atlassian.confluence.importexport.impl.PdfExporter.generateXslFo(PdfExporter.java:178) at com.atlassian.confluence.importexport.impl.PdfExporter.doExportEntity(PdfExporter.java:97) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportSpace(AbstractRendererExporterImpl.java:127) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.doExport(AbstractRendererExporterImpl.java:109) at com.atlassian.confluence.importexport.impl.PdfExporter.doExport(PdfExporter.java:63) at com.atlassian.confluence.importexport.DefaultImportExportManager.exportAs(DefaultImportExportManager.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy49.exportAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask$2.doInTransactionWithoutResult(ExportSpaceLongRunningTask.java:8 5) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask.runInternal(ExportSpaceLongRunningTask.java:61) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NullPointerException at com.caucho.server.connection.AbstractHttpRequest.getContextPath(AbstractHttpRequest.java:506) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:108) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:108) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:108) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:108) at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:108) at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:403) at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:350) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportResource(AbstractRendererExporterImpl.java:208) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportImages(AbstractRendererExporterImpl.java:151) at com.atlassian.confluence.importexport.impl.PdfExporter.generateXslFo(PdfExporter.java:174) ... 22 more {noformat} This is due to the HttpServletRequest instance being stored within the ThreadLocal and accessed by the LongRunningTask thread as it performed the export. When resin returns the HttpServletRequest to the pool some internal details are nulled (such as the context). This was worked around by wrapping the request in a compatible class which takes a copy of the necessary data. The ServletContextHoldingRequest also needed to be modified. It was returning an HttpSession instance anonymous class which resin was later trying to cast to it's own SessionImpl class. (ServletContextHoldingRequest was modified to hold the HttpSession instance from the real request.) Once this was all hacked around, a new problem was being exposed - {noformat} 2007-10-08 13:26:57,004 ERROR [Export Space task] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during export -- url: /spaces/doexportspace.action | userName: pcurren | action: doexportspace com.atlassian.confluence.importexport.ImportExportException: Error while generating PDF! at com.atlassian.confluence.importexport.impl.PdfExporter.foToPdf(PdfExporter.java:137) at com.atlassian.confluence.importexport.impl.PdfExporter.doExportEntity(PdfExporter.java:98) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportSpace(AbstractRendererExporterImpl.java:127) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.doExport(AbstractRendererExporterImpl.java:109) at com.atlassian.confluence.importexport.impl.PdfExporter.doExport(PdfExporter.java:63) at com.atlassian.confluence.importexport.DefaultImportExportManager.exportAs(DefaultImportExportManager.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy49.exportAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask$2.doInTransactionWithoutResult(ExportSpaceLongRunningTask.java:87) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask.runInternal(ExportSpaceLongRunningTask.java:63) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:613) Caused by: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: file:///Users/pcurren/Atlassian/data/confluence/cac/temp/export_10082007_131342/CONF256-20071008-13_13_42.fo:16961:0: Error(16961/0): fo:list-block is missing child elements. Required Content Model: marker* (list-item)+ at com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:61) at com.atlassian.confluence.importexport.impl.PdfExporter.foToPdf(PdfExporter.java:132) ... 22 more Caused by: org.apache.fop.fo.ValidationException: file:///Users/pcurren/Atlassian/data/confluence/cac/temp/export_10082007_131342/CONF256-20071008-13_13_42.fo:16961:0: Error(16961/0): fo:list-block is missing child elements. Required Content Model: marker* (list-item)+ at org.apache.fop.fo.FONode.missingChildElementError(FONode.java:408) at org.apache.fop.fo.flow.ListBlock.endOfNode(ListBlock.java:105) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:379) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:195) at com.caucho.xml.XmlParser.addElement(XmlParser.java:2608) at com.caucho.xml.XmlParser.parseElement(XmlParser.java:641) at com.caucho.xml.XmlParser.parseNode(XmlParser.java:367) at com.caucho.xml.XmlParser.parseInt(XmlParser.java:242) at com.caucho.xml.AbstractParser.parse(AbstractParser.java:633) at com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:59) ... 23 more {noformat} At this point, I've decided to resolved the support request in a different way, and gift these three problems to the bug fix team :-)

    Atlassian JIRA | 9 years ago | Paul Curren
    com.atlassian.confluence.importexport.ImportExportException: Error while generating PDF!
  6. 0

    I think this problem may be specific to an older version of the dynamictasklist macro (1.5). If you have a task list on a page which has no items then this will render HTML which has an empty 'ul' tag and this causes the following exception in the PDF Export. {noformat} 2007-10-08 13:26:57,004 ERROR [Export Space task] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during export -- url: /spaces/doexportspace.action | userName: pcurren | action: doexportspace com.atlassian.confluence.importexport.ImportExportException: Error while generating PDF! at com.atlassian.confluence.importexport.impl.PdfExporter.foToPdf(PdfExporter.java:137) at com.atlassian.confluence.importexport.impl.PdfExporter.doExportEntity(PdfExporter.java:98) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportSpace(AbstractRendererExporterImpl.java:127) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.doExport(AbstractRendererExporterImpl.java:109) at com.atlassian.confluence.importexport.impl.PdfExporter.doExport(PdfExporter.java:63) at com.atlassian.confluence.importexport.DefaultImportExportManager.exportAs(DefaultImportExportManager.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy49.exportAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask$2.doInTransactionWithoutResult(ExportSpaceLongRunningTask.java:87) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask.runInternal(ExportSpaceLongRunningTask.java:63) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:613) Caused by: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: file:///Users/pcurren/Atlassian/data/confluence/cac/temp/export_10082007_131342/CONF256-20071008-13_13_42.fo:16961:0: Error(16961/0): fo:list-block is missing child elements. Required Content Model: marker* (list-item)+ at com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:61) at com.atlassian.confluence.importexport.impl.PdfExporter.foToPdf(PdfExporter.java:132) ... 22 more Caused by: org.apache.fop.fo.ValidationException: file:///Users/pcurren/Atlassian/data/confluence/cac/temp/export_10082007_131342/CONF256-20071008-13_13_42.fo:16961:0: Error(16961/0): fo:list-block is missing child elements. Required Content Model: marker* (list-item)+ at org.apache.fop.fo.FONode.missingChildElementError(FONode.java:408) at org.apache.fop.fo.flow.ListBlock.endOfNode(ListBlock.java:105) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:379) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:195) at com.caucho.xml.XmlParser.addElement(XmlParser.java:2608) at com.caucho.xml.XmlParser.parseElement(XmlParser.java:641) at com.caucho.xml.XmlParser.parseNode(XmlParser.java:367) at com.caucho.xml.XmlParser.parseInt(XmlParser.java:242) at com.caucho.xml.AbstractParser.parse(AbstractParser.java:633) at com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:59) ... 23 more {noformat} While the fault is with the macro for rendering illegal HTML, the PDF export should probably be robust enough to cope.

    Atlassian JIRA | 9 years ago | Paul Curren
    com.atlassian.confluence.importexport.ImportExportException: Error while generating PDF!

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.fop.fo.ValidationException

      file:/C:/Temp/Essaie%20xml%20xsl%20fo/test%20xml%20xsl%20fo/cinema.xml_xslt:1:-1: Error(1/-1): fo:flow is missing child elements. Required Content Model: marker* (%block;)+

      at org.apache.fop.fo.FONode.missingChildElementError()
    2. Apache FOP
      FOTreeBuilder.endElement
      1. org.apache.fop.fo.FONode.missingChildElementError(FONode.java:425)
      2. org.apache.fop.fo.pagination.Flow.endOfNode(Flow.java:90)
      3. org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
      4. org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
      4 frames
    3. Saxon HE
      ReceivingContentHandler.endElement
      1. net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:391)
      2. net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:213)
      3. net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:438)
      3 frames
    4. Xerces2-j
      SAXParserImpl$JAXPSAXParser.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      2. org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
      3. org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      4. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      5. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      6. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      7. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      8. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      9. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      10. org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      10 frames
    5. Saxon HE
      IdentityTransformer.transform
      1. net.sf.saxon.event.Sender.sendSAXSource(Sender.java:371)
      2. net.sf.saxon.event.Sender.send(Sender.java:185)
      3. net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:29)
      3 frames
    6. Apache FOP
      Main.main
      1. org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
      2. org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
      3. org.apache.fop.cli.Main.startFOP(Main.java:166)
      4. org.apache.fop.cli.Main.main(Main.java:197)
      4 frames