This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Bipin Darole
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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();
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
//ExportAsAtttachment(true) prompts for open or save; false opens the report
//in the speficied format after exporting.
//Export the report
oReportExportControl.processHttpRequest(request, response,getServletConfig().getServletContext(), null);

Thanks in advance!
William Brogden
Author and all-around good cowpoke
Posts: 13078
  • 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.

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