title: jasperreport renders empty pdf
body: <p>Have:
  - a report generator class (Test.class). This class populates an  JRBeanArrayDataSource with dummy non-empty values.</p>
  
  <ul>
  <li>a javabean (OficioSipoData)</li>
  <li>a simple report</li>
  </ul>
  
  <p>All i get is a blank pdf.</p>
  
  <ul>
  <li>Checked for exceptions. main() method throws nothing</li>
  <li>The  list of values passed to the DataSource is not empty.</li>
  </ul>
  
  <p>Thanks</p>
  
  <p>The classes:</p>
  
  <pre><code>public class Test {
      public static void main(String[] args)  {
          Test t = new Test();
          try {
              t.dostuff();
          } catch (JRException e) {               
              e.printStackTrace();
          } catch (IOException e) {
              e.printStackTrace();
          }
      }
  
      private void dostuff() throws JRException, IOException {        
          Map&lt;String,Object&gt; params = new HashMap&lt;String, Object&gt;();                              
          File f = new File("C:\\report1.jrxml");
          InputStream fis = new FileInputStream(f); 
          JasperReport jrsub = JasperCompileManager.compileReport(fis);
  
  
          List&lt;OficioSipoData&gt; l = new ArrayList&lt;OficioSipoData&gt;();
          for (int i = 0; i &lt; 5; i++) {
              addDummyOSD(l,i);
          }       
  
          Object[] os = l.toArray();
          JRDataSource ds = new JRBeanArrayDataSource(os);        
          JasperRunManager.runReportToPdf(jrsub, params, ds);
          byte[] bytes = JasperRunManager.runReportToPdf(jrsub, params, ds);
          FileOutputStream fos = new FileOutputStream(new File("C:\\report1.pdf"));
          fos.write(bytes);
          fos.close();
          System.out.println("fine");
      }
  
      private void addDummyOSD(List&lt;OficioSipoData&gt; lista, int i) {
          OficioSipoData osd = new OficioSipoData();
          osd.setDireccion("asasa " + i);
          osd.setFecha("11/11/2013");
          osd.setOperativo("dsdsds" + i);
          lista.add(osd);
      }           
  }
  
  
  public class OficioSipoData {
      private String fecha;
      private String direccion;
      private String operativo;
  
      public String getDireccion() {
          return direccion;
      }
      public void setDireccion(String direccion) {
          this.direccion = direccion;
      }
  
      public String getFecha() {
          return fecha;
      }
      public void setFecha(String fecha) {
          this.fecha = fecha;
      }
  
      public String getOperativo() {
          return operativo;
      }
      public void setOperativo(String operativo) {
          this.operativo = operativo;
      }
  }  
  </code></pre>
  
  <p>The JRXML</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&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="report1" language="groovy" pageWidth="612" pageHeight="792" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c79c5925-d8ca-40e8-bad2-1eaadb05c38f"&gt;
      &lt;property name="ireport.zoom" value="1.0"/&gt;
      &lt;property name="ireport.x" value="0"/&gt;
      &lt;property name="ireport.y" value="0"/&gt;
      &lt;field name="direccion" class="java.lang.String"/&gt;
      &lt;field name="fecha" class="java.lang.String"/&gt;
      &lt;background&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/background&gt;
      &lt;title&gt;
          &lt;band height="113" splitType="Stretch"&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="e412065c-5a73-462f-9390-0096e54f80b3" x="226" y="23" width="100" height="20"/&gt;
                  &lt;textElement/&gt;
                  &lt;text&gt;&lt;![CDATA[wiii]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/title&gt;
      &lt;pageHeader&gt;
          &lt;band height="58" splitType="Stretch"&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="ffc0130b-fee2-4861-b33a-a1078456813f" x="216" y="13" width="100" height="20"/&gt;
                  &lt;textElement/&gt;
                  &lt;text&gt;&lt;![CDATA[waaa]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/pageHeader&gt;
      &lt;columnHeader&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/columnHeader&gt;
      &lt;detail&gt;
          &lt;band height="132" splitType="Stretch"&gt;
              &lt;staticText&gt;
                  &lt;reportElement uuid="e34f4c70-8e1c-405b-b3f7-90e11e5e9b7e" x="0" y="4" width="100" height="20"/&gt;
                  &lt;textElement/&gt;
                  &lt;text&gt;&lt;![CDATA[direccion]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;textField&gt;
                  &lt;reportElement uuid="ab77eb85-4dfa-44da-aa5e-3ad98b7b426e" x="100" y="4" width="100" height="20"/&gt;
                  &lt;textElement/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{direccion}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
      &lt;columnFooter&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/columnFooter&gt;
      &lt;pageFooter&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/pageFooter&gt;
      &lt;summary&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/summary&gt;
  &lt;/jasperReport&gt;
  </code></pre>