D1-STMCM Getting NullPointerException
(Doc ID 2738244.1)
Last updated on OCTOBER 04, 2022
Applies to:
Oracle Utilities Customer to Meter Base - Version 2.7.0.3.0 and laterOracle Utilities Meter Data Management - Version 2.3.0.2.0 to 2.3.0.2.0 [Release 2.3]
Information in this document applies to any platform.
Symptoms
On : 2.7.0.3.0 version, Meter Data Management
D1-STMCM getting NullPointerException
After patch 31439471 applied, it appears to be working for DST days. But still have an issue. Not sure if it's new or it's an existing issue. thought it's an existing issue. The script is failing with a NULL pointer exception. It fails due to the script attempting to get measurements for one day past the Latest Continous Date Time. Since no data exist, the BigDecimal object is null and fails when performing an operation with this object. The failure is in the calculateAvgDifferenceAndAddAnchorDateToLikeDaysList function
The processEachComparisonType function has a loop over all the "days" to compare. It starts from the max end date of the MC period. When comparing dates to determine the loop end, it goes beyond the latest continuous date/time. The latest continuous date is one hour greater then the compare date. Thus the last date it should compare is still one hour less, so it goes onto the next day. The logger information does show this information. The latest continuous date and max end date are printed. You can see these dates have different hours.
If the Max End Date and Last Continuous Date did not cross DST, then the issue looping and comparing of the dates would not be an issue. This really a similar issue as before, just a different place in the code.
ERROR
-----------------------
NullPointerException
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |