• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat is logging IllegalStateException whenever it invokes processHttpRequest()  RSS feed

 
Bipin Darole
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The most likely cause has to do with more than one line of code trying to get the response output stream or in some other way trying to manipulate the response.

Look at the JavaDocs for ServletResponse - note all the ways an IllegalStateException can be triggered.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!