Bipin Darole

Greenhorn
+ Follow
since Sep 10, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Bipin Darole

Hello.
Tomcat is logging the attached IllegalStateException whenever it invokes ... processHttpRequest(request, response, getServletConfig(),null)

I have a jsp code to export to PDF. the exception is coming when i try to export to PDE..
But no exception comes when i export to CSV or HTML

Below is the code..
***************************************************************************
ExportOptions oExportOptions = new ExportOptions();
oExportOptions.setExportFormatType(ReportExportFormat.PDF);
ReportExportControl oReportExportControl = new ReportExportControl();

//Get the report source object that this viewer will be displaying.
Object reportSource = session.getAttribute("reportSource");

//Pass the report source to the ReportExportControl and set the ExportOptions
oReportExportControl.setReportSource(reportSource);
oReportExportControl.setExportOptions(oExportOptions);
//ExportAsAtttachment(true) prompts for open or save; false opens the report
//in the speficied format after exporting.
oReportExportControl.setExportAsAttachment(false);
//Export the report
oReportExportControl.processHttpRequest(request, response,getServletConfig().getServletContext(), null);
***************************************************************************

Thanks in advance!
16 years ago
JSP