Empty PDF Files created

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

MikaLaurer
Posts: 21
Joined: Thu Apr 02, 2020 9:18 am

Empty PDF Files created

Post by MikaLaurer » Fri Apr 17, 2020 10:31 am

Hello,

since my request for help at a similar post wans't noticed I'll open the topic here again.
I somehow can't create PDF Previews. Everytime I click on the button at the preview page it loads a blank page without any information on it.
In the Preview directory within the backend I can see the css and pdf file. The css file has data in it though the pdf hasn't.

The following is the Error message I get from the catalina.out

Code: Select all

2020-04-17 08:41:55,533: ERROR [https-jsse-nio-8443-exec-6] com.agnitas.emm.core.workflow.service.GenerationPDFService - generatePDF: java.lang.Exception: Preview generation via wkhtmltopdf was unsuccessful: 
/usr/local/bin/wkhtmltopdf
-s
A4
-O
Portrait
-T
25mm
-B
12mm
--print-media-type
--enable-smart-shrinking
--user-style-sheet
/home/openemm/temp/Preview/preview_5832412012533116975.css
https://.../mailingsend.do;jsessionid=8009D1FA909147D58CE36F04F3889D60?action=16&mailingID=158&previewFormat=1&previewSize=1&previewCustomerID=767&noImages=false
/home/openemm/temp/Preview/preview_8106742749437180337.pdf
java.lang.Exception: Preview generation via wkhtmltopdf was unsuccessful: 
/usr/local/bin/wkhtmltopdf
-s
A4
-O
Portrait
-T
25mm
-B
12mm
--print-media-type
--enable-smart-shrinking
--user-style-sheet
/home/openemm/temp/Preview/preview_5832412012533116975.css
https://.../mailingsend.do;jsessionid=8009D1FA909147D58CE36F04F3889D60?action=16&mailingID=158&previewFormat=1&previewSize=1&previewCustomerID=767&noImages=false
/home/openemm/temp/Preview/preview_8106742749437180337.pdf
	at com.agnitas.emm.core.workflow.service.GenerationPDFService.generatePDF(GenerationPDFService.java:109)
	at com.agnitas.emm.core.workflow.service.GenerationPDFService.generatePDF(GenerationPDFService.java:52)
	at com.agnitas.web.ComMailingSendAction.execute(ComMailingSendAction.java:593)
	at com.agnitas.web.perm.DelegatingActionProxySecured.execute(DelegatingActionProxySecured.java:120)
	at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
	at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.web.filter.Struts1SecurityFilter.doFilter(Struts1SecurityFilter.java:89)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.OriginUriFilter.doFilter(OriginUriFilter.java:43)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:46)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:80)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.sessionhijacking.web.GroupingSessionHijackingPreventionFilter.doFilter(GroupingSessionHijackingPreventionFilter.java:105)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.web.filter.HttpSecurityHeaderFilter.doFilter(HttpSecurityHeaderFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.agnitas.emm.core.commons.filter.LoadBalancerFilter.doFilter(LoadBalancerFilter.java:154)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
Thanks for your help.
Mika Laurer
Last edited by MikaLaurer on Mon May 18, 2020 6:59 am, edited 1 time in total.

Andrey
Posts: 51
Joined: Wed Jun 21, 2017 12:13 pm

Re: Empty PDF Files created

Post by Andrey » Fri May 15, 2020 6:53 pm

Hi,
I also tried to wget the PDF generation from the terminal shell.
Possible you can get some new information.

Code: Select all

wget "https://test.openemm.autostadt.vwg/mailingsend.do;jsessionid=8009D1FA909147D58CE36F04F3889D60?action=16&mailingID=158&previewFormat=1&previewSize=1&previewCustomerID=767&noImages=false"

maschoff
Site Admin
Posts: 2493
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Empty PDF Files created

Post by maschoff » Thu May 28, 2020 2:03 pm

Please try out latest version 20.04.000.143 published today. We implemented a workaround to improve cooperation of OpenEMM with wkhtmlto.
OpenEMM Maintainer

MikaLaurer
Posts: 21
Joined: Thu Apr 02, 2020 9:18 am

Re: Empty PDF Files created

Post by MikaLaurer » Tue Jun 02, 2020 8:19 am

The new version fixed the problem. Thank you!

Post Reply