Troubleshooting
Problem
Running Control Center in a cloud environment and can not execute any reports.
Symptom
Errors found in the Control Center logs
ControlCenterMessages: Error initializing graphic environment.
Stack Trace: com.sterlingcommerce.scc.client.proxy.CCException: ControlCenterMessages: Error initializing graphic environment.
ERROR CCReport - Error initializing graphic environment.
Stack Trace: net.sf.jasperreports.engine.JRRuntimeException: Error initializing graphic environment.
Stack Trace: net.sf.jasperreports.engine.JRRuntimeException: Error initializing graphic environment.
Caused by: java.lang.NullPointerException
at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
Cause
Needed fonts for running reports are not available to Control Center in this environment.
Diagnosing The Problem
Review the Control Center logs for errors being reported for reporting.
Resolving The Problem
- Stop your Control Center
- Go to bin directory.
- Take a backup of runEngine.sh
- vi runEngine.sh
- locate this line
JAVA_SYSTEM_VAR="-Dopenjpa.DynamicEnhancementAgent=false -Djava.util.Arrays.useLegacyMergeSort=true -Dfile.encoding=UTF-8"
And replace it with
JAVA_SYSTEM_VAR="-Dopenjpa.DynamicEnhancementAgent=false -Djava.util.Arrays.useLegacyMergeSort=true -Dfile.encoding=UTF-8 -Djava.awt.headless=true"
A person who has root user privileges and have them install these two packages.
These two commands need to run, and it should download the packages for you.
sudo yum install fontconfig
sudo yum install urw-fonts
6. Start your Control Center.
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSJC3O","label":"IBM Sterling Control Center Monitor"},"ARM Category":[{"code":"a8m0z000000cwW9AAI","label":"REPORTING\/COGNOS"}],"ARM Case Number":"TS014649000","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.2.1;6.3.0;and future releases"}]
Was this topic helpful?
Document Information
Modified date:
07 December 2023
UID
ibm17091520