Red Hat Directory Server 9 Exception in thread main No fonts found

• Updated January 21, 2019

If you have just installed Red Hat Directory Server 9 on RHEL 6 with only the @Base package group, the java-1.6.0-openjdk package, and the redhat-ds package, and you are trying to open the Red Hat Identity Management Console through a forwarded SSH X session by running redhat-idm-console -a http://localhost:9830, you may encounter a Java stack trace.

The Java stack trace encountered will look similar to the following:

Exception in thread "main" java.lang.Error: Probable fatal error:No fonts found.
    at sun.font.FontManager.getDefaultPhysicalFont(
    at sun.font.FontManager.initialiseDeferredFont(
    at sun.font.FontManager.findOtherDeferredFont(
    at sun.font.FontManager.findDeferredFont(
    at sun.font.FontManager.findFont2D(
    at sun.font.FontManager.findFont2D(
    at sun.font.FontManager.getDefaultPhysicalFont(
    at sun.font.FontManager.initialiseDeferredFont(
    at sun.font.CompositeFont.doDeferredInitialisation(
    at sun.font.CompositeFont.getSlotFont(
    at sun.font.CompositeStrike.getStrikeForSlot(
    at sun.font.CompositeStrike.getFontMetrics(
    at sun.font.FontDesignMetrics.initMatrixAndMetrics(
    at sun.font.FontDesignMetrics.<init>(
    at sun.font.FontDesignMetrics.getMetrics(
    at sun.swing.SwingUtilities2.getFontMetrics(
    at javax.swing.JComponent.getFontMetrics(
    at javax.swing.plaf.basic.BasicLabelUI.getPreferredSize(
    at javax.swing.JComponent.getPreferredSize(
    at javax.swing.plaf.basic.BasicListUI.updateLayoutState(
    at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(
    at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(
    at javax.swing.DefaultListSelectionModel.fireValueChanged(
    at javax.swing.DefaultListSelectionModel.fireValueChanged(
    at javax.swing.DefaultListSelectionModel.fireValueChanged(
    at javax.swing.DefaultListSelectionModel.changeSelection(
    at javax.swing.DefaultListSelectionModel.changeSelection(
    at javax.swing.DefaultListSelectionModel.setSelectionInterval(
    at javax.swing.JList.setSelectedIndex(
    at javax.swing.plaf.basic.BasicComboPopup.setListSelection(
    at javax.swing.plaf.basic.BasicComboPopup.access$300(
    at javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(
    at javax.swing.JComboBox.fireItemStateChanged(
    at javax.swing.JComboBox.selectedItemChanged(
    at javax.swing.JComboBox.contentsChanged(
    at javax.swing.AbstractListModel.fireContentsChanged(
    at javax.swing.plaf.metal.MetalFileChooserUI$FilterComboBoxModel.propertyChange(
    at java.beans.PropertyChangeSupport.firePropertyChange(
    at java.beans.PropertyChangeSupport.firePropertyChange(
    at java.awt.Component.firePropertyChange(
    at javax.swing.JFileChooser.setFileFilter(
    at javax.swing.JFileChooser.addChoosableFileFilter(
    at javax.swing.JFileChooser.updateUI(
    at javax.swing.JFileChooser.setup(
    at javax.swing.JFileChooser.<init>(
    at javax.swing.JFileChooser.<init>(
    at Source)
    at<init>(Unknown Source)
    at Source)

To fix this, install yum package liberation-sans-fonts, or an equivalent font package, and reconnect to the Red Hat Identity Management Console through the forwarded SSH X session.

If you found this post useful and would like to help support this site - and get something for yourself - sign up for any of the services listed below through the provided links.

The following links are part of affiliate programs, and I will receive a referral payment from any of the services you sign-up for.

  • Get Faster Shipping: About to order some stuff on Amazon but want to get more value out of the money you would normally pay for shipping? Sign-up for a free, 30-day trial of Amazon Prime to get free two-day shipping, access to thousands of movies and TV shows, and more.
  • Start Investing Now: Looking to start investing some of your saved income? Get started by opening an account with Webull, where upon sign-up and opening a brokerage account with an initial deposit of $100 or more you will receive free stock(s). The promotions are always changing, so be sure to click the link to see the latest.

Thanks for reading and take care.