java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream() Executing Long Running Reports

(Doc ID 1573219.1)

Last updated on MAY 21, 2018

Applies to:

Oracle Reports Developer - Version and later
Information in this document applies to any platform.
*** Checked for relevance on 04-Nov-2015***


Executing long running reports from a browser using OHS port or WLS_REPORTS port is failing with the following message:

Internet Explorer cannot display the webpage

Checking the job via showjobs shows that the report is finishing fine at back-end.


The following error is registered in WLS_REPORTS.out file:

####<Mar 28, 2013 7:50:07 AM CDT> <Error> <HTTP> <hostname.domain> <WLS_REPORTS> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1364475007932> <BEA-101020> <[ServletContext@10779770[app:reports module:/reports path:/reports spec-version:2.5 version:11.1.2]] Servlet failed with Exception
java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()
at weblogic.servlet.internal.ServletResponseImpl.getWriter(
at oracle.reports.rwclient.RWWriter.print(
at oracle.reports.rwclient.RWWriter.printErrorMsg(
at oracle.reports.rwclient.RWClient.handleException(
at oracle.reports.rwclient.RWClient.handleException(
at oracle.reports.rwclient.RWClient.processRequest(
at oracle.reports.rwclient.RWClient.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at weblogic.servlet.internal.StubSecurityHelper$
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.TailFilter.doFilter(
at weblogic.servlet.internal.FilterChainImpl.doFilter(



 The data the report uses has increased and now it takes longer for the reports server to generate the output


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms