若地區設定並非英文或法文,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.