Run Command Line action in error after upgrade to 6.9.4
search cancel

Run Command Line action in error after upgrade to 6.9.4

book

Article ID: 450239

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio) CA Release Automation - DataManagement Server (Nolio)

Issue/Introduction

After upgrade from 6.8.0 to version 6.9.4 "Run Command Line" action executed on Windows Agent fails with error like this :
 
2026-06-25T15:38:11,894 - Ending Action DIR Command(P....F....E...) 
Action Type: Run Command Line 
Action State: false 
Action Description: Run Command Line action has failed. <BR><BR>Std out: <BR>Std err: <BR>Command line executed: [cmd, /c, "dir"]<BR>Run Command Line action has failed. java.lang.NoClassDefFoundError: Could not initialize class com.jniwrapper.win32.ole.types.ObjectDescriptor<br>Could not initialize class com.jniwrapper.win32.ole.types.ObjectDescriptor 
Action Status: FAILED_PAUSED 
 
In nolio_all* log we could see :
 
 
2026-06-26T00:31:55.566+10:00 [job-<jobid>-jobServer-<jobserverid>:DIR Command(<...>):Run Command Line] ERROR (com.nolio.platform.shared.executables.actions.exec.RunCommandLine:148) - java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_332]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_332]
at com.nolio.platform.shared.executables.actions.exec.RunCommandLine.execute(RunCommandLine.java:122) ~[nolio-actions-6.9.4.jar:?]
at com.nolio.platform.shared.datamodel.ActionExecutionState.localExecution(ActionExecutionState.java:377) ~[nolio-shared-6.8.0.jar:?]
at com.nolio.platform.shared.datamodel.ActionExecutionState.access$500(ActionExecutionState.java:45) ~[nolio-shared-6.8.0.jar:?]
at com.nolio.platform.shared.datamodel.ActionExecutionState$2.execAction(ActionExecutionState.java:127) ~[nolio-shared-6.8.0.jar:?]
at com.nolio.platform.shared.datamodel.ActionExecutionState.exec(ActionExecutionState.java:413) ~[nolio-shared-6.8.0.jar:?]
at com.nolio.platform.shared.datamodel.Action.run(Action.java:233) ~[nolio-shared-6.8.0.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_332]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_332]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_332]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_332]
at com.nolio.platform.shared.flowcontrol.LocalFlowController$JobBoundThreadFactory$1.run(LocalFlowController.java:835) ~[nolio-shared-6.8.0.jar:?]
at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_332]
 
 
and/or
2026-06-26T00:55:03.382+10:00 [job-<jobid>-jobServer-<jobserverid>:DIR Command(<...>):Run Command Line] ERROR (com.nolio.platform.shared.executables.actions.exec.RunCommandLine:148) - java.lang.NoClassDefFoundError: Could not initialize class com.jniwrapper.win32.ole.types.ObjectDescriptor
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class com.jniwrapper.win32.ole.types.ObjectDescriptor
...
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.jniwrapper.win32.ole.types.ObjectDescriptor
at com.nolio.platform.shared.util.DisableWin64redirection.Handle64BitRedirection(DisableWin64redirection.java:37) ~[nolio-actions-shared-6.9.4.jar:?]
at com.nolio.platform.shared.util.DisableWin64redirection.Disable4BitRedirection(DisableWin64redirection.java:66) ~[nolio-actions-shared-6.9.4.jar:?]
at com.nolio.platform.shared.util.cmd.RunCommandLineCallable.call(RunCommandLineCallable.java:89) ~[nolio-actions-shared-6.9.4.jar:?]
at com.nolio.platform.shared.util.cmd.RunCommandLineCallable.call(RunCommandLineCallable.java:17) ~[nolio-actions-shared-6.9.4.jar:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_332]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_332]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_332]
... 1 more
 

Environment

Release Automation 6.9.4

Cause

The problem occurs when both following conditions are met :

- File xercesImpl-2.10.0.jar is present in actionslib directory
- File xml-apis-1.4.01.jar is NOT present in actionslib directory

 

During upgrade to 6.9.4, File xml-apis-1.4.01.jar is removed.

Normally the file xercesImpl-2.10.0.jar is not be present in actionslib in version 6.8

In version 6.7.0 the file xercesImpl-2.10.0.jar is present in actionslib folder but it is removed during upgrade to 6.8.0

During upgrade to version 6.8.0, flyway script com.nolio.db.migration.V6_8_0_20210824130000000__Remove_unused_3rdparty_libs is executed and this script executes following SQL Query :

