如果区域设置未设置为英语或法语,generate-java-truststore.sh 会失败

Summary: 脚本或任务无法成功完成,引发 CLI 错误,找不到基本区域设置

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.(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.(Resources.java:18)
       ... 2 more

Cause

如果 CLI 语言区域设置设置为除英语或法语以外的任何其他语言,则您将看到此问题。
 
监视和报告软件功能提供语言:
•英语
• 法语


Resolution

将区域设置更改为支持的语言

以上错误显示区域设置|语言设置为 es_ES

 
查看当前设置:
# locale
 
查看可用语言:
# locale -a 
 
将语言更改为英语
# LANG=en_US
# locale
 
运行脚本:
# /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.