1. 程式人生 > >em 13c在rhel7.4上安裝的一個問題

em 13c在rhel7.4上安裝的一個問題

轉自:

EM 13c: Enterprise Manager 13c Cloud Control Installation on RHEL 7.4 Fails with Error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 (文件 ID 2305333.1)

APPLIES TO:

Enterprise Manager Base Platform - Version 13.2.0.0.0 and later
Linux x86-64

SYMPTOMS

Enterprise Manager (EM) 13.2.0.0.0 Cloud Control
Installation on RHEL 7.4

EM 13.2 installation fails with the following session error:

$ ./em13200_linux64.bin
0%.........................................................................100%
Launcher log file is /tmp/OraInstall2017-09-05_03-20-26PM/launcher2017-09-05_03-20-26PM.log.
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 2594.158 MHz    Passed
Checking monitor: must be configured to display at least 256 colors.   Actual 16777216    Passed
Checking swap space: must be greater than 512 MB.   Actual 5119 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2017-09-05_03-20-26PM
====Prereq Config Location main===
/tmp/OraInstall2017-09-05_03-20-26PM/stage/prereq
EMGCInstaller args -scratchPath
EMGCInstaller args /tmp/OraInstall2017-09-05_03-20-26PM
EMGCInstaller args -sourceType
EMGCInstaller args network
EMGCInstaller args -timestamp
EMGCInstaller args 2017-09-05_03-20-26PM
EMGCInstaller args -paramFile
EMGCInstaller args /tmp/sfx_KBIMSk/Disk1/install/linux64/oraparam.ini
EMGCInstaller args -nocleanUpOnExit
DiskLoc inside SourceLoc/mnt/rman/backup/DOWNLD/oem
EMFileLoc:/tmp/OraInstall2017-09-05_03-20-26PM/oui/em/
ScratchPathValue :/tmp/OraInstall2017-09-05_03-20-26PM
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
        at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:75)
        at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:93)
        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:1030)
        at javax.swing.JComponent.getFontMetrics(JComponent.java:1625)
        at javax.swing.text.GlyphPainter1.sync(GlyphPainter1.java:226)


A similar symptom may be observed for a working EM 13.2 system on a platform which is upgraded to RHEL 7.4.

CHANGES

CAUSE

RHEL v7.4 (upgraded from v7.3 or fresh install) comes with the stix-fonts package.
When this package is installed, the default font changes from Utopia to STIX. So, now default fonts are mapped to STIX.

SOLUTION

Before installing EM 13.2 Cloud Control, create a file in /etc/fonts/local.conf with the following contents:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>serif</family>
<prefer><family>Utopia</family></prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer><family>Utopia</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Utopia</family></prefer>
</alias>
<alias>
<family>dialog</family>
<prefer><family>Utopia</family></prefer>
</alias>
<alias>
<family>dialoginput</family>
<prefer><family>Utopia</family></prefer>
</alias>
</fontconfig>