title: jasper subreport is not getting printed inside main report
body: <p>i have mainreport and subreport , where main report is getting printed in jasper, but not the subreport, see below code for subreport</p>
  
  <pre><code>&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="Vertical"&gt;
                      &lt;datasetRun subDataset="customerOrderList" uuid="38a2e0f4-ae87-42ad-b3b4-61853d9a2e23"&gt;
                          &lt;dataSourceExpression&gt;&lt;![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{customerOrderList})]]&gt;&lt;/dataSourceExpression&gt;
                      &lt;/datasetRun&gt;
                      &lt;jr:listContents height="39" width="590"&gt;
                          &lt;frame&gt;
                              &lt;reportElement x="0" y="0" width="590" height="39" uuid="609e3e45-03f6-48d0-8776-e6e393d0dbaf"/&gt;
                              &lt;subreport&gt;
                                  &lt;reportElement x="0" y="0" width="590" height="39" uuid="d4ef2aed-7826-49e5-9bb1-7642cbd01279"/&gt;
                                  &lt;subreportExpression&gt;&lt;![CDATA["src/main/java/com/crafart/reports/customerOrders.jasper"]]&gt;&lt;/subreportExpression&gt;
                              &lt;/subreport&gt;
                          &lt;/frame&gt;
                      &lt;/jr:listContents&gt;
                  &lt;/jr:list&gt;
  </code></pre>
  
  <p>i have debugged the code and see there are no issues in generating the report. </p>
  
  <p>i am passing customer order which contains customer details and list of orders. snippet of my customer bean</p>
  
  <pre><code>public class Customer {
      private String customerName;
      private List&lt;Order&gt; customerOrderList
  }
  </code></pre>
  
  <p>and below code used to generate the report</p>
  
  <pre><code>    List&lt;OrderDeclarationBO&gt; orderDeclarationBOLst = new ArrayList&lt;&gt;();
      orderDeclarationBOLst.add(orderDeclarationBO);
      InputStream in = this.getClass().getResourceAsStream("order.jrxml");
      InputStream jasperIn = this.getClass().getResourceAsStream("order.jasper");
      JasperCompileManager.compileReport(in);
      JasperPrint jasperPrint = JasperFillManager.fillReport(jasperIn, new HashMap&lt;String, Object&gt;(), new JRBeanCollectionDataSource(orderDeclarationBOLst));
      JasperExportManager.exportReportToPdfFile(jasperPrint, "orderInvoice.pdf");
  </code></pre>
  
  <p>need help, and dont know what is still required to print subreport.</p>
  
  <p>EDIT :- 
  Adding image of the report, where i am getting null values inside sub report, and not aligned properly </p>
  
  <p><img src="https://i.stack.imgur.com/XRGCM.gif" alt="enter image description here"></p>