title: NPE from sun.awt.FontConfiguration.getVersion using Apache FOP JDK 11 on Linux system
body: <p>I am using Apache FOP (v 2.3 and with testing v 2.5). I have recently upgraded from Oracle JDK 8 to Oracle JDK 11. I am using JBoss EAP 7.2 on Oracle Linux (which is RedHat derivative). Everything works fine when using JDK 8, but just the upgrade to JDK 11 has caused my FOP XSLTs for XML -&gt; PDF and XML - &gt; PNG to create the below stacktrace (the FOP version did not matter as produced the same error).</p>
  <pre><code>Caused by: java.lang.NullPointerException
          at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1262)
          at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:225)
          at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:107)
          at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:719)
  </code></pre>
  <p>My font is Google/RedHat's LiberationSans and I have put them on the file system and configured in a file called LiberationSans.xconf. I have made sure the files are global read accessible (775) and are owned by the user that is running the JBoss instance.</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;!-- LiberationSans --&gt;
  &lt;fop version=&quot;1.0&quot;&gt;
    &lt;renderers&gt;
      &lt;renderer mime=&quot;application/pdf&quot;&gt;
        &lt;fonts&gt;
          &lt;font embed-url=&quot;/apps/fonts/LiberationSans-Regular.ttf&quot; embedding-mode=&quot;subset&quot;&gt;
            &lt;font-triplet name=&quot;LiberationSans&quot; style=&quot;normal&quot; weight=&quot;normal&quot;/&gt;
          &lt;/font&gt;
          &lt;font embed-url=&quot;/apps/fonts/LiberationSans-Bold.ttf&quot; embedding-mode=&quot;subset&quot;&gt;
            &lt;font-triplet name=&quot;LiberationSans&quot; style=&quot;normal&quot; weight=&quot;bold&quot;/&gt;
          &lt;/font&gt;
        &lt;/fonts&gt;
      &lt;/renderer&gt;
      &lt;renderer mime=&quot;image/png&quot;&gt;
        &lt;fonts&gt;
         &lt;font embed-url=&quot;/apps/fonts/LiberationSans-Regular.ttf&quot; embedding-mode=&quot;subset&quot;&gt;
            &lt;font-triplet name=&quot;LiberationSans&quot; style=&quot;normal&quot; weight=&quot;normal&quot;/&gt;
          &lt;/font&gt;
          &lt;font embed-url=&quot;/apps/fonts/LiberationSans-Bold.ttf&quot; kerning=&quot;yes&quot; embedding-mode=&quot;subset&quot;&gt;
            &lt;font-triplet name=&quot;LiberationSans&quot; style=&quot;normal&quot; weight=&quot;bold&quot;/&gt;
          &lt;/font&gt;
        &lt;/fonts&gt;
      &lt;/renderer&gt;
    &lt;/renderers&gt;
  &lt;/fop&gt;
  </code></pre>
  <p>Everything works fine on my local windows machine but my deployments are via Eclipse/JBoss plugins so there might be something with that. The deployments on the Linux server is via jboss-cli.</p>
  <p>Please let me know if there is anything else I can provide that might help. If we have to migrate away from FOP, I would like that to be a last resort.</p>