UIM 20.4 CU5: mon_confg_service_cli - Profile export fails: java.lang.NoClassDefFoundError
search cancel

UIM 20.4 CU5: mon_confg_service_cli - Profile export fails: java.lang.NoClassDefFoundError

book

Article ID: 255018

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

With UIM 20.4 CU5 is not possible too export profiles with MCS-CLI
(RUNNING: mcs-cli, mcs-ws 20.42)
Error received: 
c:\Program Files (x86)\Nimsoft\probes\service\mon_config_service\tools>java -jar mcs-cli.jar profile-export -base_url http://<xxxxx>/mcsws/v0 -device 3 -profile 36 -force -debug  -file test.xml
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/jdbc/core/JdbcOperations

or:
Exception in thread "main" java.lang.NullPointerException
        at com.nimsoft.selfservice.cli.handlers.Handler.validateArgs(Handler.java:149)
        at com.nimsoft.selfservice.cli.handlers.ProfileExport.validateArgs(ProfileExport.java:105)
        at com.nimsoft.selfservice.cli.handlers.ProfileExport.run(ProfileExport.java:57)
        at com.nimsoft.selfservice.cli.Dispatcher.main(Dispatcher.java:64)

This works fine in 20.3.3 or in 20.4 CU4 
(RUNNING: mcs-cli, mcs-ws 20.41)
 
c:\Program Files (x86)\Nimsoft\probes\service\mon_config_service\tools>java -jar mcs-cli.jar profile-export -base_url http://<xxxxx>/mcsws/v0 -device 3 -profile 36 -force -debug  -file test.xml
username: administrator
password:
2022-11-28 09:01:35 INFO [main] [com.nimsoft.selfservice.cli.handlers.ProfileExport] Exporting profile to file [test.xml].
2022-11-28 09:01:36 DEBUG [main] [com.nimsoft.selfservice.cli.util.WSClient] GET(ing): http://<xxxxxx>/mcsws/v0/devices/3/profiles/36
2022-11-28 09:01:39 INFO [main] [com.nimsoft.selfservice.cli.handlers.ProfileExport] Successfully exported profile.

Environment

Release : 20.4

Cause

Defect

Resolution

The issue will be fixed in UIM 20.4 CU6

Alternatives:

1. Downgrade to mcs-cli, mcs-ws 20.40

or

2. adopt UIMAPI for this task: 

Import and export of MCS profiles is more advanced, it's user-friendly, and much easier to use.