Error jar extraction failed in postInstall.log during installation of CU4 or CU5
search cancel

Error jar extraction failed in postInstall.log during installation of CU4 or CU5

book

Article ID: 251735

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

During installation of CU4 or CU5 patch on Domain Manager, following error appears in postinstall.log :

Registering parameters ...
C:\Program Files (x86)\CA\DSM\bin\Telemetry\config\TelemetryConfig.xml

Saving policy changes...
Updating policy attrversion...
Updating policy version...
Initiating computer configuration updates...
ccnfregdb returns OK
ERROR: jar extraction failed.. Exiting.
"Deleting log4j-*.jar files from the backup folder ... "

Environment

Client Automation 14.5 CU4, CU5

Cause

Problem occurs if Domain Manager has not Patch Manager component installed. A path is retrieved from a missing registry key in script PostInstallScript.bat (HKLM\Software\Wow6432Node\ComputerAssociates\Unicenter ITRM\InstallJREBinDir)

Resolution

Execute this to execute the missing steps of script PostInstallScript.bat which have not been executed

cd "C:\Program Files (x86)\CA\DSM\Bin\Telemetry\ItcmRestServer"
"C:\Program Files (x86)\CA\SC\Mdb\Windows\jre\bin\java.exe" sun.tools.jar.Main -xf "C:\Program Files (x86)\CA\DSM\bin\Telemetry\ItcmRestServer.jar"

ccnfcmda -cmd setparametervalue -ps itrm/common/caf/plugins/telemetry -pn enabled -v 0
ccnfcmda -cmd setparametervalue -ps itrm/common/caf/plugins/telemetry -pn description -v "Telemetry REST Server for Client Automation"
ccnfcmda -cmd setparametervalue -ps itrm/common/caf/plugins/telemetry -pn installed -v 1
ccnfcmda -cmd setparametervalue -ps itrm/common/caf/plugins/telemetry -pn loadonstartup -v 1
ccnfcmda -cmd setparametervalue -ps itrm/common/caf/plugins/telemetry -pn restartifdied -v 1
ccnfcmda -cmd setparametervalue -ps itrm/common/caf/plugins/telemetry -pn runonce -v 0
ccnfcmda -cmd setparametervalue -ps itrm/common/caf/plugins/telemetry -pn plugindll -v cfjvmplugin
ccnfcmda -cmd setparametervalue -ps itrm/common/caf/plugins/telemetry -pn maxrestarts -v 3
ccnfcmda -cmd setparametervalue -ps itrm/common/caf/plugins/telemetry -pn maxrestarttime -v 3600
ccnfcmda -cmd setparametervalue -ps itrm/common/caf/plugins/telemetry -pn dependencies -v cmobjectmanager
ccnfcmda -cmd setparametervalue -ps itrm/common/caf/plugins/telemetry -pn commandline_start -v """C:\Program Files (x86)\CA\SC\Mdb\Windows\jre\bin\java.exe"" -cp ""C:\Program Files (x86)\CA\DSM\bin\Telemetry\ItcmRestServer"" org.springframework.boot.loader.JarLauncher com.ca.itcm.telemetryweb.ItcmRestApplication"

 

Additional Information

If CU4 or CU5 patch should be applied on another DOMAIN, script PostInstallScript.bat could be updated like this to avoid "ERROR: jar extraction failed.. Exiting." error:

Replace the 4 lines in bold :

echo "Telemetry steps"
SET TARGET_CPU=""
IF /I "%PROCESSOR_ARCHITECTURE%"=="x86"   (SET TARGET_CPU=x86
) ELSE IF /I "%PROCESSOR_ARCHITECTURE%"=="IA64"  (SET TARGET_CPU=x64
) ELSE IF /I "%PROCESSOR_ARCHITECTURE%"=="AMD64" (SET TARGET_CPU=x64
) ELSE IF /I "%PROCESSOR_ARCHITECTURE%"=="x64"   (SET TARGET_CPU=x64
) ELSE IF /I "%PROCESSOR_ARCHITEW6432%"=="IA64"  (SET TARGET_CPU=x64
) ELSE IF /I "%PROCESSOR_ARCHITEW6432%"=="AMD64" (SET TARGET_CPU=x64
) ELSE (SET TARGET_CPU=x86)

IF "%TARGET_CPU%"=="x64" (
REM Get the MDB JRE PATH
FOR /F "usebackq tokens=2,* skip=2" %%L IN (
    `reg query "HKLM\Software\Wow6432Node\ComputerAssociates\Unicenter ITRM" /v InstallJREBinDir`
) DO SET JREPATH=%%M
) ELSE (
FOR /F "usebackq tokens=2,* skip=2" %%L IN (
`reg query "HKLM\Software\ComputerAssociates\Unicenter ITRM" /v InstallJREBinDir`
) DO SET JREPATH=%%M
)

by

echo "Telemetry steps"
SET TARGET_CPU=""
IF /I "%PROCESSOR_ARCHITECTURE%"=="x86"   (SET TARGET_CPU=x86
) ELSE IF /I "%PROCESSOR_ARCHITECTURE%"=="IA64"  (SET TARGET_CPU=x64
) ELSE IF /I "%PROCESSOR_ARCHITECTURE%"=="AMD64" (SET TARGET_CPU=x64
) ELSE IF /I "%PROCESSOR_ARCHITECTURE%"=="x64"   (SET TARGET_CPU=x64
) ELSE IF /I "%PROCESSOR_ARCHITEW6432%"=="IA64"  (SET TARGET_CPU=x64
) ELSE IF /I "%PROCESSOR_ARCHITEW6432%"=="AMD64" (SET TARGET_CPU=x64
) ELSE (SET TARGET_CPU=x86)

IF "%TARGET_CPU%"=="x64" (
REM Get the MDB JRE PATH
FOR /F "usebackq tokens=2,* skip=2" %%L IN (
    `reg query "HKLM\Software\Wow6432Node\ComputerAssociates\Unicenter ITRM" /v InstallShareDir`
) DO SET JREPATH=%%M\Mdb\Windows\jre\bin
) ELSE (
FOR /F "usebackq tokens=2,* skip=2" %%L IN (
`reg query "HKLM\Software\ComputerAssociates\Unicenter ITRM" /v InstallShareDir`
) DO SET JREPATH=%%M\Mdb\Windows\jre\bin
)

 

The script PostInstallScript.bat will be corrected in next patch CU