cancel
Showing results for 
Search instead for 
Did you mean: 

XIR2 RAS SDK issue with ReportExportControl

Former Member
0 Kudos

Hi guys,

I am running into an issue with ReportExportControl() in RAS SDK.

The PDF export works fine but in the tomcat log, I get the following exception

java.lang.IllegalStateException: getOutputStream() has already been called for this response.

...

The code looks like the following.

ReportExportControl expViewer = new ReportExportControl();

expViewer.setExportOptions(exOpts);

expViewer.setReportSource(clientDoc.getReportSource());

expViewer.setExportAsAttachment(false);

response.reset();

expViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);

expViewer.dispose();

Thanks,

Tim Kang

Accepted Solutions (1)

Accepted Solutions (1)

ted_ueda
Employee
Employee
0 Kudos

Hello Tim,

[SAP Note 1199025|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393339333033323335%7D.do]

Most Java Web App Servers merely log the exception, but a few stream the error out and corrupts the PDF file.

Hope all is well.

Sincerely,

Ted Ueda

Former Member
0 Kudos

Hi Ted,

Thanks so much for the solution. Removing the white spaces from JSP resolved the issue.

Things are well. I'm back in the BI sector. Hope things are well with you and your family.

Tim

Answers (0)