Canvas printing PDF not working - blank page returned

Hi Team,
Im in progress of finalising my application build and have noticed that the print function delivers a white page with nothing on it. No errors in the console or on the page,
Please help to find the issue that would cause no printing error and a blank page.
Thanks
Ilia

Hi @ishapiro,

Not much to go on from the information posted. Are you able to see if there are any errors in the logs: WEB-INF\logs\application.log

Failed to wait for the requested page to load

phantomjs://code/with-session.js:129 in checkPageReady
|SetProcessDpiAwareness failed: “COM error 0x80070005 (Unknown error 0x0ffffffff80070005)”

at com.cubewise.j.a(SourceFile:55)
at com.cubewise.servlets.PrintServlet.doGet(SourceFile:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.filters.ExpiresFilter.doFilter(ExpiresFilter.java:1201)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

2017-08-29 12:47:30 com.cubewise.servlets.PrintServlet WARN PrintServlet:80 PrintServlet() - File [C:\CWAS\webapps\Allegis_ROBI\WEB-INF\print\c2de04b1-6063-472a-821e-ea3d91051de1.pdf] is not ready yet. Retrying in [10] seconds…
2017-08-29 12:47:40 com.cubewise.servlets.PrintServlet WARN PrintServlet:82 PrintServlet() - Waiting done.

Hi @ishapiro,

What is the version of Canvas that you are using it with?

Also, try this out. On the settings.json file within WEB-INF/config folder, try to find this property printerOutputWaitingPeriod and update it to 20. This will increase the timeout to 20 seconds on these scenarios to wait for the PDF to be generated.

Let us know if there is any effect. Also, while waiting, could you check if there is any PDF file generated within WEB-INF/print folder?


Paul

Hi Paul,
I have changed the printerOutputWaiting to 20sec but still no luck.

phantomjs://code/with-session.js:129 in checkPageReady
|SetProcessDpiAwareness failed: “COM error 0x80070005 (Unknown error 0x0ffffffff80070005)”

at com.cubewise.j.a(SourceFile:55)
at com.cubewise.servlets.PrintServlet.doGet(SourceFile:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.filters.ExpiresFilter.doFilter(ExpiresFilter.java:1201)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

2017-08-29 14:00:06 com.cubewise.servlets.PrintServlet WARN PrintServlet:80 PrintServlet() - File [C:\CWAS\webapps\Allegis_ROBI\WEB-INF\print\ecc0e023-fdab-4b4a-b981-2136b27ef884.pdf] is not ready yet. Retrying in [20] seconds…
2017-08-29 14:00:26 com.cubewise.servlets.PrintServlet WARN PrintServlet:82 PrintServlet() - Waiting done.

Cheers,
Ilia

Hi @ishapiro,

Any PDF files generated in WEB-INF\print folder? Note that this is a temporary file, and if there ever should be a file generated within this folder, it will be deleted after 20 seconds.


Paul

No, no file generated in side the print folder
Thanks

Hi Paul,
I have created a blank page from admin and tried printing that page with 40 sec timeout. Nothing has come back as a PDF. The version is the mobile version of the last canvas build.
No file in folder or on screen.
Thanks
Ilia

Hi @ishapiro,

Can you submit a ticket for this? Let us have a look further from there.


Paul

@plim I am experiencing the same issue as @ishapiro. I know this is a more than a year later but is this fixed? I am getting blank outputs from the Attachment task for any page I test with, but printing works when directly printing through the URL. (Also a follow up question, is it possible to use relative urls for the URL links in the attachments? right now NOTHING gets output if I use relative urls. I have to use the full URL which will be a pain when migrating tasks between environments)

Example of the attachment (I edited out the hostname):

Example of the logs I receive:

2018-11-14 12:47:47 com.cubewise.o WARN ScheduleManager:144 SMTP settings must be set in the WEB-INF\config\settings.json to run scheduled jobs
2018-11-14 12:47:47 com.cubewise.p INFO TaskRunJob:633 Running job… [FIN18 Report Test]
2018-11-14 12:47:47 com.cubewise.p INFO TaskRunJob:676 Reference base path of requests: http://corrdctm03-tmp.corp.jabil.org:8080/tm1devtyler
2018-11-14 12:47:48 com.cubewise.p INFO TaskRunJob:729 Running job… Processing Report [Test]
2018-11-14 12:47:48 com.cubewise.h DEBUG ChromiumPrinter:95 SlotAndPortFound: 9000
2018-11-14 12:47:48 com.cubewise.h DEBUG ChromiumPrinter:345 [9000] InitChromiumWithPort 9000
2018-11-14 12:47:48 com.cubewise.h DEBUG ChromiumPrinter:354 [9000] Utilizing custom URL: http://localhost:9000
2018-11-14 12:47:48 com.cubewise.h DEBUG ChromiumPrinter:360 [9000] PrintPage baseUrl: http://localhost:9000
2018-11-14 12:47:48 com.cubewise.h DEBUG ChromiumPrinter:186 [null] GetResponse URL: http://localhost:9000/json/version
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:199 [null] Chromium is not yet running…Connection refused: connect; <— java.net.ConnectException: Connection refused: connect
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:218 [9000] initHeadlessChrome()
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:248 [9000] initHeadlessChrome() param: C:\CWAS\webapps\tm1devtyler../…/printer/chrome.exe
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:248 [9000] initHeadlessChrome() param: --remote-debugging-port=9000
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:248 [9000] initHeadlessChrome() param: --headless
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:248 [9000] initHeadlessChrome() param: --disable-gpu
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:248 [9000] initHeadlessChrome() param: --window-size=1920,1080
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:248 [9000] initHeadlessChrome() param: --allow-running-insecure-content
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:248 [9000] initHeadlessChrome() param: --hide-scrollbars
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:248 [9000] initHeadlessChrome() param: --proxy-bypass-list=*
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:248 [9000] initHeadlessChrome() param: --proxy-server=‘direct://’
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:254 [9000] File printer located at: C:\CWAS\printer\chrome.exe
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:263 [9000] initHeadlessChrome() RUNNING
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:113 [9000] Initializing with port [9000] has status as [true]
2018-11-14 12:47:49 com.cubewise.h INFO ChromiumPrinter:418 [9000] PrintPageRequest: [http://corrdctm03-tmp.corp.jabil.org:8080/tm1devtyler/#/tax/fin18/tax-discretes]
2018-11-14 12:47:49 com.cubewise.h DEBUG ChromiumPrinter:186 [9000] GetResponse URL: http://localhost:9000/json/version
2018-11-14 12:47:50 com.cubewise.h DEBUG ChromiumPrinter:195 [9000] GetResponse Status: 200
2018-11-14 12:47:50 com.cubewise.h DEBUG ChromiumPrinter:431 [9000] Retrieved browser info: ChromiumBrowser [Browser=HeadlessChrome/67.0.3396.0, ProtocolVersion=1.3, UserAgent=Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/67.0.3396.0 Safari/537.36, V8Version=6.7.288.1, WebKitVersion=537.36 (@14a6d4db2c124be74a22ee0a16e0bb6e11ce8d10), webSocketDebuggerUrl=ws://localhost:9000/devtools/browser/2ffa0f9f-b2af-4b6f-9745-f04b296e25e8]
2018-11-14 12:47:50 com.cubewise.h DEBUG ChromiumPrinter:431 [9000] Retrieved browser handle: com.cubewise.scheduler.pojo.ChromiumWebSocketEndpoint@2f493ce4
2018-11-14 12:47:50 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:0,“method”:“Target.createTarget”,“params”:{“url”:“about:blank”}}
2018-11-14 12:47:50 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“result”]…
2018-11-14 12:47:50 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:0,“result”:{“targetId”:“7853A68E5D9B909B4722B77E4E110C5F”}}
2018-11-14 12:47:50 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“result”] Found!
2018-11-14 12:47:52 com.cubewise.h DEBUG ChromiumPrinter:186 [9000] GetResponse URL: http://localhost:9000/json/list
2018-11-14 12:47:52 com.cubewise.h DEBUG ChromiumPrinter:195 [9000] GetResponse Status: 200
2018-11-14 12:47:52 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:1,“method”:“Page.setLifecycleEventsEnabled”,“params”:{“enabled”:true}}
2018-11-14 12:47:52 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“result”]…
2018-11-14 12:47:52 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Page.lifecycleEvent”,“params”:{“frameId”:“7853A68E5D9B909B4722B77E4E110C5F”,“loaderId”:“54C79F9F12298FE5FE9D7E8D172D33F8”,“name”:“commit”,“timestamp”:3169657.422385}}
2018-11-14 12:47:52 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Page.lifecycleEvent”,“params”:{“frameId”:“7853A68E5D9B909B4722B77E4E110C5F”,“loaderId”:“54C79F9F12298FE5FE9D7E8D172D33F8”,“name”:“DOMContentLoaded”,“timestamp”:3169657.423047}}
2018-11-14 12:47:52 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Page.lifecycleEvent”,“params”:{“frameId”:“7853A68E5D9B909B4722B77E4E110C5F”,“loaderId”:“54C79F9F12298FE5FE9D7E8D172D33F8”,“name”:“load”,“timestamp”:3169657.423152}}
2018-11-14 12:47:52 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Page.lifecycleEvent”,“params”:{“frameId”:“7853A68E5D9B909B4722B77E4E110C5F”,“loaderId”:“54C79F9F12298FE5FE9D7E8D172D33F8”,“name”:“networkAlmostIdle”,“timestamp”:3169657.423518}}
2018-11-14 12:47:52 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Page.lifecycleEvent”,“params”:{“frameId”:“7853A68E5D9B909B4722B77E4E110C5F”,“loaderId”:“54C79F9F12298FE5FE9D7E8D172D33F8”,“name”:“networkIdle”,“timestamp”:3169657.423518}}
2018-11-14 12:47:52 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:1,“result”:{}}
2018-11-14 12:47:52 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“result”] Found!
2018-11-14 12:47:54 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:2,“method”:“Page.enable”,“params”:{}}
2018-11-14 12:47:54 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“result”]…
2018-11-14 12:47:54 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:2,“result”:{}}
2018-11-14 12:47:54 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“result”] Found!
2018-11-14 12:47:56 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:3,“method”:“Security.setIgnoreCertificateErrors”,“params”:{“ignore”:true}}
2018-11-14 12:47:56 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“result”]…
2018-11-14 12:47:56 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:3,“result”:{}}
2018-11-14 12:47:56 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“result”] Found!
2018-11-14 12:47:58 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:4,“method”:“Network.enable”,“params”:{}}
2018-11-14 12:47:58 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“result”]…
2018-11-14 12:47:58 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:4,“result”:{}}
2018-11-14 12:47:58 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“result”] Found!
2018-11-14 12:48:00 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:5,“method”:“Runtime.enable”,“params”:{}}
2018-11-14 12:48:00 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“result”]…
2018-11-14 12:48:00 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Runtime.executionContextCreated”,“params”:{“context”:{“id”:1,“origin”:“://”,“name”:“”,“auxData”:{“isDefault”:true,“frameId”:“7853A68E5D9B909B4722B77E4E110C5F”}}}}
2018-11-14 12:48:00 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:5,“result”:{}}
2018-11-14 12:48:00 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“result”] Found!
2018-11-14 12:48:02 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:6,“method”:“Security.enable”,“params”:{}}
2018-11-14 12:48:02 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“result”]…
2018-11-14 12:48:02 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Security.securityStateChanged”,“params”:{“securityState”:“neutral”,“schemeIsCryptographic”:false,“explanations”:[],“insecureContentStatus”:{“ranMixedContent”:false,“displayedMixedContent”:false,“containedMixedForm”:false,“ranContentWithCertErrors”:false,“displayedContentWithCertErrors”:false,“ranInsecureContentStyle”:“unknown”,“displayedInsecureContentStyle”:“unknown”},“summary”:“”}}
2018-11-14 12:48:02 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:6,“result”:{}}
2018-11-14 12:48:02 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“result”] Found!
2018-11-14 12:48:04 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:7,“method”:“Performance.enable”,“params”:{}}
2018-11-14 12:48:04 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“result”]…
2018-11-14 12:48:04 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:7,“result”:{}}
2018-11-14 12:48:04 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“result”] Found!
2018-11-14 12:48:06 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:8,“method”:“Log.enable”,“params”:{}}
2018-11-14 12:48:06 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“result”]…
2018-11-14 12:48:06 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:8,“result”:{}}
2018-11-14 12:48:06 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“result”] Found!
2018-11-14 12:48:08 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:9,“method”:“Network.setCookie”,“params”:{“path”:“/”,“domain”:“corrdctm03-tmp.corp.jabil.org”,“name”:“APPBASESESSIONID”,“value”:“A3FB48F93477A799C0589485800F1403”}}
2018-11-14 12:48:08 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“result”]…
2018-11-14 12:48:08 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:9,“result”:{“success”:true}}
2018-11-14 12:48:08 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“result”] Found!
2018-11-14 12:48:10 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:10,“method”:“Page.navigate”,“params”:{“url”:“http://corrdctm03-tmp.corp.jabil.org:8080/tm1devtyler/#/tax/fin18/tax-discretes?print”}}
2018-11-14 12:48:10 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“networkIdle”]…
100s of lines of com.cubewise.j DEBUG ChromiumResponseTask:55
2018-11-14 12:48:12 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“networkIdle”]…
2018-11-14 12:48:12 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Page.lifecycleEvent”,“params”:{“frameId”:“7853A68E5D9B909B4722B77E4E110C5F”,“loaderId”:“AE23548835E3DCE82BE4C6A5DA8BD93E”,“name”:“networkAlmostIdle”,“timestamp”:3169678.558086}}
2018-11-14 12:48:12 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Page.lifecycleEvent”,“params”:{“frameId”:“7853A68E5D9B909B4722B77E4E110C5F”,“loaderId”:“AE23548835E3DCE82BE4C6A5DA8BD93E”,“name”:“networkIdle”,“timestamp”:3169678.5581}}
2018-11-14 12:48:12 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“networkIdle”] Found!
2018-11-14 12:48:14 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:11,“method”:“Emulation.setEmulatedMedia”,“params”:{“media”:“print”}}
2018-11-14 12:48:14 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“result”]…
2018-11-14 12:48:14 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:11,“result”:{}}
2018-11-14 12:48:14 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“result”] Found!
2018-11-14 12:48:16 com.cubewise.h DEBUG ChromiumPrinter:543 [9000] Current PrintConfiguration Before Printing… ChromiumPrintConfiguration [SessionID=A3FB48F93477A799C0589485800F1403, Domain=corrdctm03-tmp.corp.jabil.org, PageSize=A4, PageScale=0.5, PageOrientation=PORTRAIT, Protocol=http, OutputPath=C:\CWAS\webapps\tm1devtyler\WEB-INF\print\testprint-20181114\Attachment 1.pdf]
2018-11-14 12:48:17 com.cubewise.h DEBUG ChromiumPrinter:547 [9000] Waited 500ms Before Printing.
2018-11-14 12:48:17 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:12,“method”:“Page.printToPDF”,“params”:{“paperWidth”:8.3,“scale”:0.5,“paperHeight”:11.7}}
2018-11-14 12:48:17 com.cubewise.j DEBUG ChromiumResponseTask:1 Still Waiting for Keyword [“data”]…
2018-11-14 12:48:17 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Page.frameResized”,“params”:{}}
2018-11-14 12:48:17 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Page.frameResized”,“params”:{}}
2018-11-14 12:48:17 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:12,“result”:{“data”:“JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PC9DcmVhdG9yIChDaHJvbWl1bSkKL1Byb2R1Y2VyIChTa2lhL1BERiBtNjcpCi9DcmVhdGlvbkRhdGUgKEQ6MjAxODExMTQxODQ4MTcrMDAnMDAnKQovTW9kRGF0ZSAoRDoyMDE4MTExNDE4NDgxNyswMCcwMCcpPj4KZW5kb2JqCjIgMCBvYmoKPDwvRmlsdGVyIC9GbGF0ZURlY29kZQovTGVuZ3RoIDEwMz4+IHN0cmVhbQp4nEWMMQqAMAxF95ziz4K1SVuNJ3DWxQOIOilY7w+mdJAXQn6S/xneaNmaRsF20UOisEomB+3dGDgJ8k5rg9uuLgzJa2+74vxVdVkAo7BMqEM+qZs8zpfKP8eYIH7UknjQbHytXho0CmVuZHN0cmVhbQplbmRvYmoKMyAwIG9iago8PC9UeXBlIC9DYXRhbG9nCi9QYWdlcyA0IDAgUj4+CmVuZG9iago0IDAgb2JqCjw8L1R5cGUgL1BhZ2VzCi9Db3VudCAxCi9LaWRzIFs1IDAgUl0+PgplbmRvYmoKNSAwIG9iago8PC9UeXBlIC9QYWdlCi9SZXNvdXJjZXMgPDwvUHJvY1NldHMgWy9QREYgL1RleHQgL0ltYWdlQiAvSW1hZ2VDIC9JbWFnZUldCi9FeHRHU3RhdGUgPDwvRzAgNiAwIFI+Pj4+Ci9NZWRpYUJveCBbMCAwIDU5NyA4NDJdCi9Db250ZW50cyAyIDAgUgovUGFyZW50IDQgMCBSPj4KZW5kb2JqCjYgMCBvYmoKPDwvY2EgMQovQk0gL05vcm1hbD4+CmVuZG9iagp4cmVmCjAgNwowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAwMTUgMDAwMDAgbiAKMDAwMDAwMDE1NCAwMDAwMCBuIAowMDAwMDAwMzI3IDAwMDAwIG4gCjAwMDAwMDAzNzQgMDAwMDAgbiAKMDAwMDAwMDQyOSAwMDAwMCBuIAowMDAwMDAwNjAxIDAwMDAwIG4gCnRyYWlsZXIKPDwvU2l6ZSA3Ci9Sb290IDMgMCBSCi9JbmZvIDEgMCBSPj4Kc3RhcnR4cmVmCjYzOAolJUVPRg==”}}
2018-11-14 12:48:17 com.cubewise.j DEBUG ChromiumResponseTask:62 Keyword [“data”] Found!
2018-11-14 12:48:17 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Page.frameResized”,“params”:{}}
2018-11-14 12:48:17 com.cubewise.j DEBUG ChromiumResponseTask:55 {“method”:“Page.frameResized”,“params”:{}}
2018-11-14 12:48:19 com.cubewise.h DEBUG ChromiumPrinter:580 [9000] PrintPageData(size): 1166
2018-11-14 12:48:19 com.cubewise.h DEBUG ChromiumPrinter:597 [9000] FileCreatedSuccessfully: C:\CWAS\webapps\tm1devtyler\WEB-INF\print\testprint-20181114\Attachment 1.pdf
2018-11-14 12:48:19 com.cubewise.h DEBUG ChromiumPrinter:605 [9000] Done printing.
2018-11-14 12:48:19 com.cubewise.j DEBUG ChromiumResponseTask:48 Request: {“id”:13,“method”:“Browser.close”,“params”:{}}
2018-11-14 12:48:19 com.cubewise.j DEBUG ChromiumResponseTask:1 Not Waiting for Any Response
2018-11-14 12:48:19 com.cubewise.j DEBUG ChromiumResponseTask:55 {“id”:13,“result”:{}}
2018-11-14 12:48:19 com.cubewise.h DEBUG ChromiumPrinter:624 [9000] PortRemoved
2018-11-14 12:48:19 com.cubewise.h DEBUG ChromiumPrinter:632 [9000] PrintThreadStillAlive
2018-11-14 12:48:19 com.cubewise.h DEBUG ChromiumPrinter:641 [9000] PrintThreadClosed
2018-11-14 12:48:19 com.cubewise.h INFO ChromiumPrinter:645 [9000] PrintPageRequest: [http://corrdctm03-tmp.corp.jabil.org:8080/tm1devtyler/#/tax/fin18/tax-discretes?print], Completed: [true], PortsStillInUse: []
2018-11-14 12:48:19 com.cubewise.p INFO TaskRunJob:1073 Running job… Processing Reports - PrintPDFJobDone
2018-11-14 12:48:19 com.cubewise.p INFO TaskRunJob:1096 Running job… Processing Reports - DONE
2018-11-14 12:48:19 com.cubewise.p INFO TaskRunJob:1211 Running job… [FIN18 Report Test] DONE

Nothing looks out of the ordinary. But this is the document I get, it’s just blank:

Attachment 1.pdf (850 Bytes)

Hi @tyler_salminen ,

The post prior to your was due to a Windows Security issue which the previous underlying printing engine’s library’s team was not able to release a fix.

Can you contact your local Cubewise office to help you create a ticket for the above? Thanks.

As for your second question, that should be supported. What was the URL that you have used? Were there any changes with the default URL path separator? Default is the hash tag / pound sign which can also be changed.


Paul

@plim Thank you, Will do.

For the URL. With respect to the example I had above in the screenshot I tried the following:

  1. /tm1devtyler/#/tax/fin18/tax-discretes [Worked]
  2. /tm1devtyler/#/tax/fin18/tax-discretes [Did not work]
  3. tm1devtyler/#/tax/fin18/tax-discretes [Did not work]
  4. /#/tax/fin18/tax-discretes [Did not work]
  5. #/tax/fin18/tax-discretes [Did not work]
  6. /tax/fin18/tax-discretes [Did not work]
  7. tax/fin18/tax-discretes [Did not work]

The execution button would just keep spinning in the [Did not work] ones. I had to refresh the page to see that the task had indeed stopped. I can re-run these tomorrow and get logs

Hi @tyler_salminen ,

That could be related to the current issue (the blank PDF) that you are facing at the moment.

Let us have a look further through the ticket once created.


Paul

Ok sounds good, FYI I created the ticket

Hi @tyler_salminen,

Thanks! And in relation to the relative URL, formats 5 and 6 should work.


Cheers!
Paul