Skip to Content
avatar image
Former Member

Stream Closed errors in defaultTrace

I have been evaluating our logs/trace files looking for potential problems with our applications (not because I don't have anything better to do 😊 We have an error in the defaultTrace file that occurs over and over again. The error is as follows:

#1.5#00096B6B4AFD0015000015290020504C0004382920CC469B#1187649201915#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#pcbp.com/PCBPa#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#J2EE_GUEST#0####5b7bc5a04f6d11dca0de00096b6b4afd#SAPEngine_Application_Thread[impl:3]_22##0#0#Error#1#/System/Server/WebRequests#Plain###Processing HTTP request to servlet [jsp] finished with error.
The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIllegalStateException: The stream has already been taken by method [getOutputStream()].
Exception id: [00096B6B4AFD0015000015270020504C0004382920CC435D]#
#1.5#00096B6B4AFD00150000152A0020504C0004382920CC5014#1187649201917#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#pcbp.com/PCBPa#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#J2EE_GUEST#0####5b7bc5a04f6d11dca0de00096b6b4afd#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain###Cannot send an HTTP error response [500 Application error occurred during request processing. (details: com.sap.engine.services.servlets_jsp.server.exceptions.WebIllegalStateException: The stream has already been taken by method [getOutputStream()].)]. The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: The stream is closed.
        at com.sap.engine.services.servlets_jsp.server.runtime.client.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java(Compiled Code))
        at javax.servlet.ServletOutputStream.print(ServletOutputStream.java(Compiled Code))
        at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendBodyText(HttpServletResponseFacade.java(Inlined Compiled Code))
        at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.writeError(HttpServletResponseFacade.java(Compiled Code))
        at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.sendError(HttpHandlerImpl.java(Compiled Code))
        at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleGeneralException(HttpHandlerImpl.java(Inlined Compiled Code))
        at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.processError(HttpHandlerImpl.java(Compiled Code))
        at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))
        at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))
        at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))
        at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))
        at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))
        at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))
        at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Inlined Compiled Code))
        at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))
        at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
        at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
        at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
        at java.security.AccessController.doPrivileged1(Native Method)
        at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
        at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
        at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))

I'm curious as to what this error is. The users are not complaining about something not working or anything like that, but the message seems like something is not correct. These errors are being triggered by custom developed java apps running on NW04 SP14 installation. Does anyone know how I can dissect this message and troubleshoot where/what might be causing the problem?

thanks

Eric

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 21, 2007 at 08:31 AM

    Hi,

    It seems that the program is trying to create output stream which is already occupied by getOutputStream method.

    Check thishttp://www.servlets.com/soapbox/filters.html">this> for details.

    Ashutosh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 25, 2007 at 12:07 AM

    Any thoughts on how to track that down? I have an application identified in the message but not a specific jsp page that I can find.

    Add comment
    10|10000 characters needed characters exceeded