delete from action_packs where upper(file_name) in ('CGLIB-NODEP-2.2.JAR','CSSPARSER-0.9.8.JAR','HTMLUNIT-2.11.JAR','HTMLUNIT-CORE-JS-2.11.JAR','JETTY-HTTP-8.1.7.V20120910.JAR','JETTY-IO-8.1.7.V20120910.JAR','JETTY-UTIL-8.1.7.V20120910.JAR','JETTY-WEBSOCKET-8.1.7.V20120910.JAR','JNA-4.0.0.JAR','NEKOHTML-1.9.17.JAR','NETTY-3.5.2.FINAL.JAR','PLATFORM-3.4.0.JAR','SAC-1.3.JAR','SELENIUM-ANDROID-DRIVER-2.31.0.JAR','SELENIUM-HTMLUNIT-DRIVER-2.31.0.JAR','SELENIUM-IPHONE-DRIVER-2.31.0.JAR','WEBBIT-0.4.14.JAR','XERCESIMPL-2.10.0.JAR','GROOVY-ALL-2.1.1.JAR','COMMONS-IO-2.2.JAR','JSON-20080701.JAR','JSON-PATH-2.0.0.JAR','LOG4J-1.2.16.JAR','OJDBC6.JAR','COMMONS-BEANUTILS-1.7.0.JAR','COMMONS-CODEC-1.4.JAR','COMMONS-NET-1.3.0.JAR')
 
Therefore after upgrade to 6.8.0 the file xercesImpl-2.10.0.jar should not be present in NAC directory actionslib
 
But maybe there was a problem during upgrade from 6.7.0 to 6.8.0

Resolution

The solution is to delete the files in action_packs table.

There are 2 possible methods :

 

  • Delete the files directly in database. Execute following SQL Query on nolio database :
delete from action_packs where upper(file_name) in ('CGLIB-NODEP-2.2.JAR','CSSPARSER-0.9.8.JAR','HTMLUNIT-2.11.JAR','HTMLUNIT-CORE-JS-2.11.JAR','JETTY-HTTP-8.1.7.V20120910.JAR','JETTY-IO-8.1.7.V20120910.JAR', 'JETTY-UTIL-8.1.7.V20120910.JAR','JETTY-WEBSOCKET-8.1.7.V20120910.JAR','JNA-4.0.0.JAR','NEKOHTML-1.9.17.JAR','NETTY-3.5.2.FINAL.JAR','PLATFORM-3.4.0.JAR','SAC-1.3.JAR','SELENIUM-ANDROID-DRIVER-2.31.0.JAR', 'SELENIUM-HTMLUNIT-DRIVER-2.31.0.JAR','SELENIUM-IPHONE-DRIVER-2.31.0.JAR','WEBBIT-0.4.14.JAR','XERCESIMPL-2.10.0.JAR','GROOVY-ALL-2.1.1.JAR','COMMONS-IO-2.2.JAR','JSON-20080701.JAR','JSON-PATH-2.0.0.JAR', 'LOG4J-1.2.16.JAR','OJDBC6.JAR','COMMONS-BEANUTILS-1.7.0.JAR','COMMONS-CODEC-1.4.JAR','COMMONS-NET-1.3.0.JAR')

This SQL Query is the query executed by the flyway script com.nolio.db.migration.V6_8_0_20210824130000000__Remove_unused_3rdparty_libs.
The NAC directory actionslib is synchronized from content of action_packs table and therefore the deleted files should be removed from actionslib folder.

or

 

  • Delete the files with REST API :

    Example for xercesImpl-2.10.0.jar :

    1- Execute following SQL Query to find the ID of the file file in action_packs

    select ID from action_packs where FILE_NAME='xervesImpl-2.10.0.jar'


    2- Execute the REST API DELETE command.

    curl -X DELETE "http://<nac_name>:8080/datamanagement/a/actionpack/<ID>" -u "superuser:suser"

Replace <nac_name> by the NAC servername, superuser:suser by a login/password and <ID> by the ID found in step 1 

example with ID=270 and NAC Server name=nacservername

curl -X DELETE "http://nacservername:8080/datamanagement/a/actionpack/270" -u "superuser:suser"

 

3- After execution, the file is removed from action_packs table and also in NAC directory actionslib

4- If needed (if these files are still present in NAC 6.9.4 actlionslib folder) repeat the steps 1-3 for these files :

CGLIB-NODEP-2.2.JAR
CSSPARSER-0.9.8.JAR
HTMLUNIT-2.11.JAR
HTMLUNIT-CORE-JS-2.11.JAR
JETTY-HTTP-8.1.7.V20120910.JAR
JETTY-IO-8.1.7.V20120910.JAR
JETTY-UTIL-8.1.7.V20120910.JAR
JETTY-WEBSOCKET-8.1.7.V20120910.JAR
JNA-4.0.0.JAR
NEKOHTML-1.9.17.JAR
NETTY-3.5.2.FINAL.JAR
PLATFORM-3.4.0.JAR
SAC-1.3.JAR
SELENIUM-ANDROID-DRIVER-2.31.0.JAR
SELENIUM-HTMLUNIT-DRIVER-2.31.0.JAR
SELENIUM-IPHONE-DRIVER-2.31.0.JAR
WEBBIT-0.4.14.JAR
XERCESIMPL-2.10.0.JAR
GROOVY-ALL-2.1.1.JAR
COMMONS-IO-2.2.JAR
JSON-20080701.JAR
JSON-PATH-2.0.0.JAR
LOG4J-1.2.16.JAR
OJDBC6.JAR
COMMONS-BEANUTILS-1.7.0.JAR
COMMONS-CODEC-1.4.JAR
COMMONS-NET-1.3.0.JAR