HostNotFoundError - after updating to 1.1.4-RELEASE, reverting to 1.1.0-RELEASE fixes the problem
Closed this issue · 2 comments
vrozkovec commented
Hi, please see attached error output.
ERROR - Pdf - Error while generating pdf: Loading pages (1/6)
Warning: Failed loading page http: (ignored)
Warning: Failed loading page http://da (ignored)
Warning: Failed loading page http://xn--moravsk-12a (ignored)
Warning: Failed loading page http://60kva-header.html (ignored)
Warning: Failed loading page http://xn--moravsk-12a (ignored)
Warning: Failed loading page http: (ignored)
Warning: Failed loading page http://da (ignored)
Warning: Failed loading page http://60kva-footer.html (ignored)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=1§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=Moravský&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=2§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=Kočov,&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=3§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=DA&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=4§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=60kVA-header.html&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=4§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=60kVA-header.html&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=5§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=Moravský&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=6§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=Kočov,&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=7§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=DA&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=8§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=60kVA-footer.html&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=9§ion=Sídlo:&sitepage=1&title=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=2&webpage=/opt/jetty/temp/java-wkhtmltopdf-wrapper78398c60-38a9-46b0-8392-7bb10a77173b6921811445407951915.html&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=10§ion=Sídlo:&sitepage=2&title=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=2&webpage=/opt/jetty/temp/java-wkhtmltopdf-wrapper78398c60-38a9-46b0-8392-7bb10a77173b6921811445407951915.html&time=22:00&date=15.01.19 (ignored)
Printing pages (6/6)
Done
Exit with code 1 due to network error: HostNotFoundError
ERROR - DefaultExceptionMapper - Unexpected error occurred
com.github.jhonnymertz.wkhtmltopdf.wrapper.PDFExportException: Process (/usr/local/bin/wkhtmltopdf -T 24 -B 12 -L 6 -R 6 --enable-javascript --enable-forms --load-error-handling ignore --header-spacing 3 --header-html file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s, Moravský Kočov, DA 60kVA-header.html --footer-html file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s, Moravský Kočov, DA 60kVA-footer.html /opt/jetty/temp/java-wkhtmltopdf-wrapper78398c60-38a9-46b0-8392-7bb10a77173b6921811445407951915.html -) exited with status code 1:
Loading pages (1/6)
[> ] 0%
[> ] 1%
[=> ] 2%
[=> ] 3%
[==> ] 4%
[===> ] 5%
[===> ] 6%
[====> ] 7%
[====> ] 8%
[======> ] 10%
Warning: Failed loading page http: (ignored)
Warning: Failed loading page http://da (ignored)
Warning: Failed loading page http://xn--moravsk-12a (ignored)
Warning: Failed loading page http://60kva-header.html (ignored)
Warning: Failed loading page http://xn--moravsk-12a (ignored)
Warning: Failed loading page http: (ignored)
Warning: Failed loading page http://da (ignored)
[======> ] 11%
Warning: Failed loading page http://60kva-footer.html (ignored)
[=======> ] 12%
[=======> ] 12%
[=======> ] 13%
[=======> ] 13%
[========> ] 14%
[============> ] 20%
Counting pages (2/6)
[======> ] Object 1 of 9
[=============> ] Object 2 of 9
[===================> ] Object 3 of 9
[==========================> ] Object 4 of 9
[=================================> ] Object 5 of 9
[=======================================> ] Object 6 of 9
[==============================================> ] Object 7 of 9
[====================================================> ] Object 8 of 9
[============================================================] Object 9 of 9
Resolving links (4/6)
[======> ] Object 1 of 9
[=============> ] Object 2 of 9
[===================> ] Object 3 of 9
[==========================> ] Object 4 of 9
[=================================> ] Object 5 of 9
[=======================================> ] Object 6 of 9
[==============================================> ] Object 7 of 9
[====================================================> ] Object 8 of 9
[============================================================] Object 9 of 9
Loading headers and footers (5/6)
[> ] 0%
[> ] 1%
[=> ] 2%
[=> ] 3%
[==> ] 4%
[===> ] 5%
[===> ] 6%
[====> ] 7%
[====> ] 8%
[=====> ] 9%
[======> ] 10%
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=1§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=Moravský&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=2§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=Kočov,&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=3§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=DA&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=4§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=60kVA-header.html&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=4§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=60kVA-header.html&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=5§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=Moravský&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=6§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=Kočov,&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=7§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=DA&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=8§ion=&sitepage=1&title=&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=1&webpage=60kVA-footer.html&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=9§ion=Sídlo:&sitepage=1&title=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=2&webpage=/opt/jetty/temp/java-wkhtmltopdf-wrapper78398c60-38a9-46b0-8392-7bb10a77173b6921811445407951915.html&time=22:00&date=15.01.19 (ignored)
Warning: Failed loading page file:///data/tmp/Nabidka_190029_2019-01-17_2019-01-17_LIKO-S,a.s,?page=10§ion=Sídlo:&sitepage=2&title=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&subsection=&frompage=1&subsubsection=&isodate=2019-01-15&topage=10&doctitle=Rental.cz nabídka č. 190029 | start: 17.01.2019 08:00:00 | konec: 17.01.2019 16:00:00&sitepages=2&webpage=/opt/jetty/temp/java-wkhtmltopdf-wrapper78398c60-38a9-46b0-8392-7bb10a77173b6921811445407951915.html&time=22:00&date=15.01.19 (ignored)
Printing pages (6/6)
[> ] Preparing
[======> ] Page 1 of 10
[============> ] Page 2 of 10
[==================> ] Page 3 of 10
[========================> ] Page 4 of 10
[==============================> ] Page 5 of 10
[====================================> ] Page 6 of 10
[==========================================> ] Page 7 of 10
[================================================> ] Page 8 of 10
[======================================================> ] Page 9 of 10
[============================================================] Page 10 of 10
Done
Exit with code 1 due to network error: HostNotFoundError
at com.github.jhonnymertz.wkhtmltopdf.wrapper.Pdf.getPDF(Pdf.java:139)
at com.github.jhonnymertz.wkhtmltopdf.wrapper.Pdf.saveAs(Pdf.java:117
...
with 1.1.0-RELEASE the command line is:
/usr/local/bin/wkhtmltopdf -T 24 -B 12 -L 6 -R 6 --enable-javascript --enable-forms --load-error-handling ignore --header-spacing 3 --header-html file:///data/tmp/PracovniVykazTechnika_190029_2019-01-17_2019-01-17_LIKO-S,a.s, Moravský Kočov, DA 60kVA-header.html --footer-html file:///data/tmp/PracovniVykazTechnika_190029_2019-01-17_2019-01-17_LIKO-S,a.s, Moravský Kočov, DA 60kVA-footer.html -
and PDF gets generated ok
I believe this is the culprit:
Warning: Failed loading page http: (ignored)
Warning: Failed loading page http://da (ignored)
Warning: Failed loading page http://xn--moravsk-12a (ignored)
Warning: Failed loading page http://60kva-header.html (ignored)
Warning: Failed loading page http://xn--moravsk-12a (ignored)
Warning: Failed loading page http: (ignored)
Warning: Failed loading page http://da (ignored)
because something regarding to handling of whitespaces has changed.
So far I did not have time to fully look into it, quickly scanning commits that came after 1.1.0-RELEASE didn't give me any hints, so in case this error rings the bell for you, please fix it.
Thank you very much.
vrozkovec commented
Breaking change introduced by commit kdenzel/java-wkhtmltopdf-wrapper@736977e
Pull request #45 reverts this change.
jhonnymertz commented
Thank you for reporting and investigating the problem! The fix was merged and a new release will be generated soon.