I had put trace logs of Atmosphere framework in the application. The application was working successfuly for months, but suddenly websocket was closed and push is not working now. Below are the Atmosphere trace logs about the errors. I searched for the solution on internet with no success.
Code: Select all
TRACE#2014-May-02 17:27:39#WebSocket closed with 1002
TRACE#2014-May-02 17:27:39#WebSocket closed with 1002
TRACE#2014-May-02 17:27:39#WebSocket closed with 1002
DEBUG#2014-May-02 17:27:39#Timing out the connection for request 8930ae9b-8a30-4418-9334-7d9fe43c4b95
DEBUG#2014-May-02 17:27:39#Timing out the connection for request 465e6e33-b981-4196-a8e8-5796e54050fe
TRACE#2014-May-02 17:27:39#Method toString not supported
DEBUG#2014-May-02 17:27:39#Timing out the connection for request 8f330b7c-2a95-4719-a8a0-82f4e037887c
DEBUG#2014-May-02 17:27:39#Timing out the connection for request f820ec42-e69a-4afd-bc5d-c216e1055e98
TRACE#2014-May-02 17:27:39#Method toString not supported
TRACE#2014-May-02 17:27:39#Timeout request AtmosphereRequest{ contextPath=/myapp servletPath=/primepush pathInfo=/kkcscounter requestURI=/myapp/primepush/kkcscounter destroyable=false} and response AtmosphereResponse{cookies=[], headers={Access-Control-Allow-Origin=http://myip/, Expires=-1, Access-Control-Allow-Credentials=true, X-Atmosphere-tracking-id=1e9deb80-10a1-46c6-a1a4-b83b4959c7aa, Pragma=no-cache, Cache-Control=no-store, no-cache, must-revalidate}, asyncIOWriter=org.apache.catalina.websocket.WsOutbound@174117f, status=200, statusMessage='OK', charSet='UTF-8', contentLength=-1, contentType='text/html', isCommited=false, locale=null, headerHandled=false, atmosphereRequest=AtmosphereRequest{ contextPath=/myapp servletPath=/primepush pathInfo=/kkcscounter requestURI=/myapp/primepush/kkcscounter destroyable=false}, writeStatusAndHeader=false, delegateToNativeResponse=false, destroyable=false, response=null}
TRACE#2014-May-02 17:27:39#Timeout request AtmosphereRequest{ contextPath=/myapp servletPath=/primepush pathInfo=/frequency requestURI=/myapp/primepush/frequency destroyable=false} and response AtmosphereResponse{cookies=[], headers={Access-Control-Allow-Origin=http://myip, Expires=-1, Access-Control-Allow-Credentials=true, X-Atmosphere-tracking-id=2b129a41-65a0-44e8-acba-8d7cdf2c1a9c, Pragma=no-cache, Cache-Control=no-store, no-cache, must-revalidate}, asyncIOWriter=org.apache.catalina.websocket.WsOutbound@27ca76, status=200, statusMessage='OK', charSet='UTF-8', contentLength=-1, contentType='text/html', isCommited=false, locale=null, headerHandled=false, atmosphereRequest=AtmosphereRequest{ contextPath=/myapp servletPath=/primepush pathInfo=/frequency requestURI=/myapp/primepush/frequency destroyable=false}, writeStatusAndHeader=false, delegateToNativeResponse=false, destroyable=false, response=null}
TRACE#2014-May-02 17:27:39#Method toString not supported
DEBUG#2014-May-02 17:27:39#Timing out the connection for request e6f49024-372f-4b45-8943-923da22f6e73
TRACE#2014-May-02 17:27:39#Timeout request AtmosphereRequest{ contextPath=/myapp servletPath=/primepush pathInfo=/gpscounter requestURI=/myapp/primepush/gpscounter destroyable=false} and response AtmosphereResponse{cookies=[], headers={Access-Control-Allow-Origin=http://myip/, Expires=-1, Access-Control-Allow-Credentials=true, X-Atmosphere-tracking-id=f1da103e-267d-4ddd-97c0-ae6166cccce7, Pragma=no-cache, Cache-Control=no-store, no-cache, must-revalidate}, asyncIOWriter=org.apache.catalina.websocket.WsOutbound@1511862, status=200, statusMessage='OK', charSet='UTF-8', contentLength=-1, contentType='text/html', isCommited=false, locale=null, headerHandled=false, atmosphereRequest=AtmosphereRequest{ contextPath=/myapp servletPath=/primepush pathInfo=/gpscounter requestURI=/myapp/primepush/gpscounter destroyable=false}, writeStatusAndHeader=false, delegateToNativeResponse=false, destroyable=false, response=null}
TRACE#2014-May-02 17:27:39#Invoking listener with AtmosphereResourceEventImpl{isCancelled=false,
isResumedOnTimeout=true,
throwable=null,
message=null,
resource=AtmosphereResourceImpl{
uuid=8930ae9b-8a30-4418-9334-7d9fe43c4b95,
transport=WEBSOCKET,
action=Action{timeout=-1, type=TIMEOUT},
isResumed=false,
isCancelled=false,
isSuspended=false,
broadcaster=/frequency,
isInScope=true,
useWriter=true,
listeners=[org.atmosphere.interceptor.AtmosphereResourceLifecycleInterceptor$1@10cb2d4]}}
...
TRACE#2014-May-02 17:27:39#Cancelling 8930ae9b-8a30-4418-9334-7d9fe43c4b95
TRACE#2014-May-02 17:27:39#Unable to resume the suspended connection
TRACE#2014-May-02 17:27:39#WebSocket.close() for AtmosphereResource 8930ae9b-8a30-4418-9334-7d9fe43c4b95
TRACE#2014-May-02 17:27:39#onEmpty /frequency
TRACE#2014-May-02 17:27:39#Cancelling 8f330b7c-2a95-4719-a8a0-82f4e037887c
TRACE#2014-May-02 17:27:39#Timeout request AtmosphereRequest{ contextPath=/myapp servletPath=/primepush pathInfo=/counter requestURI=/myapp/primepush/counter destroyable=false} and response AtmosphereResponse{cookies=[], headers={Access-Control-Allow-Origin=http://myip/, Expires=-1, Access-Control-Allow-Credentials=true, X-Atmosphere-tracking-id=7fc088e3-c9cb-4fd0-a970-7154fa3fe7b5, Pragma=no-cache, Cache-Control=no-store, no-cache, must-revalidate}, asyncIOWriter=org.apache.catalina.websocket.WsOutbound@b88b9b, status=200, statusMessage='OK', charSet='UTF-8', contentLength=-1, contentType='text/html', isCommited=false, locale=null, headerHandled=false, atmosphereRequest=AtmosphereRequest{ contextPath=/myapp servletPath=/primepush pathInfo=/counter requestURI=/myapp/primepush/counter destroyable=false}, writeStatusAndHeader=false, delegateToNativeResponse=false, destroyable=false, response=null}
TRACE#2014-May-02 17:27:39#Unable to resume the suspended connection
TRACE#2014-May-02 17:27:39#onEmpty /frequency
TRACE#2014-May-02 17:27:39#Cancelling 465e6e33-b981-4196-a8e8-5796e54050fe
TRACE#2014-May-02 17:27:39#Timeout request AtmosphereRequest{ contextPath=/myapp servletPath=/primepush pathInfo=/kkcChannel requestURI=/myapp/primepush/kkcChannel destroyable=false} and response AtmosphereResponse{cookies=[], headers={Access-Control-Allow-Origin=http://myip/, Expires=-1, Access-Control-Allow-Credentials=true, X-Atmosphere-tracking-id=7ee059ea-c49e-4296-8d21-70b09a793b6b, Pragma=no-cache, Cache-Control=no-store, no-cache, must-revalidate}, asyncIOWriter=org.apache.catalina.websocket.WsOutbound@18d6972, status=200, statusMessage='OK', charSet='UTF-8', contentLength=-1, contentType='text/html', isCommited=false, locale=null, headerHandled=false, atmosphereRequest=AtmosphereRequest{ contextPath=/myapp servletPath=/primepush pathInfo=/kkcChannel requestURI=/myapp/primepush/kkcChannel destroyable=false}, writeStatusAndHeader=false, delegateToNativeResponse=false, destroyable=false, response=null}
TRACE#2014-May-02 17:27:39#Unable to resume the suspended connection
TRACE#2014-May-02 17:27:39#onEmpty /frequency
TRACE#2014-May-02 17:27:39#WebSocket.close() for AtmosphereResource 8f330b7c-2a95-4719-a8a0-82f4e037887c
...
TRACE#2014-May-02 17:27:39#onEmpty /frequency
TRACE#2014-May-02 17:27:39#onEmpty /kkcscounter
TRACE#2014-May-02 17:27:39#Cancelling f820ec42-e69a-4afd-bc5d-c216e1055e98
TRACE#2014-May-02 17:27:39#onEmpty /kkcscounter
TRACE#2014-May-02 17:27:39#onEmpty /frequency
TRACE#2014-May-02 17:27:39#Cancelling e6f49024-372f-4b45-8943-923da22f6e73
TRACE#2014-May-02 17:27:39#onEmpty /frequency
TRACE#2014-May-02 17:27:39#onEmpty /kkcscounter
TRACE#2014-May-02 17:27:39#Unable to resume the suspended connection
TRACE#2014-May-02 17:27:39#onEmpty /kkcscounter
TRACE#2014-May-02 17:27:39#WebSocket.close() for AtmosphereResource f820ec42-e69a-4afd-bc5d-c216e1055e98
TRACE#2014-May-02 17:27:39#onEmpty /kkcscounter
DEBUG#2014-May-02 17:27:39#Removing Broadcaster /frequency factory size now 5
TRACE#2014-May-02 17:27:39#WebSocket.close() for AtmosphereResource e6f49024-372f-4b45-8943-923da22f6e73
TRACE#2014-May-02 17:27:39#onEmpty /kkcscounter
TRACE#2014-May-02 17:27:39#onDestroy /frequency
TRACE#2014-May-02 17:27:39#onEmpty /kkcChannel
TRACE#2014-May-02 17:27:39#onEmpty /counter
DEBUG#2014-May-02 17:27:39#Removing Broadcaster /kkcscounter factory size now 4
TRACE#2014-May-02 17:27:39#onDestroy /frequency
TRACE#2014-May-02 17:27:39#onEmpty /kkcChannel
TRACE#2014-May-02 17:27:39#onEmpty /counter
TRACE#2014-May-02 17:27:39#onDestroy /kkcscounter
TRACE#2014-May-02 17:27:39#Broadcaster /frequency is being destroyed and cannot be re-used. Policy was FIFO
TRACE#2014-May-02 17:27:39#onDestroy /kkcscounter
TRACE#2014-May-02 17:27:39#onEmpty /counter
TRACE#2014-May-02 17:27:39#onDestroy /kkcscounter
TRACE#2014-May-02 17:27:39#Broadcaster /frequency is being destroyed and cannot be re-used. Resources are []
TRACE#2014-May-02 17:27:39#onEmpty /kkcChannel
TRACE#2014-May-02 17:27:39#WebSocket.close() for AtmosphereResource 8930ae9b-8a30-4418-9334-7d9fe43c4b95
TRACE#2014-May-02 17:27:39#onDestroy /kkcscounter
TRACE#2014-May-02 17:27:39#onEmpty /counter
TRACE#2014-May-02 17:27:39#onEmpty /counter
TRACE#2014-May-02 17:27:39#onDestroy /kkcscounter
TRACE#2014-May-02 17:27:39#onDestroy /kkcscounter
DEBUG#2014-May-02 17:27:39#This Broadcaster has been destroyed and cannot be used /frequency by invoking removeAtmosphereResource(AtmosphereResource r)
TRACE#2014-May-02 17:27:39#onEmpty /kkcChannel
DEBUG#2014-May-02 17:27:39#This Broadcaster has been destroyed and cannot be used /frequency by invoking removeAtmosphereResource(AtmosphereResource r)
TRACE#2014-May-02 17:27:39#onDestroy /kkcscounter
TRACE#2014-May-02 17:27:39#onEmpty /counter
TRACE#2014-May-02 17:27:39#onEmpty /kkcChannel
TRACE#2014-May-02 17:27:39#Broadcaster /kkcscounter is being destroyed and cannot be re-used. Policy was FIFO
TRACE#2014-May-02 17:27:39#onEmpty /counter
TRACE#2014-May-02 17:27:39#Broadcaster /kkcscounter is being destroyed and cannot be re-used. Resources are []
TRACE#2014-May-02 17:27:39#onEmpty /kkcChannel
TRACE#2014-May-02 17:27:39#WebSocket.close() for AtmosphereResource 8f330b7c-2a95-4719-a8a0-82f4e037887c
TRACE#2014-May-02 17:27:39#onEmpty /counter
TRACE#2014-May-02 17:27:39#onEmpty /counter
DEBUG#2014-May-02 17:27:39#This Broadcaster has been destroyed and cannot be used /kkcscounter by invoking removeAtmosphereResource(AtmosphereResource r)
TRACE#2014-May-02 17:27:39#onEmpty /kkcChannel
DEBUG#2014-May-02 17:27:39#This Broadcaster has been destroyed and cannot be used /kkcscounter by invoking removeAtmosphereResource(AtmosphereResource r)
DEBUG#2014-May-02 17:27:39#Removing Broadcaster /counter factory size now 3
TRACE#2014-May-02 17:27:39#onDestroy /counter
TRACE#2014-May-02 17:27:39#onEmpty /kkcChannel
TRACE#2014-May-02 17:27:39#onDestroy /counter
TRACE#2014-May-02 17:27:39#onEmpty /kkcChannel
TRACE#2014-May-02 17:27:39#Broadcaster /counter is being destroyed and cannot be re-used. Policy was FIFO
TRACE#2014-May-02 17:27:39#onEmpty /kkcChannel
TRACE#2014-May-02 17:27:39#Broadcaster /counter is being destroyed and cannot be re-used. Resources are []
DEBUG#2014-May-02 17:27:39#Removing Broadcaster /kkcChannel factory size now 2
TRACE#2014-May-02 17:27:39#WebSocket.close() for AtmosphereResource f820ec42-e69a-4afd-bc5d-c216e1055e98
TRACE#2014-May-02 17:27:39#onDestroy /kkcChannel
DEBUG#2014-May-02 17:27:39#This Broadcaster has been destroyed and cannot be used /counter by invoking removeAtmosphereResource(AtmosphereResource r)
TRACE#2014-May-02 17:27:39#onDestroy /kkcChannel
DEBUG#2014-May-02 17:27:39#This Broadcaster has been destroyed and cannot be used /counter by invoking removeAtmosphereResource(AtmosphereResource r)
TRACE#2014-May-02 17:27:39#onDestroy /kkcChannel
TRACE#2014-May-02 17:27:39#Broadcaster /kkcChannel is being destroyed and cannot be re-used. Policy was FIFO
TRACE#2014-May-02 17:27:39#Broadcaster /kkcChannel is being destroyed and cannot be re-used. Resources are []
TRACE#2014-May-02 17:27:39#WebSocket.close() for AtmosphereResource e6f49024-372f-4b45-8943-923da22f6e73
DEBUG#2014-May-02 17:27:39#This Broadcaster has been destroyed and cannot be used /kkcChannel by invoking removeAtmosphereResource(AtmosphereResource r)
DEBUG#2014-May-02 17:27:39#This Broadcaster has been destroyed and cannot be used /kkcChannel by invoking removeAtmosphereResource(AtmosphereResource r)
Thanks in advance.