IBM Support

How to avoid StackOverflow error during build process in Sterling Order Management with Oracle JDK ?

How To


Summary

How to avoid StackOverflow error during build process in Sterling Order Management with Oracle JDK ?

Objective

During the build process 'java.lang.StackOverflowError' is observed , the process throws the below error and exits:
[javac] Consult the following stack trace for details.
[javac] java.lang.StackOverflowError
[javac] at com.sun.tools.javac.code.Types.rank(Types.java:3291)
[javac] at com.sun.tools.javac.code.Symbol$TypeSymbol.precedes(Symbol.java:717)
This error is thrown due to insufficient default thread stack size for the build process to complete successfully.

Environment

Order Management System v9.5, v10
Oracle JDK 1.8
Linux
Windows

Steps

To resolve the problem '-Xss' parameter needs to be tuned.  '-Xss' parameter maintains the stack size for all threads in native memory. It is recommended to set the thread stack size as per the applications requirement else users can receive the reported error.  Configure the parameter to set a higher size.
To set maximum Java thread stack size add the parameter to JDK,  -Xss<size>.
For more information on the argument refer to Related URLs section. There is no one size fits all value for java max thread size, the stack size value should be calculated from one's tuning exercise to find out the optimal value for '-Xss' setting.
The Java thread stack size can be updated in tmp.sh file and/or in the build script. In case the build script changes are overwritten by tmp file then updating tmp file will be a better option, otherwise only updating the build script should be good. The tmp.sh affects agents and integration servers as well.

Related Information

Document Location

Worldwide

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Component":"","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"9.5;10","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

OMS

Document Information

Modified date:
27 February 2019

UID

ibm10873004