502 Gateway Error Running fop-pdf recipe
-
Getting a 502 Gateway error when running a template using the fop-pdf recipe.
Ubuntu 18.04 server behind nginx on separate Ubuntu 18.04 server. Jsreport version 2.6.1. Samples using chrome-pdf recipe function correctly.
FOP-PDF template was created by writing a simple Word 2019 doc and exporting it to Word 2003 XML format using the Microsoft Word2FO.xsl stylesheet as a transform. Copy and pasted file contents into empty template created in jsreport studio application. Set recipe for template to fop-pdf, saved template, than ran it, getting the 502 Gateway error. Logs show the following info:
console.log
{"level":"info","message":"Starting rendering request 1 (user: trboyden)","timestamp":"2019-10-11T10:51:28.340Z"} {"level":"info","message":"Rendering template { name: demo_xsl-fo, recipe: fop-pdf, engine: jsrender, preview: true }","timestamp":"2019-10-11T10:51:28.344Z"} {"level":"debug","message":"Data item not defined for this template.","timestamp":"2019-10-11T10:51:28.345Z"} {"level":"debug","message":"Resources not defined for this template.","timestamp":"2019-10-11T10:51:28.346Z"} {"level":"debug","message":"Base url not specified, skipping its injection.","timestamp":"2019-10-11T10:51:28.352Z"} {"level":"debug","message":"Rendering engine jsrender","timestamp":"2019-10-11T10:51:28.352Z"} {"level":"debug","message":"Compiled template not found in the cache, compiling","timestamp":"2019-10-11T10:51:28.470Z"} {"level":"debug","message":"Executing recipe fop-pdf","timestamp":"2019-10-11T10:51:28.472Z"} {"level":"info","message":"Rendering fop start.","timestamp":"2019-10-11T10:51:28.473Z"} {"level":"info","message":"Rastering pdf child process start.","timestamp":"2019-10-11T10:51:28.474Z"} {"level":"info","message":"Rastering pdf child process end.","timestamp":"2019-10-11T10:51:29.611Z"}
error.log
2019-10-11T10:51:29.617Z - error: uncaughtException: Cannot read property 'error' of undefined date=Fri Oct 11 2019 10:51:29 GMT+0000 (Coordinated Universal Time), pid=12413, uid=0, gid=0, cwd=/opt/jsreportapp, execPath=/usr/bin/node, version=v10.16.3, argv=[/usr/bin/node, /usr/lib/node_modules/pm2/lib/ProcessContainerFork.js], rss=96587776, heapTotal=56885248, heapUsed=49991104, external=538207, loadavg=[0.013671875, 0.0673828125, 0.0322265625], uptime=74117, trace=[column=30, file=/opt/jsreportapp/node_modules/jsreport-fop-pdf/lib/fop.js, function=null, line=51, method=null, native=false, column=5, file=child_process.js, function=ChildProcess.exithandler, line=301, method=exithandler, native=false, column=13, file=events.js, function=ChildProcess.emit, line=198, method=emit, native=false, column=16, file=internal/child_process.js, function=maybeClose, line=982, method=null, native=false, column=5, file=internal/child_process.js, function=Process.ChildProcess._handle.onexit, line=259, method=onexit, native=false], stack=[TypeError: Cannot read property 'error' of undefined, at /opt/jsreportapp/node_modules/jsreport-fop-pdf/lib/fop.js:51:30, at ChildProcess.exithandler (child_process.js:301:5), at ChildProcess.emit (events.js:198:13), at maybeClose (internal/child_process.js:982:16), at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)]
Hopefully someone can help me troubleshoot this. I am hoping to allow users to create report templates in MS Word, convert them to XSL-FO and fill them via jsreport.
Thanks,
Tim
-
Additional info...
Tested same file on jsreport online and received the following message:
Error: socket hang up logs: +0 Starting rendering request 2151 (user: null) +8 Rendering template { name: FOP-XML Demo, recipe: fop-pdf, engine: none, preview: true } +11 Data item not defined for this template. +11 Resources not defined for this template. +19 Base url not specified, skipping its injection. +19 Rendering engine none +158 Compiled template not found in the cache, compiling +172 Executing recipe fop-pdf at createHangUpError (_http_client.js:342:15) at Socket.socketOnEnd (_http_client.js:437:23) at emitNone (events.js:111:20) at Socket.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9)
-
Report Template Contents:
<fo:root font-family="Calibri" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:rx="http://www.renderx.com/XSL/Extensions" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office"><rx:meta-info><rx:meta-field name="author" value="Timothy Boyden" /></rx:meta-info><fo:layout-master-set xmlns:v="urn:schemas-microsoft-com:vml" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><fo:simple-page-master master-name="section1-first-page" page-width="8.5in" page-height="11in" margin-top="36pt" margin-bottom="36pt" margin-right="72pt" margin-left="72pt"><fo:region-body margin-top="36pt" margin-bottom="36pt"></fo:region-body><fo:region-before region-name="first-page-header" extent="11in"></fo:region-before><fo:region-after region-name="first-page-footer" extent="11in" display-align="after"></fo:region-after></fo:simple-page-master><fo:simple-page-master master-name="section1-odd-page" page-width="8.5in" page-height="11in" margin-top="36pt" margin-bottom="36pt" margin-right="72pt" margin-left="72pt"><fo:region-body margin-top="36pt" margin-bottom="36pt"></fo:region-body><fo:region-before region-name="odd-page-header" extent="11in"></fo:region-before><fo:region-after region-name="odd-page-footer" extent="11in" display-align="after"></fo:region-after></fo:simple-page-master><fo:simple-page-master master-name="section1-even-page" page-width="8.5in" page-height="11in" margin-top="36pt" margin-bottom="36pt" margin-right="72pt" margin-left="72pt"><fo:region-body margin-top="36pt" margin-bottom="36pt"></fo:region-body><fo:region-before region-name="even-page-header" extent="11in"></fo:region-before><fo:region-after region-name="even-page-footer" extent="11in" display-align="after"></fo:region-after></fo:simple-page-master><fo:page-sequence-master master-name="section1-page-sequence-master"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference odd-or-even="odd" master-reference="section1-odd-page" /><fo:conditional-page-master-reference odd-or-even="even" master-reference="section1-even-page" /></fo:repeatable-page-master-alternatives></fo:page-sequence-master></fo:layout-master-set><rx:outline><rx:bookmark internal-destination="IDDCJRKO0V21CYJAE3FLLBZ44JOE3BNQGEQORMW5OVGQYMGWKVXXWD"><rx:bookmark-label>1 Simple Paragraph Example</rx:bookmark-label><rx:bookmark internal-destination="IDXBGSLFFN1EIDHHYHQ2VM5HANLKZZUSK4DPBTGIOMJBQPEFI1YYKO"><rx:bookmark-label>1.1 Simple Paragraph Example</rx:bookmark-label><rx:bookmark internal-destination="IDD34ML1AOZ5CEOWQ3J4CYCZZFIMCHS4YFXRFFMFBW45SLTXDJEMV"><rx:bookmark-label>1.1.1 Simple Paragraph Example</rx:bookmark-label></rx:bookmark><rx:bookmark internal-destination="IDNKDWZRLKUYZILTXCT5Z504JQ4HVI31VJSRXQDAIZSEVS0SVFQJC"><rx:bookmark-label>1.1.2 </rx:bookmark-label></rx:bookmark><rx:bookmark internal-destination="IDOISKJ0XQZUIHCTOGJGEI555TSLM2GCUWYBLEMELPBCBE1YZZM5TC"><rx:bookmark-label>1.1.3 Table Example</rx:bookmark-label></rx:bookmark><rx:bookmark internal-destination="IDWWOXDNOFJ13YMRZXQRDDAZQWQJQ4BYB2WPERMEFMQG5YHSILNCGC"><rx:bookmark-label>1.1.4 WordArt Example</rx:bookmark-label></rx:bookmark></rx:bookmark></rx:bookmark></rx:outline><fo:page-sequence master-reference="section1-page-sequence-master" id="IDYUXKW2NYHKJ4HZQYR4QNZMULYJXYT12F1RYMK0IOKBKNCW2P3N3K" format="1" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><fo:static-content flow-name="first-page-header"><fo:retrieve-marker retrieve-class-name="first-page-header" retrieve-position="first-including-carryover" retrieve-boundary="page" /></fo:static-content><fo:static-content flow-name="first-page-footer"><fo:retrieve-marker retrieve-class-name="first-page-footer" retrieve-position="first-including-carryover" retrieve-boundary="page" /></fo:static-content><fo:static-content flow-name="odd-page-header"><fo:retrieve-marker retrieve-class-name="odd-page-header" retrieve-position="first-including-carryover" retrieve-boundary="page" /></fo:static-content><fo:static-content flow-name="odd-page-footer"><fo:retrieve-marker retrieve-class-name="odd-page-footer" retrieve-position="first-including-carryover" retrieve-boundary="page" /></fo:static-content><fo:static-content flow-name="even-page-header"><fo:retrieve-marker retrieve-class-name="odd-page-header" retrieve-position="first-including-carryover" retrieve-boundary="page" /></fo:static-content><fo:static-content flow-name="even-page-footer"><fo:retrieve-marker retrieve-class-name="odd-page-footer" retrieve-position="first-including-carryover" retrieve-boundary="page" /></fo:static-content><fo:static-content flow-name="xsl-footnote-separator"><fo:block><fo:leader leader-pattern="rule" leader-length="144pt" rule-thickness="0.5pt" rule-style="solid" color="gray" /></fo:block></fo:static-content><fo:flow flow-name="xsl-region-body"><rx:flow-section widows="2" orphans="2" font-size="10pt" line-height="1.147" white-space-collapse="false"><fo:marker marker-class-name="first-page-header" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:marker marker-class-name="first-page-footer" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:marker marker-class-name="odd-page-header" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="CalibriLight" font-size="16pt" language="EN-US" keep-with-next.within-page="always" keep-together.within-page="always" space-before="12pt" space-before.conditionality="retain" color="#2F5496" text-align="center"><fo:inline font-weight="bold"><fo:leader leader-length="0pt" />Word Doc to X</fo:inline><fo:inline font-weight="bold"><fo:leader leader-length="0pt" />S</fo:inline><fo:inline font-weight="bold"><fo:leader leader-length="0pt" />L-FO to PDF </fo:inline><fo:inline font-weight="bold"><fo:leader leader-length="0pt" />Demo</fo:inline></fo:block><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US"><fo:leader /></fo:block></fo:marker><fo:marker marker-class-name="odd-page-footer" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US"><fo:inline><fo:leader leader-length="0pt" />Author: John Doe</fo:inline><fo:inline><fo:leader leader-pattern="use-content" leader-length="35.25pt"> </fo:leader></fo:inline><fo:inline><fo:leader leader-length="0pt" />Created: Friday, October 11, 2019</fo:inline><fo:inline color="#7F7F7F" letter-spacing="3pt"><fo:leader leader-pattern="use-content" leader-length="35.25pt"> </fo:leader></fo:inline><fo:inline color="#7F7F7F" letter-spacing="3pt"><fo:leader leader-length="0pt" />Page</fo:inline><fo:inline><fo:leader leader-length="0pt" /> | </fo:inline><fo:inline font-weight="bold"><fo:leader leader-length="0pt" /><fo:page-number /></fo:inline></fo:block></fo:marker><fo:marker marker-class-name="even-page-header" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:marker marker-class-name="even-page-footer" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block id="IDDCJRKO0V21CYJAE3FLLBZ44JOE3BNQGEQORMW5OVGQYMGWKVXXWD" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block id="IDXBGSLFFN1EIDHHYHQ2VM5HANLKZZUSK4DPBTGIOMJBQPEFI1YYKO" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block id="IDD34ML1AOZ5CEOWQ3J4CYCZZFIMCHS4YFXRFFMFBW45SLTXDJEMV" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="CalibriLight" font-size="13pt" language="EN-US" keep-with-next.within-page="always" keep-together.within-page="always" space-before="2pt" space-before.conditionality="retain" color="#2F5496" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:inline font-weight="bold"><fo:leader leader-length="0pt" />Simple Paragraph Example</fo:inline></fo:block><fo:block space-after="8pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="Calibri" font-size="11pt" language="EN-US" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:leader /></fo:block><fo:block space-after="8pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="Calibri" font-size="11pt" language="EN-US" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:inline><fo:leader leader-length="0pt" />Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed id pellentesque libero. Aliquam et mattis nisl. Etiam et tristique turpis, in volutpat sapien. Cras nec massa enim. Vivamus nec aliquam mi. Phasellus sed volutpat dolor, non venenatis ligula. Aliquam ut eros vel est condimentum fermentum et ut ex. Donec a porta tortor. Vestibulum quis arcu orci. Cras sem lacus, iaculis in est nec, consectetur lacinia odio. Morbi purus nulla, eleifend id lectus sed, dapibus tincidunt tortor.</fo:inline></fo:block><fo:block space-after="8pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="Calibri" font-size="11pt" language="EN-US" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:inline><fo:leader leader-length="0pt" />Ut aliquam laoreet tincidunt. Nulla volutpat finibus enim sed ullamcorper. Aenean vel sapien molestie, iaculis ligula eget, convallis nunc. Praesent in interdum libero. Proin eu congue tortor. Curabitur mattis convallis magna et posuere. Morbi mollis lacinia velit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque sodales pulvinar dui, sit amet consectetur eros tincidunt eu.</fo:inline></fo:block><fo:block id="IDDCJRKO0V21CYJAE3FLLBZ44JOE3BNQGEQORMW5OVGQYMGWKVXXWD" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block id="IDXBGSLFFN1EIDHHYHQ2VM5HANLKZZUSK4DPBTGIOMJBQPEFI1YYKO" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block id="IDNKDWZRLKUYZILTXCT5Z504JQ4HVI31VJSRXQDAIZSEVS0SVFQJC" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="CalibriLight" font-size="13pt" language="EN-US" keep-with-next.within-page="always" keep-together.within-page="always" space-before="2pt" space-before.conditionality="retain" color="#2F5496" font-weight="bold" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:leader /></fo:block><fo:block id="IDDCJRKO0V21CYJAE3FLLBZ44JOE3BNQGEQORMW5OVGQYMGWKVXXWD" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block id="IDXBGSLFFN1EIDHHYHQ2VM5HANLKZZUSK4DPBTGIOMJBQPEFI1YYKO" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block id="IDOISKJ0XQZUIHCTOGJGEI555TSLM2GCUWYBLEMELPBCBE1YZZM5TC" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="CalibriLight" font-size="13pt" language="EN-US" keep-with-next.within-page="always" keep-together.within-page="always" space-before="2pt" space-before.conditionality="retain" color="#2F5496" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:inline font-weight="bold"><fo:leader leader-length="0pt" />Table Example</fo:inline></fo:block><fo:block space-after="8pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="Calibri" font-size="11pt" language="EN-US" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:leader /></fo:block><fo:table font-family="Calibri" language="EN-US" start-indent="0pt" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:table-column column-number="1" column-width="116.85pt" /><fo:table-column column-number="2" column-width="116.85pt" /><fo:table-column column-number="3" column-width="116.9pt" /><fo:table-column column-number="4" column-width="116.9pt" /><fo:table-body start-indent="0pt" end-indent="0pt"><fo:table-row><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" border-bottom-style="solid" border-bottom-color="#666666" border-bottom-width="1.5pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline font-weight="bold"><fo:leader leader-length="0pt" />Column1</fo:inline></fo:block></fo:block-container></fo:table-cell><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-bottom-style="solid" border-bottom-color="#666666" border-bottom-width="1.5pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline font-weight="bold"><fo:leader leader-length="0pt" />Column2</fo:inline></fo:block></fo:block-container></fo:table-cell><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-bottom-style="solid" border-bottom-color="#666666" border-bottom-width="1.5pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline font-weight="bold"><fo:leader leader-length="0pt" />Column3</fo:inline></fo:block></fo:block-container></fo:table-cell><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" border-bottom-style="solid" border-bottom-color="#666666" border-bottom-width="1.5pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline font-weight="bold"><fo:leader leader-length="0pt" />Column4</fo:inline></fo:block></fo:block-container></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" border-bottom-style="solid" border-bottom-color="#999999" border-bottom-width="0.5pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline><fo:leader leader-length="0pt" />Morbi</fo:inline></fo:block></fo:block-container></fo:table-cell><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-bottom-style="solid" border-bottom-color="#999999" border-bottom-width="0.5pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline><fo:leader leader-length="0pt" />Quis</fo:inline></fo:block></fo:block-container></fo:table-cell><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-bottom-style="solid" border-bottom-color="#999999" border-bottom-width="0.5pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline><fo:leader leader-length="0pt" />Metus</fo:inline></fo:block></fo:block-container></fo:table-cell><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" border-bottom-style="solid" border-bottom-color="#999999" border-bottom-width="0.5pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline><fo:leader leader-length="0pt" />Facilisis</fo:inline></fo:block></fo:block-container></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" border-bottom-style="solid" border-bottom-color="#999999" border-bottom-width="0.5pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline><fo:leader leader-length="0pt" />Etiam</fo:inline></fo:block></fo:block-container></fo:table-cell><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-bottom-style="solid" border-bottom-color="#999999" border-bottom-width="0.5pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline><fo:leader leader-length="0pt" />Feugiat</fo:inline></fo:block></fo:block-container></fo:table-cell><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-bottom-style="solid" border-bottom-color="#999999" border-bottom-width="0.5pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline><fo:leader leader-length="0pt" />Mi</fo:inline></fo:block></fo:block-container></fo:table-cell><fo:table-cell padding-top="0pt" padding-left="5.4pt" padding-bottom="0pt" padding-right="5.4pt" border-bottom-style="solid" border-bottom-color="#999999" border-bottom-width="0.5pt" border-right-style="solid" border-right-color="#999999" border-right-width="0.5pt" border-top-style="solid" border-top-color="#999999" border-top-width="0.5pt" border-left-style="solid" border-left-color="#999999" border-left-width="0.5pt" background-color="white" color="black"><fo:block-container><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.147" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline><fo:leader leader-length="0pt" />Quis</fo:inline></fo:block></fo:block-container></fo:table-cell></fo:table-row></fo:table-body></fo:table><fo:block space-after="8pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="Calibri" font-size="11pt" language="EN-US" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:leader /></fo:block><fo:block id="IDDCJRKO0V21CYJAE3FLLBZ44JOE3BNQGEQORMW5OVGQYMGWKVXXWD" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block id="IDXBGSLFFN1EIDHHYHQ2VM5HANLKZZUSK4DPBTGIOMJBQPEFI1YYKO" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block id="IDWWOXDNOFJ13YMRZXQRDDAZQWQJQ4BYB2WPERMEFMQG5YHSILNCGC" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg" /><fo:block space-after="0pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="CalibriLight" font-size="13pt" language="EN-US" keep-with-next.within-page="always" keep-together.within-page="always" space-before="2pt" space-before.conditionality="retain" color="#2F5496" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:inline font-weight="bold"><fo:leader leader-length="0pt" />WordArt Example</fo:inline></fo:block><fo:block space-after="8pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="Calibri" font-size="11pt" language="EN-US" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:svg="http://www.w3.org/2000/svg"><fo:inline><fo:block-container absolute-position="absolute" left="0" top="0"><fo:block><fo:block-container block-progression-dimension="2in"><fo:block><fo:instream-foreign-object><svg:svg overflow="visible" stroke="black" fill="none" width="11in" height="19in" viewBox="0, 0, 990, 1710"><svg:svg width="180" height="180" viewBox="0, 0, 180, 180" preserveAspectRatio="none" overflow="visible"><svg:g><svg:path stroke="none" x="0" y="0" width="180" height="180" d="M 0 0L 0 180l 180 0L 180 0Z " /></svg:g></svg:svg></svg:svg></fo:instream-foreign-object><fo:block-container absolute-position="absolute" overflow="hidden" left="0.0999562554680665in" top="0.06944444444444445in" width="1.800087489063867in" height="1.9583333333333332in"><fo:block hyphenate="true" hyphenation-character=""><fo:block space-after="8pt" space-after.conditionality="retain" line-height="1.2378041666666666" font-family="Calibri" font-size="11pt" language="EN-US" text-align="center"><fo:inline font-weight="bold" color="#262626" font-size="36pt"><fo:leader leader-length="0pt" />Hello World!</fo:inline></fo:block></fo:block></fo:block-container></fo:block></fo:block-container></fo:block></fo:block-container></fo:inline></fo:block></rx:flow-section><fo:block id="IDVJCXSR4WH0L5L2UZUNKT3URT1F4O4XSXUXKMCKBAIHRYKPS3ROSF" /></fo:flow></fo:page-sequence></fo:root>
-
More troubleshooting...
I copied the Apache FOP example from jsreport online and tested in my local environment and it did work. So my environment is OK. So it definitely has something to do with the processing of my template content which I think would be closer to a real world example than the Apache FOP example.
-
There was a bug in the fop-pdf recipe with the error logging. I fixed it now in 2.1.1. Please update it and try again.
The most likely fop for some reason crashes and we need to get the information why the first.
-
Thanks, I'll see if I can get to this tomorrow and reply with the additional info.
-
jsreport-fop-pdf@2.1.1 fixed the Cannot read property 'error' message. But it looks like the FO that the Word2FO.xsl stylesheet generates is not in the proper order. Getting these errors from fop:
[ERROR] FOUserAgent - fo:marker must be an initial child: first-page-header (See position 161:34) [ERROR] FOUserAgent - fo:marker must be an initial child: first-page-footer (See position 161:34) [ERROR] FOUserAgent - fo:marker must be an initial child: odd-page-header (See position 161:34) [ERROR] FOUserAgent - fo:marker must be an initial child: odd-page-footer (See position 161:34) [ERROR] FOUserAgent - fo:marker must be an initial child: even-page-header (See position 161:34) [ERROR] FOUserAgent - fo:marker must be an initial child: even-page-footer (See position 161:34)