Tony Weston created TOMEE-2970:
----------------------------------

             Summary: JaxRS Server Sent events implementation leaves lots of 
warning logs
                 Key: TOMEE-2970
                 URL: https://issues.apache.org/jira/browse/TOMEE-2970
             Project: TomEE
          Issue Type: Bug
    Affects Versions: 8.0.6
            Reporter: Tony Weston


The recent release of tomee 8.0.6 has a implementation of  JaxRS Server Sent 
events.

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.

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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to