Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2970

JaxRS Server Sent events implementation leaves lots of warning logs

    XMLWordPrintableJSON

Details

    Description

      The recent release of tomee 8.0.6 has a implementation of  JaxRS Server Sent events (thankyou jgallimore)

       

      However, refreshing a browser, or moving from page to page which uses server sent event,  will cause the following warnings to appear in the logs.  I think it may be due to chrome not closing the Event Source, just terminating the tcpip/pipe.  Adding eventSource.close() on pageUnload does not fix this. The same happens with Safari / Firefox.

      I don't think there is any way of suppressing these messages.

      Please reduce the level of these messages, maybe to FINE,  or provide a way I can prevent these errors.

      Thanks.

       

      13-Feb-2021 18:02:48.870 WARNING [http-nio-8080-exec-15] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Prematurely completing the AsyncContext due to error encountered: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
      13-Feb-2021 18:02:48.875 WARNING [http-nio-8080-exec-15] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Failed to close the AsyncContext cleanly: The request associated with the AsyncContext has already completed processing.
      13-Feb-2021 18:02:48.875 WARNING [http-nio-8080-exec-15] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Prematurely completing the AsyncContext due to error encountered: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
      13-Feb-2021 18:02:48.876 WARNING [http-nio-8080-exec-15] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Prematurely completing the AsyncContext due to error encountered: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
      13-Feb-2021 18:02:48.867 WARNING [http-nio-8080-exec-18] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Prematurely completing the AsyncContext due to error encountered: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
      13-Feb-2021 18:02:48.871 WARNING [http-nio-8080-exec-13] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Prematurely completing the AsyncContext due to error encountered: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
      13-Feb-2021 18:02:48.879 WARNING [http-nio-8080-exec-18] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Failed to close the AsyncContext

      Attachments

        Activity

          People

            Unassigned Unassigned
            tonywestonuk Tony Weston
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: