title: Why an empty report is being created in Jasper Reports
body: <p>I am new to Jasper Reports , cpuld anybody please tell me why an empty Report is being created inspite of data being resent in Database </p>
  
  <p>please see this is my program </p>
  
  <pre><code>public class ReportDriver {
  
      /**
       * Constructor for ReportDriver
       */
      public ReportDriver() {
      }
  
      public static void main(String args[]) {
          Connection con = null;
          try {
  
              Class.forName("oracle.jdbc.driver.OracleDriver");
  
              con = DriverManager.getConnection(
                      "jdbc:oracle:thin:@localhost:1521:orcle", "scott", "tiger");
  
              JasperDesign jasperDesign = JRXmlLoader
                      .load("C:\\Documents and Settings\\Admin\\report5.jrxml");
  
              JasperReport jasperReport = JasperCompileManager
                      .compileReport(jasperDesign);
  
              JasperPrint jasperPrint = JasperFillManager.fillReport(
                      jasperReport, null, con);
              JasperViewer.viewReport(jasperPrint);
          } catch (Exception ex) {
              ex.printStackTrace();
              String connectMsg = "Could not create the report ";
              System.out.println(connectMsg);
          }
      }
  
  }
  This is my jrxml file 
  
  &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="report5" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"&gt;
      &lt;queryString language="SQL"&gt;
          &lt;![CDATA[select EMPNO , ENAME ,  JOB from emp]]&gt;
      &lt;/queryString&gt;
      &lt;field name="EMPNO" class="java.math.BigDecimal"/&gt;
      &lt;field name="ENAME" class="java.lang.String"/&gt;
      &lt;field name="JOB" class="java.lang.String"/&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="35" splitType="Stretch"/&gt;
      &lt;/pageHeader&gt;
      &lt;columnHeader&gt;
          &lt;band height="61" splitType="Stretch"/&gt;
      &lt;/columnHeader&gt;
      &lt;detail&gt;
          &lt;band height="125" splitType="Stretch"/&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>