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

(Doc ID 1573219.1)

Last updated on APRIL 04, 2017

Applies to:

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

Symptoms


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(ServletResponseImpl.java:307)
at oracle.reports.rwclient.RWWriter.print(RWWriter.java:107)
at oracle.reports.rwclient.RWWriter.printErrorMsg(RWWriter.java:167)
at oracle.reports.rwclient.RWClient.handleException(RWClient.java:1465)
at oracle.reports.rwclient.RWClient.handleException(RWClient.java:1328)
at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:2010)
at oracle.reports.rwclient.RWClient.doGet(RWClient.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)

 

Changes

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

Cause

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