Smarts SP collector-manager is not starting up and throwing java.lang.IllegalArgumentException: Invalid version number: Version number may be negative or greater than 255
search cancel

Smarts SP collector-manager is not starting up and throwing java.lang.IllegalArgumentException: Invalid version number: Version number may be negative or greater than 255

book

Article ID: 323816

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:

In M&R 7.2.0.X and 7.3.0.X, Smarts SP collector-manager instance is not starting and below errors are observed in collector logs.


SEVERE   -- [2021-06-08 06:27:54 EDT] -- Bootstrap::main(): Can't start Collector Manager!
java.lang.ExceptionInInitializerError
        at com.ibm.icu.impl.ICUResourceBundle.<clinit>(ICUResourceBundle.java:478)
        at com.ibm.icu.util.UResourceBundle.getBundleInstance(UResourceBundle.java:217)
...
...
Caused by: java.lang.IllegalArgumentException: Invalid version number: Version number may be negative or greater than 255
        at com.ibm.icu.util.VersionInfo.getInstance(VersionInfo.java:191)

 

Environment

Watch4Net/M&R - 7.x

Cause

The icu4j java library used in M&R for Smarts SP has an issue when used with Java 8u281 since it can’t allow java version updates > 255. As a result, the collector-manager that is specific to Smarts SP would fail to start.

Resolution

Download the icu4j-3_8_1.jar file attached to this KB and follow the below steps to patch.

1) Stop the below services.
/opt/APG/bin/manage-modules.sh service stop collector-manager <instance>
/opt/APG/bin/manage-modules.sh service stop event-processing-manager <instance>

2) Take a backup of the jar file from below paths. (Note: The backup should be kept outside of "lib" directories.)
/opt/APG/Event-Processing/Smarts-Listener/<instance>/lib/icu4j-3_8_1.jar
/opt/APG/Event-Processing/Event-Log-Processor/<instance>/lib/icu4j-65.1.jar
/opt/APG/Collecting/Smarts-Collector/<instance>/lib/icu4j-3_8_1.jar
/opt/APG/Collecting/Property-Tagging-Filter/<instance>/lib/icu4j-3_8_1.jar

3) Patch the icu4j-3_8_1.jar (with the file downloaded from this KB) at below paths.
/opt/APG/Event-Processing/Smarts-Listener/<instance>/lib/icu4j-3_8_1.jar
/opt/APG/Event-Processing/Event-Log-Processor/<instance>/lib/icu4j-3_8_1.jar
/opt/APG/Collecting/Smarts-Collector/<instance>/lib/icu4j-3_8_1.jar
/opt/APG/Collecting/Property-Tagging-Filter/<instance>/lib/icu4j-3_8_1.jar

4) Start the below services.
/opt/APG/bin/manage-modules.sh service start collector-manager <instance>
/opt/APG/bin/manage-modules.sh service start event-processing-manager <instance>   
Where, <instance> is the Smarts SP instance. Example: ‘emc-smarts’.


Additional Information

Checksum of the attached jar file:
$cksum icu4j-3_8_1.jar
2991428600 4518791 icu4j-3_8_1.jar


Attachments

icu4j-3_8_1.jar get_app