Article - CS291641

WebSocket connections are failing when the ThingWorx platform is accessed through an Azure Application Gateway

Modified: 02-Apr-2022   


Applies To

  • ThingWorx Platform 8.0

Description

  • ThingWorx Connection Server (CX Server) experiencing disconnections
ERROR c.t.c.a.AbstractClientEndpoint - Unable to unbind on connection close: endpointId=<id>. Platform down, not retryingcom.thingworx.fabric.PlatformNotConnectedException: Unable to forward message. Platform or network unavailable or too busy 

ERROR c.t.s.i.t.netty.NettyBytesChannel - Error while establishing websocket connection on channel NettyBytesChannel [id=<URL>, closed=true].java.util.concurrent.TimeoutException: Timed out
  • eMessage Connector (EMC) experiencing disconnections
  • WebSocket connections are failing when the ThingWorx platform is accessed through an Azure Application Gateway
  • Potentially all WebSocket communications are impacted : AlwaysOn from Edge device, GetProperties service and Remote Access widget in Mashup
  • WebSocket handshake failed with HTTP status 500 :  "GET /Thingworx/WS HTTP/1.1" 500 -​
    • Exception in Tomcat log (localhost.log) is :
org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [default] in context with path [/Thingworx] threw exception
java.lang.NullPointerException
        at org.apache.tomcat.websocket.Util.parseExtensionHeader(Util.java:493)
        at org.apache.tomcat.websocket.server.UpgradeUtil.doUpgrade(UpgradeUtil.java:132)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:77)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
[...]
This is a printer-friendly version of Article 291641 and may be out of date. For the latest version click CS291641