title: Jasper iReport table returns an empty document although query works
body: <p>I'm trying to create a report with Jasper iReport 4.5 and I'm using a table to show some of the data. The table is filled by a query, and when I check the preview of the query in the Query Editor, I get exactly the results that I wanted.
  But when I try to create the preview of the report, all I get is "The document has no pages". Not even the static text in the table header is displayed. </p>
  
  <p>Here is the XML of the report, but without the query:</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="subReportTextManualCustomerRating" pageWidth="500" pageHeight="842" columnWidth="460" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"&gt;
      &lt;property name="ireport.zoom" value="1.4641000000000008"/&gt;
      &lt;property name="ireport.x" value="0"/&gt;
      &lt;property name="ireport.y" value="0"/&gt;
      &lt;style name="table"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="1.0" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="table_TH" mode="Opaque" backcolor="#F0F8FF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="table_CH" mode="Opaque" backcolor="#BFE1FF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="table_TD" mode="Opaque" backcolor="#FFFFFF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="table 1"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="1.0" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="table 1_TH" mode="Opaque" backcolor="#FFFFFF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="table 1_CH" mode="Opaque" backcolor="#FFBFBF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name="table 1_TD" mode="Opaque" backcolor="#FFFFFF"&gt;
          &lt;box&gt;
              &lt;pen lineWidth="0.5" lineColor="#000000"/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;subDataset name="CustomerType"&gt;
          &lt;parameter name="TEXT_MANUAL_OID" class="java.lang.String"/&gt;
          &lt;queryString&gt;
          &lt;/queryString&gt;
          &lt;field name="Anzahl" class="java.lang.Long"/&gt;
          &lt;field name="Typ" class="java.lang.String"/&gt;
          &lt;field name="Bezeichnung" class="java.lang.String"/&gt;
      &lt;/subDataset&gt;
      &lt;parameter name="TEXT_MANUAL_OID" class="java.lang.String"/&gt;
      &lt;queryString&gt;
          &lt;![CDATA[]]&gt;
      &lt;/queryString&gt;
      &lt;summary&gt;
          &lt;band height="143"&gt;
              &lt;componentElement&gt;
                  &lt;reportElement key="table 1" style="table 1" x="0" y="0" width="460" height="143"/&gt;
                  &lt;jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"&gt;
                      &lt;datasetRun subDataset="CustomerType"&gt;
                          &lt;connectionExpression&gt;&lt;![CDATA[$P{REPORT_CONNECTION}]]&gt;&lt;/connectionExpression&gt;
                      &lt;/datasetRun&gt;
                      &lt;jr:column width="90"&gt;
                          &lt;jr:tableHeader style="table 1_TH" height="30"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement x="0" y="0" width="90" height="30"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;text&gt;&lt;![CDATA[Kontakt Typen]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:tableHeader&gt;
                          &lt;jr:detailCell style="table 1_TD" height="20"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="90" height="20"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{Typ}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="90"&gt;
                          &lt;jr:tableHeader style="table 1_TH" height="30"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement x="0" y="0" width="90" height="30"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;text&gt;&lt;![CDATA[Ergebniserklärung]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:tableHeader&gt;
                          &lt;jr:detailCell style="table 1_TD" height="20"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="90" height="20"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{Bezeichnung}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                      &lt;jr:column width="90"&gt;
                          &lt;jr:tableHeader style="table 1_TH" height="30"&gt;
                              &lt;staticText&gt;
                                  &lt;reportElement x="0" y="0" width="90" height="30"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;text&gt;&lt;![CDATA[Anzahl der Kontakte]]&gt;&lt;/text&gt;
                              &lt;/staticText&gt;
                          &lt;/jr:tableHeader&gt;
                          &lt;jr:detailCell style="table 1_TD" height="20"&gt;
                              &lt;textField&gt;
                                  &lt;reportElement x="0" y="0" width="90" height="20"/&gt;
                                  &lt;textElement/&gt;
                                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{Anzahl}]]&gt;&lt;/textFieldExpression&gt;
                              &lt;/textField&gt;
                          &lt;/jr:detailCell&gt;
                      &lt;/jr:column&gt;
                  &lt;/jr:table&gt;
              &lt;/componentElement&gt;
          &lt;/band&gt;
      &lt;/summary&gt;
  &lt;/jasperReport&gt;
  </code></pre>