Observations from Issue documentation: In GatewayControlServer.log file, below exceptions observed;
java.text.ParseException: Unparseable date: "Tue May 12 12:00:00 ART 2020"
Locale details of the Environment are as below:
Get-WinSystemLocale
LCID Name DisplayName
---- ---- -----------
11274 es-AR Spanish(Argentina)
systeminfo | findstr"Locale"
System Locale: es-ar;Spanish (Argentina)
Input Locale: es-mx;Spanish (Mexico)
Resolution:Due to the non-English locale, CA XCOM Gateway fails to read the date formats correctly.
To circumvent this problem, set the Locale to English for the XCOM Gateway application. To do this, follow the below steps:
- Modify the JAVA_OPTS parameters in StartGatewayServer.bat file (Available at C:\Program Files\CA\XCOMWebv12) to append locale parameters "-Duser.language=en -Duser.region=US". After the change, JAVA_OPTS should look like below:
SET JAVA_OPTS=-server -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256m -Djavax.net.ssl.trustStore=C:\Program Files\CA\XCOMWebv12\data\keystore\XCGW_Tomcat.keystore -Duser.language=en -Duser.region=US
- Stop the Gateway (Service/Batch file)
- Open Command prompt with "Run as Administrator"
- cd "C:\Program Files\CA\XCOMWebv12\apache-tomcat-8.0.24"
- Remove the XCOM Gateway service using command "service remove xcomgcs" -> This only removes Gateway service. Doesn't uninstall Gateway.
- Modify the "C:\Program Files\CA\XCOMWebv12\apache-tomcat-8.0.24\bin\service.bat" file as shown below to add Locale parameters. Change is highlighted and you can find these lines at the end of the file.
- "%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Xms1024m;-Xmx1024m;-XX:MaxMetaspaceSize=256m;-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties;-Duser.language=en;-Duser.region=US"
echo The service '%SERVICE_NAME%' has been installed.
- Re-install Gateway service using command "service install xcomgcs"