Traditional web-based reporting with SAS BI tools

WebReport Studio 4.4 - Print to PDF issue.

Reply
Occasional Learner
Posts: 1

WebReport Studio 4.4 - Print to PDF issue.

Hi all...

 

A user is trying to run a huge PDF report(almost 3000 pages). After 2 hours, Web browser displays an error message below.

 

Web browser shows:

HTTP Status 500 - java.lang.IllegalStateException: getOutputStream() has already been called for this response

 

Relevant part of catalina.out shows:

20:16:16,737 | ERROR | [[action]] | Servlet.service() for servlet [action] in context with path [/SASWebReportStudio] threw exception [java.lang.IllegalStateException: getOutputStream() has already been called for this response] with root cause
java.lang.IllegalStateException: getOutputStream() has already been called for this response

 

and...

 

[WRS] ERROR [tomcat-http--41] 2016-11-29 20:16:16,675 [ST-62-tDrfJpDDVGqYm1GLDfjS-cas:a03307] citation.controller.action.PrintPreviewAction - Root Cause: java.io.FileNotFoundException: /sas/sasconfig/Lev1/Web/WebAppServer/SASServer2_1/sas.wrs.tmpfiles/d20161129_1747/d2/wrsCachingStream2902554385933464974tmp (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at com.sas.apps.citation.util.CachingIOStream.getInputStream(CachingIOStream.java:172)
at com.sas.apps.citation.model.report.PDFGenerator$InputStreamHolder.print(PDFGenerator.java:223)
at com.sas.apps.citation.model.report.PDFGenerator.getPDFStream(PDFGenerator.java:100)
at com.sas.apps.citation.model.report.RenderingImpl.getPDFStream(RenderingImpl.java:392)
at com.sas.apps.citation.view.beans.PrintOptionFormBean.previewReport(PrintOptionFormBean.java:606)
at com.sas.apps.citation.controller.action.PrintPreviewAction.applyDialog(PrintPreviewAction.java:201)
at com.sas.apps.citation.controller.action.CitationDialogAction.doPerform(CitationDialogAction.java:163)
at com.sas.apps.citation.controller.action.CitationAction._execute(CitationAction.java:188)
at com.sas.apps.citation.controller.action.CitationAction.execute(CitationAction.java:164)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
[ 97 lines suppressed ]
Which Caused: java.lang.RuntimeException: temp file invalid

 

Additional info...


Navigating to sas.wrs.tmpfiles/d20161129_1747/d2 directory there are no files.

 

It prints out ok when few pages are selected (eg. page 1 to 50).

 

Session timeouts of all Middle Tier components were increased to 6 hours(360 min)


OS: RHEL 7.2
SAS 9.4
WebReport Studio 4.4

Browsers: Mozilla Firefox, Chrome and Internet Explorer, all latest versions.


Any help?

 

Thanks.

SAS Super FREQ
Posts: 384

Re: WebReport Studio 4.4 - Print to PDF issue.

I'm sorry but there in no way around this issue other than printing a certain number of pages at a time. You are likely either timing out or the browser is running out of memory. 

Post a Question
Discussion Stats
  • 1 reply
  • 127 views
  • 0 likes
  • 2 in conversation