About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Troubleshooting
Problem
When there is a large number of Nodes to check inventory, MultiHops and Node TransferSchedule are also being used along with the Procurement rules. If attempt to run findInventory API, it fails with the error java.lang.IllegalArgumentException in IBM Sterling Order Management.
Symptom
findInventory API call fails with the below error:
<Error ErrorCode="java.lang.IllegalArgumentException"
ErrorDescription="Error description not available" ErrorRelatedMoreInfo="">
<Attribute Name="ErrorCode" Value="java.lang.IllegalArgumentException"/>
<Attribute Name="ErrorDescription" Value="Error description not available"/>
<Error ErrorCode="java.lang.IllegalArgumentException"
ErrorDescription="" ErrorRelatedMoreInfo="Comparison method violates its general contract!">
<Stack>java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(TimSort.java:910)
at java.util.TimSort.mergeAt(TimSort.java:527)
at java.util.TimSort.mergeForceCollapse(TimSort.java:468)
at java.util.TimSort.sort(TimSort.java:265)
at java.util.Arrays.sort(Arrays.java:1856)
at java.util.ArrayList.sort(ArrayList.java:1475)
at java.util.Collections.sort(Collections.java:188)
Cause
The latest Java version changes on the comparator algorithm.
Resolving The Problem
Include the system property as java.util.Arrays.useLegacyMergeSort=true
This property can be set as an environment variable.
Related Information
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGTJF","label":"IBM Sterling Order Management System"},"ARM Category":[{"code":"a8m0z000000cxzTAAQ","label":"Inventory"},{"code":"a8m0z000000cxzSAAQ","label":"Orders"}],"ARM Case Number":"TS015439243","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
More support for:
IBM Sterling Order Management System
Component:
Inventory, Orders
Software version:
All Versions
Document number:
7149964
Modified date:
09 May 2024
UID
ibm17149964
Manage My Notification Subscriptions