Skip to Content
0
Former Member
Nov 26, 2008 at 10:29 AM

Manual Exporting to PDF - Get java.lang.IllegalStateException

38 Views

Hi Experts,

Using this code to export report to pdf get an IllegalStateException error.

JRCHelper.exportPDF(reportSource, request, response, config.getServletContext(), true);

java.lang.IllegalStateException

at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:308)

at org.apache.catalina.core.ApplicationHttpResponse.reset(ApplicationHttpResponse.java:119)

How this happens? I just follow on the sample code. It should work!

Any ideas!

Regards,

Rulix