It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

OutputStream already obtained error while generating a pdf

OutputStream already obtained error while generating a pdf

Postby nitinsingh on Thu Nov 16, 2006 7:13 am

Hi
My application is a struts/tiles application.I am generating a pdf in a jsp and get follwong error.The storage token and engine i get from action class.This code is in jsp.

Code is
<%
BinaryView docBinaryView =(BinaryView)documentInstance.getView(OutputFormatType.PDF);
response.setContentType("application/pdf");
response.setHeader("Content-Type", "application/pdf");
response.setDateHeader("expires", 0);
docBinaryView.getContent(response.getOutputStream());

%>


The error i get is


Could not invoke the service() method on servlet /nccb2bjsp/ncc/bo/fetchReportPdf.jsp. Exception thrown : java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained

Can anyone help.
nitinsingh
 
Posts: 2
Joined: Thu Nov 16, 2006 7:11 am
Location: bangalore

Who is online

Users browsing this forum: No registered users and 1 guest