BookmarkSubscribeRSS Feed
mmiada
Calcite | Level 5

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.

1 REPLY 1
Madelyn_SAS
SAS Super FREQ

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. 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 752 views
  • 0 likes
  • 2 in conversation