title: Error in Jasper Report Generation
body: <p>I have designed a JRXML on Jaspersoft Studio 5.1.0, able to generate a CSV format report on Eclipse and Windows machine. When i export the java code onto Unix server, getting below error.</p>
  
  <p>Java Version of Unix Server : "1.7.0.08"</p>
  
  <pre><code>Caused by: java.lang.ExceptionInInitializerError
          at net.sf.jasperreports.engine.fill.JRBaseFiller.&lt;init&gt;(JRBaseFiller.java:121)
          at net.sf.jasperreports.engine.fill.JRVerticalFiller.&lt;init&gt;(JRVerticalFiller.java:88)
          at net.sf.jasperreports.engine.fill.JRVerticalFiller.&lt;init&gt;(JRVerticalFiller.java:103)
          at net.sf.jasperreports.engine.fill.JRVerticalFiller.&lt;init&gt;(JRVerticalFiller.java:61)
          at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:179)
          at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:148)
          at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:464)
          at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:861)
          at com.infy.ui.mig.compare.MigrationUXAndONSCompare.GenerateReport(MigrationUXAndONSCompare.java:518)
          ... 2 more
  Caused by: net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: Problem reading font data.
          at net.sf.jasperreports.engine.fonts.SimpleFontFace.setTtf(SimpleFontFace.java:182)
          at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFace(SimpleFontExtensionHelper.java:364)
          at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamily(SimpleFontExtensionHelper.java:290)
          at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamilies(SimpleFontExtensionHelper.java:254)
          at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:215)
          at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:184)
          at net.sf.jasperreports.engine.fonts.FontExtensionsRegistry.getExtensions(FontExtensionsRegistry.java:56)
          at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:110)
          at net.sf.jasperreports.engine.util.JRStyledTextParser.&lt;clinit&gt;(JRStyledTextParser.java:83)
          ... 11 more
  Caused by: java.io.IOException: Problem reading font data.
          at java.awt.Font.createFont0(Font.java:999)
          at java.awt.Font.createFont(Font.java:876)
          at net.sf.jasperreports.engine.fonts.SimpleFontFace.setTtf(SimpleFontFace.java:174)
          ... 19 more
  </code></pre>
  
  <p>Java Code :</p>
  
  <pre><code>JasperPrint jasperPrint;
              JasperReport jasperReport;
              HashMap jasperParams = new HashMap();
  
              InputStream input = new FileInputStream(jrxmlFile);
              JasperDesign design = JRXmlLoader.load(input);
              jasperReport = JasperCompileManager.compileReport(design);
              jasperReport.isIgnorePagination();
              Document document = JRXmlUtils.parse(JRLoader.getLocationInputStream(writeFileDir));
  
              jasperParams.put(jasperReport.isIgnorePagination(), Boolean.TRUE);
              jasperParams.put(JRXPathQueryExecuterFactory.PARAMETER_XML_DATA_DOCUMENT, document);
              jasperPrint = JasperFillManager.fillReport(jasperReport, jasperParams);
  
              JRCsvExporter exporter = new JRCsvExporter();
              exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
              exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, csvReportName);
              exporter.exportReport();
  </code></pre>
  
  <p>JRXML File :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!-- Created with Jaspersoft Studio version last--&gt;
  &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="HCOTA_RTACOF" language="groovy" pageWidth="3500" pageHeight="4000" columnWidth="3460" columnSpacing="37" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isIgnorePagination="true" uuid="b857e321-5d0f-4309-a5f5-950316db1f9d"&gt;
      &lt;property name="com.jaspersoft.studio.unit." value="pixel"/&gt;
      &lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="XmlDataSource_HRDM_ARD"/&gt;
      &lt;subDataset name="Dataset1" uuid="62525010-7a4a-47a7-b029-c7502b171ae9"&gt;
          &lt;queryString&gt;
              &lt;![CDATA[]]&gt;
          &lt;/queryString&gt;
          &lt;field name="field_name" class="java.lang.String"&gt;
              &lt;fieldDescription&gt;&lt;![CDATA[@name]]&gt;&lt;/fieldDescription&gt;
          &lt;/field&gt;
          &lt;field name="group-name-ons" class="java.lang.String"&gt;
              &lt;fieldDescription&gt;&lt;![CDATA[field-type[@type = "ons"]/group-name]]&gt;&lt;/fieldDescription&gt;
          &lt;/field&gt;
          &lt;field name="page-name-ons" class="java.lang.String"&gt;
              &lt;fieldDescription&gt;&lt;![CDATA[field-type[@type = "ons"]/page-name]]&gt;&lt;/fieldDescription&gt;
          &lt;/field&gt;
      &lt;/subDataset&gt;
      &lt;queryString language="XPath"&gt;
          &lt;![CDATA[/menu-compare/field-details/fields]]&gt;
      &lt;/queryString&gt;
      &lt;field name="field_exists" class="java.lang.String"&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[@existence]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;background&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/background&gt;
      &lt;title&gt;
          &lt;band height="79" splitType="Stretch"/&gt;
      &lt;/title&gt;
      &lt;pageHeader&gt;
          &lt;band height="82" splitType="Stretch"/&gt;
      &lt;/pageHeader&gt;
      &lt;columnHeader&gt;
          &lt;band height="120" splitType="Immediate"&gt;
              &lt;printWhenExpression&gt;&lt;![CDATA[$V{PAGE_NUMBER}==1]]&gt;&lt;/printWhenExpression&gt;
              &lt;textField&gt;
                  &lt;reportElement uuid="78cd7b95-378a-47a7-a2e6-635677759067" x="10" y="60" width="70" height="30" backcolor="#FFFFFF"/&gt;
                  &lt;textElement&gt;
                      &lt;font isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA["Map Type"]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField isStretchWithOverflow="true"&gt;
                  &lt;reportElement uuid="a11ecb4a-06f1-400f-953f-e39edbcf3d9f" isPrintRepeatedValues="false" x="80" y="60" width="70" height="30"/&gt;
                  &lt;textElement&gt;
                      &lt;font isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA["Back End Field"]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement uuid="40a166e8-1aa0-45e8-a10c-ecf61f6b2f5a" x="150" y="60" width="70" height="30"/&gt;
                  &lt;textElement&gt;
                      &lt;font isBold="true" pdfFontName="Helvetica-Bold"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA["Group Name"]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement uuid="c19e0438-7cf9-499e-80d4-7e2f8caaa54b" x="220" y="60" width="70" height="30"/&gt;
                  &lt;textElement&gt;
                      &lt;font isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA["Page Name"]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/band&gt;
      &lt;/columnHeader&gt;
      &lt;detail&gt;
          &lt;band height="125" splitType="Stretch"&gt;
              &lt;componentElement&gt;
                  &lt;reportElement uuid="f80aa2dd-1bdd-41fe-82f2-59b4e56d4b28" x="10" y="40" width="1760" height="60"/&gt;
                  &lt;jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Horizontal"&gt;
                      &lt;datasetRun subDataset="Dataset1" uuid="c1fe8920-0512-41bc-9f79-8fcbc61ac067"&gt;
                          &lt;dataSourceExpression&gt;&lt;![CDATA[$P{REPORT_DATA_SOURCE}.subDataSource("/fields/field")]]&gt;&lt;/dataSourceExpression&gt;
                      &lt;/datasetRun&gt;
                      &lt;jr:listContents height="125" width="1760"&gt;
                          &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                              &lt;reportElement uuid="8d3ab036-d155-4f07-9345-dd37dd3f7101" x="70" y="15" width="70" height="30"/&gt;
                              &lt;textElement/&gt;
                              &lt;textFieldExpression&gt;&lt;![CDATA[$F{field_name}]]&gt;&lt;/textFieldExpression&gt;
                          &lt;/textField&gt;
                          &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                              &lt;reportElement uuid="575757aa-2b24-446e-aa79-ea0c5eb02049" x="140" y="15" width="70" height="30"/&gt;
                              &lt;textElement/&gt;
                              &lt;textFieldExpression&gt;&lt;![CDATA[$F{group-name-ons}]]&gt;&lt;/textFieldExpression&gt;
                          &lt;/textField&gt;
                          &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                              &lt;reportElement uuid="09512867-0754-4544-991f-8dd4ffc7d8c6" x="210" y="15" width="70" height="30"/&gt;
                              &lt;textElement/&gt;
                              &lt;textFieldExpression&gt;&lt;![CDATA[$F{page-name-ons}]]&gt;&lt;/textFieldExpression&gt;
                          &lt;/textField&gt;
                      &lt;/jr:listContents&gt;
                  &lt;/jr:list&gt;
              &lt;/componentElement&gt;
              &lt;textField isStretchWithOverflow="true" isBlankWhenNull="true"&gt;
                  &lt;reportElement uuid="fd3813e4-e26d-48ec-8519-c2c25780f48c" x="10" y="55" width="70" height="30"/&gt;
                  &lt;textElement&gt;
                      &lt;font isBold="true"/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{field_exists}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
      &lt;columnFooter&gt;
          &lt;band height="45" splitType="Stretch"/&gt;
      &lt;/columnFooter&gt;
      &lt;pageFooter&gt;
          &lt;band height="54" splitType="Stretch"/&gt;
      &lt;/pageFooter&gt;
      &lt;summary&gt;
          &lt;band height="42" splitType="Stretch"/&gt;
      &lt;/summary&gt;
  &lt;/jasperReport&gt;
  </code></pre>