Info: Starting Protocolhandler ["ajp-bio-8013"]
May 26, 2016 6:07:49 pm Org.apache.catalina.startup.Catalina start
Info: Server Startup in 20001 MS
2016-05-26 18:07:49 [Org.springframework.web.socket.sockjs.transport.handler.defaultsockjsservice]-[debug] GET http://localhost:8084/ServiceInvoker//sockjs/echo/info?t=1464257251690
2016-05-26 18:07:49 [Org.springframework.web.socket.sockjs.transport.handler.defaultsockjsservice]-[debug] GET http://localhost:8084/ServiceInvoker//sockjs/echo/info?t=1464257262544
2016-05-26 18:07:49 [Org.springframework.beans.factory.support.defaultlistablebeanfactory]-[debug] Returning Cached instance of singleton Bean ' sqlsessionfactory '
2016-05-26 18:07:49 [Org.springframework.web.socket.server.support.defaulthandshakehandler]-[trace] Processing Request Http://localhost:8084/ServiceInvoker//sockjs/echo/568/joxchk5z/websocket with Headers={upgrade=[websocket ], Connection=[upgrade], host=[localhost:8084], origin=[http://new-ag.99bill.com:8083], Pragma=[no-cache], Cache-control=[no-cache], sec-websocket-key=[uzefdbhfertcmp7fijwifw==], sec-websocket-version=[13], Sec-websocket-extensions=[x-webkit-deflate-frame], user-agent=[mozilla/5.0 (Windows NT 6.1; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/30.0.1599.101 safari/537.36], cookie=[jsessionid= 3FB3ACCD04FF39AECB8756D658D1C15E]}
2016-05-26 18:07:49 [org.springframework.web.socket.sockjs.transport.session.websocketserversockjssession]-[ DEBUG] Closing due to transport error for websocketserversockjssession[id=joxchk5z]
2016-05-26 18:07:49 [Org.springframework.web.socket.handler.loggingwebsockethandlerdecorator]-[debug] Transport Error in websocketserversockjssession[id=joxchk5z]
Java.lang.IncompatibleClassChangeError:Class Org.apache.tomcat.websocket.server.WsServerContainer does not Implement the requested interface Javax.websocket.WebSocketContainer
At Org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy.getInstalledExtensions ( ABSTRACTSTANDARDUPGRADESTRATEGY.JAVA:95)
At Org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy.getSupportedExtensions ( ABSTRACTSTANDARDUPGRADESTRATEGY.JAVA:88)
At Org.springframework.web.socket.server.support.DefaultHandshakeHandler.doHandshake ( defaulthandshakehandler.java:214)
At Org.springframework.web.socket.sockjs.transport.handler.WebSocketTransportHandler.handleRequest ( WEBSOCKETTRANSPORTHANDLER.JAVA:80)
At Org.springframework.web.socket.sockjs.transport.TransportHandlingSockJsService.handleTransportRequest ( transporthandlingsockjsservice.java:272)
At Org.springframework.web.socket.sockjs.support.AbstractSockJsService.handleRequest (Abstractsockjsservice.java : 407)
At Org.springframework.web.socket.sockjs.support.SockJsHttpRequestHandler.handleRequest ( SOCKJSHTTPREQUESTHANDLER.JAVA:90)
At Org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle (httprequesthandleradapter.java:51)
At Org.springframework.web.servlet.DispatcherServlet.doDispatch (dispatcherservlet.java:959)
At Org.springframework.web.servlet.DispatcherServlet.doService (dispatcherservlet.java:893)
At Org.springframework.web.servlet.FrameworkServlet.processRequest (frameworkservlet.java:967)
At Org.springframework.web.servlet.FrameworkServlet.doGet (frameworkservlet.java:858)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:621)
At Org.springframework.web.servlet.FrameworkServlet.service (frameworkservlet.java:843)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:728)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:305)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:210)
At Org.apache.tomcat.websocket.server.WsFilter.doFilter (wsfilter.java:52)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:243)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:210)
At Com.alibaba.druid.support.http.WebStatFilter.doFilter (webstatfilter.java:124)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:243)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:210)
At Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:85)
At Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:107)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:243)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:210)
At Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:222)
At Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:123)
At Org.apache.catalina.authenticator.AuthenticatorBase.invoke (authenticatorbase.java:502)
At Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:171)
At Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:100)
At Org.apache.catalina.valves.AccessLogValve.invoke (accesslogvalve.java:953)
At Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:118)
At Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:409)
At Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1044)
At Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:607)
At Org.apache.tomcat.util.net.jioendpoint$socketprocessor.run (jioendpoint.java:313)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615)
At Java.lang.Thread.run (thread.java:745)
May 26, 2016 6:07:49 pm Org.apache.catalina.core.StandardWrapperValve invoke
Critical: Servlet.service () for Servlets [spring] in context with path [/serviceinvoker] threw exception [Request processing fail Ed Nested exception is org.springframework.web.socket.sockjs.SockJsException:Uncaught failure in SOCKJS request, uri=http ://localhost:8084/serviceinvoker//sockjs/echo/568/joxchk5z/websocket; Nested exception is Org.springframework.web.socket.sockjs.SockJsTransportFailureException:WebSocket handshake Failure Nested exception is Java.lang.IncompatibleClassChangeError:Class Org.apache.tomcat.websocket.server.WsServerContainer does not implement the requested interface Javax.websocket.WebSocketContainer] with root cause
Java.lang.IncompatibleClassChangeError:Class Org.apache.tomcat.websocket.server.WsServerContainer does not Implement the requested interface Javax.websocket.WebSocketContainer
At Org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy.getInstalledExtensions ( ABSTRACTSTANDARDUPGRADESTRATEGY.JAVA:95)
At Org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy.getSupportedExtensions ( ABSTRACTSTANDARDUPGRADESTRATEGY.JAVA:88)
At Org.springframework.web.socket.server.support.DefaultHandshakeHandler.doHandshake ( defaulthandshakehandler.java:214)
At Org.springframework.web.socket.sockjs.transport.handler.WebSocketTransportHandler.handleRequest ( WEBSOCKETTRANSPORTHANDLER.JAVA:80)
At Org.springframework.web.socket.sockjs.transport.TransportHandlingSockJsService.handleTransportRequest ( transporthandlingsockjsservice.java:272)
At Org.springframework.web.socket.sockjs.support.AbstractSockJsService.handleRequest (Abstractsockjsservice.java : 407)
At Org.springframework.web.socket.sockjs.support.SockJsHttpRequestHandler.handleRequest ( SOCKJSHTTPREQUESTHANDLER.JAVA:90)
At Org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle (httprequesthandleradapter.java:51)
At Org.springframework.web.servlet.DispatcherServlet.doDispatch (dispatcherservlet.java:959)
At Org.springframework.web.servlet.DispatcherServlet.doService (dispatcherservlet.java:893)
At Org.springframework.web.servlet.FrameworkServlet.processRequest (frameworkservlet.java:967)
At Org.springframework.web.servlet.FrameworkServlet.doGet (frameworkservlet.java:858)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:621)
At Org.springframework.web.servlet.FrameworkServlet.service (frameworkservlet.java:843)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:728)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:305)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:210)
At Org.apache.tomcat.websocket.server.WsFilter.doFilter (wsfilter.java:52)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:243)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:210)
At Com.alibaba.druid.support.http.WebStatFilter.doFilter (webstatfilter.java:124)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:243)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:210)
At Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:85)
At Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:107)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:243)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:210)
At Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:222)
At Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:123)
At Org.apache.catalina.authenticator.AuthenticatorBase.invoke (authenticatorbase.java:502)
At Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:171)
At Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:100)
At Org.apache.catalina.valves.AccessLogValve.invoke (accesslogvalve.java:953)
At Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:118)
At Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:409)
At Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1044)
At Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:607)
At Org.apache.tomcat.util.net.jioendpoint$socketprocessor.run (jioendpoint.java:313)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615)
At Java.lang.Thread.run (thread.java:745)
2016-05-26 18:07:50 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler]-[ DEBUG] POST http://localhost:8084/ServiceInvoker//sockjs/echo/568/ph2i1154/xhr_streaming?t=1464257270617
2016-05-26 18:07:50 [Org.springframework.web.socket.handler.loggingwebsockethandlerdecorator]-[debug] New XHRSTREAMINGSOCKJSSESSION[ID=PH2I1154]
2016-05-26 18:07:50 [Cn.sh.ideal.websocket.handler.sockethandler]-[info] afterconnectionestablished, ThreadCount = 1sessionId = ph2i1154
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] 1 message (s) to flush in session ph2i1154
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] Session is isn't active, not ready to flush.
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] Preparing to write Sockjsframe content= ' o '
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] Writing to HTTP response:o
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] Preparing to write Sockjsframe content= ' a["{\" clientid\ ": \" ph2i1154\ ", \" done\ ": False,\ "isreceipt\": \ "0\", \ "Requesttype\" ... (truncated) '
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] Writing to HTTP response:a["{\" clientid\ ": \" ph2i1154\ ", \" done\ ": false,\" Isreceipt\ ": \" 0\ ", \" requesttype\ ": \" 4\ ", \" sentcount\ ": 1,\" servermessageid\ ": \" 6\ ", \" wait\ ": true,\" waitcount\ " : 0} "]
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] 162 bytes written so far, 0 more messages not flushed
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] Scheduled heartbeat in session ph2i1154
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrreceivingtransporthandler]-[ TRACE] Received message (s): [{"Content": {"Tenantcode": "6000", "logotype": "1"}, "MessageType": "Logoquery", " Messagecallback ": null," RequestType ":" 1 "," Isreceipt ":" 1 "," Clientmessageid ":" 146425727118417 "," ClientId ":" 14642569290549183 "}]
2016-05-26 18:07:51 [Org.springframework.web.socket.handler.loggingwebsockethandlerdecorator]-[trace] Handling TextMessage payload=[{"Content":], bytecount=198, Last=true] in xhrstreamingsockjssession[id=ph2i1154]
2016-05-26 18:07:51 [Cn.sh.ideal.websocket.handler.sockethandler]-[info] Received: {"content": {"Tenantcode": "6000" , "logotype": "1"}, "MessageType": "Logoquery", "messagecallback": null, "RequestType": "1", "Isreceipt": "1", " Clientmessageid ":" 146425727118417 "," clientId ":" 14642569290549183 "}
2016-05-26 18:07:51 [Cn.sh.ideal.websocket.util.netutil]-[info] request[http://192.168.47.220:20005/ contentmanagesystem/logo/query?port=8084] params[{"logotype": "1", "Tenantcode": "6000"}]
2016-05-26 18:07:51 [Cn.sh.ideal.websocket.util.netutil]-[info] response[http://192.168.47.220:20005/ CONTENTMANAGESYSTEM/LOGO/QUERY?PORT=8084] result[{"data": [], "ResultCode": "0", "resultmsg": "Success."}
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] 1 message (s) to flush in session ph2i1154
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] Session is active, ready to flush.
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] Cancelling heartbeat in session ph2i1154
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] Preparing to write Sockjsframe content= ' a[' {\ ' clientid\ ': \ ' 14642569290549183\ ', \ "clientmessageid\": \ "146425727118417\", \ ... (truncated) '
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] Writing to HTTP response:a["{\" clientid\ ": \" 14642569290549183\ ", \" Clientmessageid\ ": \" 146425727118417\ ", \" content\ ": {\" data\ ": [],\" resultcode\ ": \" 0\ ", \" resultmsg\ ": \" Success.\ " },\ "done\": False,\ "isreceipt\": \ "1\", \ "requesttype\": \ "1\", \ "sentcount\": 1,\ "servermessageid\": \ " 146425727118417\ ", \" wait\ ": True,\" waitcount\ ": 0}"]
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] 461 bytes written so far, 0 more messages not flushed
2016-05-26 18:07:51 [org.springframework.web.socket.sockjs.transport.handler.xhrstreamingtransporthandler$ Xhrstreamingsockjssession]-[trace] Scheduled heartbeat in session ph2i1154
2016-05-26 18:07:52 [cn.sh.ideal.websocket.handler.sockethandler]-[info] Execute timer task!
Solution: Jar Package Conflict, delete the javax.websocket-client-api-1.1. jar in the project.