ARA / CDA: Action Packs not working with Java 11

book

Article ID: 207250

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic Workload Automation - Automation Engine

Issue/Introduction

After upgrading from an old 11.2 to 12.3 both Automation Engine and CDA (ARA), having upgraded as well Java 7/8 to Openjdk 11, the different Action Packs are not working anymore, such as some workflows that use aratools.jar to create deployment packages and import/export ara related properties and configurations.

The tool can be launched correctly and returns a return code 0, but what was requested (ie, creating a package) is not performed and the output in the log does not show the action:

Correct output and behavior ok (Package is created) when using Java 8:

C:\Automic\Automation.Platform\Agents\windows\bin>java -version 
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)

java -jar ARATOOLS.jar rm CreateDeployPackage -u "http://cda_server/cda" -un "100/DOM/AUTOMIC" -p "xxx" -n "TEST4SG-0004065714" -a "ApplicationA" -t "Deployment" -o "100/DOM/AUTOMIC" -f "DEFAULT" 
ARA: ARATools: ARATools
ARA: ARATools: (c) Automic Software GmbH
ARA: ARATools: Version: 5.1.4+build.3
ARA: ARATools: Date: 2016-03-17 08:55:11

Executing CreateDeployPackage started
Started at 2021-01-20 10:49:16
=================================================


ARA: ARATools: PARAM: type = Deployment
ARA: ARATools: PARAM: name = TEST4SG-0004065714
ARA: ARATools: PARAM: owner = 100/DOM/AUTOMIC
ARA: ARATools: PARAM: folder = DEFAULT
ARA: ARATools: PARAM: username = 100/DOM/AUTOMIC
ARA: ARATools: PARAM: loglevel = 
ARA: ARATools: PARAM: url = http://vviedev01.sbb01.spoc.global/cda
ARA: ARATools: PARAM: application = ApplicationA
ARA: ARATools: INFO: Creating Package 'TEST4SG-0004065714' ...
Package-ID: 14278756


=================================================
Executing rm CreateDeployPackage finished
Ended at 2021-01-20 10:49:22
Elapsed Time: 0 min, 6 sec
Return Code: 0


Wrong output  and behavior ko ( Package is not created and return code is 0) when using Java 11:

C:\kits\awa\cda1234\5.1.4\+>java -version
java version "11.0.9" 2020-10-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.9+7-LTS, mixed mode)


java -jar ARATOOLS.jar rm CreateDeployPackage -u "http://cda_server/cda" -un "100/AUTOMIC/AUTOMIC" -p "AUTOMIC" -n "TEST4SG-0004065714b" -a "ApplicationA" -t "Deployment" -o "100/DOM/AUTOMIC" -f "DEFAULT"
ARA: ARATools: ARATools
ARA: ARATools: (c) Automic Software GmbH
ARA: ARATools: Version: 5.1.4+build.3
ARA: ARATools: Date: 2016-03-17 08:55:11

Executing CreateDeployPackage started
Started at 2021-01-20 11:03:07
=================================================


ARA: ARATools: PARAM: type = Deployment
ARA: ARATools: PARAM: name = TEST4SG-0004065714
ARA: ARATools: PARAM: owner = 100/DOM/AUTOMIC
ARA: ARATools: PARAM: folder = DEFAULT
ARA: ARATools: PARAM: username = 100/AUTOMIC/AUTOMIC
ARA: ARATools: PARAM: loglevel =
ARA: ARATools: PARAM: url = http://vviedev01.sbb01.spoc.global/cda
ARA: ARATools: PARAM: application = ApplicationA


=================================================
Executing rm CreateDeployPackage finished
Ended at 2021-01-20 11:03:08
Elapsed Time: 0 min, 0 sec
Return Code: 0

Cause

By design:Legacy action packs ( from 12.2 and previous releases of CDA or ARA) did not support Java 11.

 

Environment

Release : 12.3

Component : Action Packs

Resolution

aratools.jar is a legacy 10.x tool that uses the CDA SOAP API . It  was decommissioned in Version 12 and was also removed from the product bundle at that time.

aratools.jar should still be working with CDA 12.3 in case the java version used is Java 8/7, nevertheless this is not supported and at your own risk.


In version 12.x, the Deployment Manager Action Pack DM (which also uses CDA SOAP API) should be used instead.

However, in version v21 (expected in 2021), the Action Pack DM will be replaced by Release Manager Action Pack RM (which uses CDA REST API instead).

Hence, you will have to migrate your aratools steps to PCK.AUTOMIC_RM (best) or PCK.AUTOMIC_DM (not ideal as you will have to migrate again on next release v21).