When trying to connect to the AE with AWI (Tomcat or Jetty), the following error is displayed:
The AWI log displays:
2021-10-26 14:46:28,614 pool-1-thread-5 [DEBUG] NOLOGIN/- 8DFA1A8FE3E75DA94BBC4CDAEE1F95F6-2 +4 [com.uc4.ecc.backends.impl.dataservice.connection.ConnectionService] - Connection to Automation Engine failed at 'my.awi.com:2317'.
java.util.concurrent.ExecutionException: java.io.IOException: Failed to connect to my.awi.com:2317
The JCP log displays:
20211027/090234.464 - 42 U00003406 Client connection '5' from '10.0.0.1:45454' has logged on to the Server.
20211027/090234.542 - 42 U00045014 Exception 'java.io.IOException: "Message length is invalid:"' at 'com.automic.network.impl.ConnectionDataImpl.extractSizeFromHeader():137'.
20211027/090234.543 - 42 U00045015 The previous error was caused by 'java.lang.NumberFormatException: "For input string: """' at 'java.lang.NumberFormatException.forInputString():65'.
20211027/090234.544 - 42 U00003472 Connection to Server '5' has been closed.
Release : 21.0
Component : AWI
In uc4config.xml, AWI is configured to connect to the JCP port (JCP.PORTS) instead of the Web Service Port (WS.PORTS)
Change the uc4config.xml to connect to the WS.PORT:
<connection name="AUTOMIC" system="AUTOMIC">
<cp ip="my.awi.com" port="8443"/>