generate-java-truststore.sh fails if locale is not set to English or French

Summary: Scripts or tasks will not complete successfully throwing errors of CLI, cannot find base locale

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

SMRFE:# /opt/APG/bin/generate-java-truststore.sh 
Exception in thread "main" java.lang.ExceptionInInitializerError
       at com.watch4net.apg.java.cli.CliProgressionListener.<clinit>(CliProgressionListener.java:26)
       at com.watch4net.apg.java.cli.GenerateTruststoreCli.main(GenerateTruststoreCli.java:62)
Caused by: java.util.MissingResourceException: Can't find bundle for base name com.watch4net.apg.java.locale.resources, locale es_ES
       at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1581)
       at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1396)
       at java.util.ResourceBundle.getBundle(ResourceBundle.java:782)
       at com.watch4net.apg.java.locale.Resources.<clinit>(Resources.java:18)
       ... 2 more

Cause

If the CLI language or locale is set to any other apart from English or French, then you will see the issue. 
 
Monitoring and Reporting software is available in the following languages:
• English
• French


Resolution

Change locale to supported language

The above error shows the locale |language is set to es_ES

 
View the current settings:
# locale
 
View available languages:
# locale -a 
 
Change the language to English
# LANG=en_US
# locale
 
Run the script;
# /opt/APG/bin/generate-java-truststore.sh

Affected Products

Storage Monitoring and Reporting, SRM, VNX Family Monitoring and Reporting
Article Properties
Article Number: 000185536
Article Type: Solution
Last Modified: 15 Dec 2022
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.