技术文章 - CS345258
ThingWorx Navigate 中的 Integration Runtime 服务无法启动,并出现错误“java.util.concurrent.TimeoutException:等待 websocket 握手完成超时”
已修改: 05-Sep-2024
适用于
- Windchill Navigate (formerly ThingWorx Navigate) 9.0 to 9.7
- ThingWorx Platform 9.0 to 9.7
说明
- Integration Runtime 服务的初始化阶段发生错误
- ThingWorx Integration Runtime (IR) 未连接
- 集成连接器显示连接失败
- IntegrationRuntime-XXXXX.log报告以下错误:
INFO c.t.i.Entrypoint - Integration Engine Deployed [Client-EndpointMonitor-1] ERROR c.t.c.c.c.n.NettyClientConnectionFactory - Exception occurred while connecting to server java.util.concurrent.TimeoutException: timeout waiting for websocket handshake to complete at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory$HandshakeCompletionNotifier.await(NettyClientConnectionFactory.java:693) at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory.createConnection(NettyClientConnectionFactory.java:398) at com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint.refillConnections(ClientCommunicationEndpoint.java:230) at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.dutyCycleOn(ConnectivityMonitorTask.java:159) at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.run(ConnectivityMonitorTask.java:306) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) [NettyClient-NIO-1] ERROR c.t.c.c.c.n.ThingworxClientConnectionHandler - WebSocket exception caught!, closing connection! javax.net.ssl.SSLException: SSLEngine closed already at io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:829) at io.netty.handler.ssl.SslHandler.wrapAndFlush(SslHandler.java:792) at io.netty.handler.ssl.SslHandler.flush(SslHandler.java:773) at io.netty.handler.ssl.SslHandler.flush(SslHandler.java:1894) at io.netty.handler.ssl.SslHandler.closeOutboundAndChannel(SslHandler.java:1862) at io.netty.handler.ssl.SslHandler.close(SslHandler.java:724)
[Client-EndpointMonitor-700] ERROR c.t.c.c.c.n.NettyClientConnectionFactory - Exception occurred while connecting to server java.util.concurrent.TimeoutException: timeout waiting for websocket handshake to complete at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory$HandshakeCompletionNotifier.await(NettyClientConnectionFactory.java:714) at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory.createConnection(NettyClientConnectionFactory.java:405) at com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint.refillConnections(ClientCommunicationEndpoint.java:230) at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.dutyCycleOn(ConnectivityMonitorTask.java:159) at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.run(ConnectivityMonitorTask.java:318) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) [Client-EndpointMonitor-700] INFO c.t.c.c.c.n.NettyClientConnectionFactory - forcing underlying tcp channel closed [is open: true, is active: false] [Client-EndpointMonitor-700] ERROR c.t.c.c.e.ClientCommunicationEndpoint - Refilling connections on [endpoint 6309, uri: <xxx://xxxx.com:8443/Thingworx/WS>] failed : timeout waiting for websocket handshake to complete [Client-EndpointMonitor-700] ERROR c.t.c.c.e.ClientCommunicationEndpoint - Exception refilling connections was: java.util.concurrent.TimeoutException: timeout waiting for websocket handshake to complete at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory$HandshakeCompletionNotifier.await(NettyClientConnectionFactory.java:714) at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory.createConnection(NettyClientConnectionFactory.java:405) at com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint.refillConnections(ClientCommunicationEndpoint.java:230) at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.dutyCycleOn(ConnectivityMonitorTask.java:159) at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.run(ConnectivityMonitorTask.java:318) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
这是文章 345258 的 PDF 版本,可能已过期。最新版本 CS345258