Problem:
When attempting to install the Collector on Linux OS flavor machine, if it failed with any of the below errors:
1. "Could not display the GUI. This application needs access to an X Server"
*******************************************************************
You can also run this application in console mode without
access to an X server by passing the argument -c
******************************************************************
OR
2. "java.lang.ArrayIndexOutOfBoundsException: 0"
Exception:
java.lang.ArrayIndexOutOfBoundsException: 0
at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:79)
at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:97)
at sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:359)
at sun.font.FontDesignMetrics.<init>(FontDesignMetrics.java:350)
at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:302)
at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1113)
at javax.swing.JComponent.getFontMetrics(JComponent.java:1626)
Solution:
You can try the "-c" option to run the application in console mode.
$ sudo ./SumoCollector.sh -c -q -Vsumo.accessid=<myaccessid> -Vsumo.accesskey=<myaccessid>
Or, if it continues to fail, you can try installing this fonts package for your Linux distribution:
This Google link talks about how to update centos to fix the error:
https://communities.ca.com/thread/241790600-rehl-74-release-automation-installation-error
The root cause of this issue is due to the missing the font library on the server.
Installing the required font package issue will address the issue.
Run the below command on the required servers:
yum install dejavu-serif-fonts
Depending on the Centos flavor, you should install dejavu-serif-fonts package to overcome this issue.
Comments
0 comments
Please sign in to leave a comment.