Interrupted Exception on JasperReports subreport, but only sometimes










0














I have a main report with detail, page footer, summary, and background bands. If the summary band (normally the second page) stretches so that the report is three pages, everything works great and looks great. However, for some reason if the summary is only one page, then the background does not show for the summary (second) page.



Here is the background xml:



<background>
<band height="740" splitType="Stretch">
<image scaleImage="RetainShape" onErrorType="Blank">
<reportElement isPrintRepeatedValues="false" x="10" y="10" width="1174" height="730" uuid="e3e48fc0-40e1-4c28-8b59-8d0dbad6266f"/>
<imageExpression><![CDATA["\\SERVER\Data\Design Files\SolidEdgeDrawings\ERP Draft Images\"+String.format("%05d",$FdrawingRevision.getDrawingID())+$FdrawingRevision.getRevisionID()+($VPAGE_COUNT>1 ? "p"+$VPAGE_NUMBER : "")+".jpg"]]></imageExpression>
</image>
<rectangle radius="5">
<reportElement mode="Transparent" x="0" y="0" width="1184" height="740" uuid="d8a0802f-d0b4-47ab-b76f-4daefc92a0e0"/>
</rectangle>
<subreport>
<reportElement x="917" y="630" width="267" height="110" uuid="1e62add7-ed82-478d-8102-49e107067ebb"/>
<subreportParameter name="drawingRevision">
<subreportParameterExpression><![CDATA[$FdrawingRevision]]></subreportParameterExpression>
</subreportParameter>
<subreportExpression><![CDATA["static/engineering/drawings/subreports/DrawingTitleBlock.jasper"]]></subreportExpression>
</subreport>
</band>
</background>


The report completes, but I do see this error in the logs:




2018-11-12 15:46:32,499 ERROR [Drawing subreports #1] impl.Jdk14Logger
(Jdk14Logger.java:101) - Fill 2: exception
java.lang.InterruptedException: null
at java.lang.Object.wait(Native Method) ~[?:1.8.0_144]
at java.lang.Object.wait(Object.java:502) ~[?:1.8.0_144]
at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.suspend(AbstractThreadSubreportRunner.java:185)
[jasperreports-6.7.0.jar:6.6.0]
at net.sf.jasperreports.engine.fill.FillerSubreportParent.suspendSubreportRunner(FillerSubreportParent.java:168)
[jasperreports-6.7.0.jar:6.6.0]
at net.sf.jasperreports.engine.fill.FillerSubreportParent.addPage(FillerSubreportParent.java:147)
[jasperreports-6.7.0.jar:6.6.0]
at net.sf.jasperreports.engine.fill.JRBaseFiller.addPageToParent(JRBaseFiller.java:1426)
[jasperreports-6.7.0.jar:6.6.0]
at net.sf.jasperreports.engine.fill.JRVerticalFiller.addPage(JRVerticalFiller.java:2184)
[jasperreports-6.7.0.jar:6.6.0]
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNoLastFooterSamePage(JRVerticalFiller.java:1300)
[jasperreports-6.7.0.jar:6.6.0]
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1189)
[jasperreports-6.7.0.jar:6.6.0]
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:160)
[jasperreports-6.7.0.jar:6.6.0]
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:615)
[jasperreports-6.7.0.jar:6.6.0]
at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:822)
[jasperreports-6.7.0.jar:6.6.0]
at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:61)
[jasperreports-6.7.0.jar:6.6.0]
at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.run(AbstractThreadSubreportRunner.java:221)
[jasperreports-6.7.0.jar:6.6.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[?:1.8.0_144]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[?:1.8.0_144]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]




If I take out the subreport in the background band, the rest of the background shows up fine, so clearly the problem is somehow related to that subreport. However, I can't figure out why it works fine sometimes (the first page is always fine), but not all the time. Hopefully this is enough information without an overload of irrelevant data. Let me know if you need to see more.



What does the error mean, and why won't the background show for the summary page all the time? Thanks!



UPDATE:



I have narrowed the problem down to a list element within the subreport. If I remove the list element, there are no problems. The reason why it sometimes works fine is that there is a condition on the print for that list, so when it did not print, then everything was okay. Any ideas on why a list would cause this problem, or what can be done to fix it?



Here is the xml for the list:



<componentElement>
<reportElement x="0" y="11" width="81" height="9" uuid="04ef37bc-783c-42cd-9afe-713453c84634">
<property name="net.sf.jasperreports.export.headertoolbar.table.name" value="Approvals"/>
</reportElement>
<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">
<datasetRun subDataset="DrawingApprovals" uuid="15782f6d-5533-44e6-98a4-2e868a6173a4">
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($PdrawingRevision.getApprovals())]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="9" width="81">
<textField>
<reportElement x="0" y="0" width="17" height="9" uuid="675784d9-550a-4368-a813-79f71d8a695c"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$FrevisionID]]></textFieldExpression>
</textField>
<textField>
<reportElement x="17" y="0" width="17" height="9" uuid="399c832b-0a8f-441e-a24d-d96d4c66334e"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$Fdrafter]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="34" y="0" width="17" height="9" uuid="fffc0fed-0b4c-4371-91ea-d29b00c509e9"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$Fapprover]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="51" y="0" width="30" height="9" uuid="e0e7a53d-8a93-4dd2-9f3e-27c49844cbd9"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$FapprovalDate]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>









share|improve this question




























    0














    I have a main report with detail, page footer, summary, and background bands. If the summary band (normally the second page) stretches so that the report is three pages, everything works great and looks great. However, for some reason if the summary is only one page, then the background does not show for the summary (second) page.



    Here is the background xml:



    <background>
    <band height="740" splitType="Stretch">
    <image scaleImage="RetainShape" onErrorType="Blank">
    <reportElement isPrintRepeatedValues="false" x="10" y="10" width="1174" height="730" uuid="e3e48fc0-40e1-4c28-8b59-8d0dbad6266f"/>
    <imageExpression><![CDATA["\\SERVER\Data\Design Files\SolidEdgeDrawings\ERP Draft Images\"+String.format("%05d",$FdrawingRevision.getDrawingID())+$FdrawingRevision.getRevisionID()+($VPAGE_COUNT>1 ? "p"+$VPAGE_NUMBER : "")+".jpg"]]></imageExpression>
    </image>
    <rectangle radius="5">
    <reportElement mode="Transparent" x="0" y="0" width="1184" height="740" uuid="d8a0802f-d0b4-47ab-b76f-4daefc92a0e0"/>
    </rectangle>
    <subreport>
    <reportElement x="917" y="630" width="267" height="110" uuid="1e62add7-ed82-478d-8102-49e107067ebb"/>
    <subreportParameter name="drawingRevision">
    <subreportParameterExpression><![CDATA[$FdrawingRevision]]></subreportParameterExpression>
    </subreportParameter>
    <subreportExpression><![CDATA["static/engineering/drawings/subreports/DrawingTitleBlock.jasper"]]></subreportExpression>
    </subreport>
    </band>
    </background>


    The report completes, but I do see this error in the logs:




    2018-11-12 15:46:32,499 ERROR [Drawing subreports #1] impl.Jdk14Logger
    (Jdk14Logger.java:101) - Fill 2: exception
    java.lang.InterruptedException: null
    at java.lang.Object.wait(Native Method) ~[?:1.8.0_144]
    at java.lang.Object.wait(Object.java:502) ~[?:1.8.0_144]
    at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.suspend(AbstractThreadSubreportRunner.java:185)
    [jasperreports-6.7.0.jar:6.6.0]
    at net.sf.jasperreports.engine.fill.FillerSubreportParent.suspendSubreportRunner(FillerSubreportParent.java:168)
    [jasperreports-6.7.0.jar:6.6.0]
    at net.sf.jasperreports.engine.fill.FillerSubreportParent.addPage(FillerSubreportParent.java:147)
    [jasperreports-6.7.0.jar:6.6.0]
    at net.sf.jasperreports.engine.fill.JRBaseFiller.addPageToParent(JRBaseFiller.java:1426)
    [jasperreports-6.7.0.jar:6.6.0]
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.addPage(JRVerticalFiller.java:2184)
    [jasperreports-6.7.0.jar:6.6.0]
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNoLastFooterSamePage(JRVerticalFiller.java:1300)
    [jasperreports-6.7.0.jar:6.6.0]
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1189)
    [jasperreports-6.7.0.jar:6.6.0]
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:160)
    [jasperreports-6.7.0.jar:6.6.0]
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:615)
    [jasperreports-6.7.0.jar:6.6.0]
    at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:822)
    [jasperreports-6.7.0.jar:6.6.0]
    at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:61)
    [jasperreports-6.7.0.jar:6.6.0]
    at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.run(AbstractThreadSubreportRunner.java:221)
    [jasperreports-6.7.0.jar:6.6.0]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    [?:1.8.0_144]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    [?:1.8.0_144]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]




    If I take out the subreport in the background band, the rest of the background shows up fine, so clearly the problem is somehow related to that subreport. However, I can't figure out why it works fine sometimes (the first page is always fine), but not all the time. Hopefully this is enough information without an overload of irrelevant data. Let me know if you need to see more.



    What does the error mean, and why won't the background show for the summary page all the time? Thanks!



    UPDATE:



    I have narrowed the problem down to a list element within the subreport. If I remove the list element, there are no problems. The reason why it sometimes works fine is that there is a condition on the print for that list, so when it did not print, then everything was okay. Any ideas on why a list would cause this problem, or what can be done to fix it?



    Here is the xml for the list:



    <componentElement>
    <reportElement x="0" y="11" width="81" height="9" uuid="04ef37bc-783c-42cd-9afe-713453c84634">
    <property name="net.sf.jasperreports.export.headertoolbar.table.name" value="Approvals"/>
    </reportElement>
    <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">
    <datasetRun subDataset="DrawingApprovals" uuid="15782f6d-5533-44e6-98a4-2e868a6173a4">
    <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($PdrawingRevision.getApprovals())]]></dataSourceExpression>
    </datasetRun>
    <jr:listContents height="9" width="81">
    <textField>
    <reportElement x="0" y="0" width="17" height="9" uuid="675784d9-550a-4368-a813-79f71d8a695c"/>
    <textElement textAlignment="Center">
    <font size="7"/>
    </textElement>
    <textFieldExpression><![CDATA[$FrevisionID]]></textFieldExpression>
    </textField>
    <textField>
    <reportElement x="17" y="0" width="17" height="9" uuid="399c832b-0a8f-441e-a24d-d96d4c66334e"/>
    <textElement textAlignment="Center">
    <font size="7"/>
    </textElement>
    <textFieldExpression><![CDATA[$Fdrafter]]></textFieldExpression>
    </textField>
    <textField isBlankWhenNull="true">
    <reportElement x="34" y="0" width="17" height="9" uuid="fffc0fed-0b4c-4371-91ea-d29b00c509e9"/>
    <textElement textAlignment="Center">
    <font size="7"/>
    </textElement>
    <textFieldExpression><![CDATA[$Fapprover]]></textFieldExpression>
    </textField>
    <textField isBlankWhenNull="true">
    <reportElement x="51" y="0" width="30" height="9" uuid="e0e7a53d-8a93-4dd2-9f3e-27c49844cbd9"/>
    <textElement textAlignment="Center">
    <font size="7"/>
    </textElement>
    <textFieldExpression><![CDATA[$FapprovalDate]]></textFieldExpression>
    </textField>
    </jr:listContents>
    </jr:list>
    </componentElement>









    share|improve this question


























      0












      0








      0







      I have a main report with detail, page footer, summary, and background bands. If the summary band (normally the second page) stretches so that the report is three pages, everything works great and looks great. However, for some reason if the summary is only one page, then the background does not show for the summary (second) page.



      Here is the background xml:



      <background>
      <band height="740" splitType="Stretch">
      <image scaleImage="RetainShape" onErrorType="Blank">
      <reportElement isPrintRepeatedValues="false" x="10" y="10" width="1174" height="730" uuid="e3e48fc0-40e1-4c28-8b59-8d0dbad6266f"/>
      <imageExpression><![CDATA["\\SERVER\Data\Design Files\SolidEdgeDrawings\ERP Draft Images\"+String.format("%05d",$FdrawingRevision.getDrawingID())+$FdrawingRevision.getRevisionID()+($VPAGE_COUNT>1 ? "p"+$VPAGE_NUMBER : "")+".jpg"]]></imageExpression>
      </image>
      <rectangle radius="5">
      <reportElement mode="Transparent" x="0" y="0" width="1184" height="740" uuid="d8a0802f-d0b4-47ab-b76f-4daefc92a0e0"/>
      </rectangle>
      <subreport>
      <reportElement x="917" y="630" width="267" height="110" uuid="1e62add7-ed82-478d-8102-49e107067ebb"/>
      <subreportParameter name="drawingRevision">
      <subreportParameterExpression><![CDATA[$FdrawingRevision]]></subreportParameterExpression>
      </subreportParameter>
      <subreportExpression><![CDATA["static/engineering/drawings/subreports/DrawingTitleBlock.jasper"]]></subreportExpression>
      </subreport>
      </band>
      </background>


      The report completes, but I do see this error in the logs:




      2018-11-12 15:46:32,499 ERROR [Drawing subreports #1] impl.Jdk14Logger
      (Jdk14Logger.java:101) - Fill 2: exception
      java.lang.InterruptedException: null
      at java.lang.Object.wait(Native Method) ~[?:1.8.0_144]
      at java.lang.Object.wait(Object.java:502) ~[?:1.8.0_144]
      at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.suspend(AbstractThreadSubreportRunner.java:185)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.FillerSubreportParent.suspendSubreportRunner(FillerSubreportParent.java:168)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.FillerSubreportParent.addPage(FillerSubreportParent.java:147)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRBaseFiller.addPageToParent(JRBaseFiller.java:1426)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRVerticalFiller.addPage(JRVerticalFiller.java:2184)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNoLastFooterSamePage(JRVerticalFiller.java:1300)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1189)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:160)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:615)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:822)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:61)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.run(AbstractThreadSubreportRunner.java:221)
      [jasperreports-6.7.0.jar:6.6.0]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      [?:1.8.0_144]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      [?:1.8.0_144]
      at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]




      If I take out the subreport in the background band, the rest of the background shows up fine, so clearly the problem is somehow related to that subreport. However, I can't figure out why it works fine sometimes (the first page is always fine), but not all the time. Hopefully this is enough information without an overload of irrelevant data. Let me know if you need to see more.



      What does the error mean, and why won't the background show for the summary page all the time? Thanks!



      UPDATE:



      I have narrowed the problem down to a list element within the subreport. If I remove the list element, there are no problems. The reason why it sometimes works fine is that there is a condition on the print for that list, so when it did not print, then everything was okay. Any ideas on why a list would cause this problem, or what can be done to fix it?



      Here is the xml for the list:



      <componentElement>
      <reportElement x="0" y="11" width="81" height="9" uuid="04ef37bc-783c-42cd-9afe-713453c84634">
      <property name="net.sf.jasperreports.export.headertoolbar.table.name" value="Approvals"/>
      </reportElement>
      <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">
      <datasetRun subDataset="DrawingApprovals" uuid="15782f6d-5533-44e6-98a4-2e868a6173a4">
      <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($PdrawingRevision.getApprovals())]]></dataSourceExpression>
      </datasetRun>
      <jr:listContents height="9" width="81">
      <textField>
      <reportElement x="0" y="0" width="17" height="9" uuid="675784d9-550a-4368-a813-79f71d8a695c"/>
      <textElement textAlignment="Center">
      <font size="7"/>
      </textElement>
      <textFieldExpression><![CDATA[$FrevisionID]]></textFieldExpression>
      </textField>
      <textField>
      <reportElement x="17" y="0" width="17" height="9" uuid="399c832b-0a8f-441e-a24d-d96d4c66334e"/>
      <textElement textAlignment="Center">
      <font size="7"/>
      </textElement>
      <textFieldExpression><![CDATA[$Fdrafter]]></textFieldExpression>
      </textField>
      <textField isBlankWhenNull="true">
      <reportElement x="34" y="0" width="17" height="9" uuid="fffc0fed-0b4c-4371-91ea-d29b00c509e9"/>
      <textElement textAlignment="Center">
      <font size="7"/>
      </textElement>
      <textFieldExpression><![CDATA[$Fapprover]]></textFieldExpression>
      </textField>
      <textField isBlankWhenNull="true">
      <reportElement x="51" y="0" width="30" height="9" uuid="e0e7a53d-8a93-4dd2-9f3e-27c49844cbd9"/>
      <textElement textAlignment="Center">
      <font size="7"/>
      </textElement>
      <textFieldExpression><![CDATA[$FapprovalDate]]></textFieldExpression>
      </textField>
      </jr:listContents>
      </jr:list>
      </componentElement>









      share|improve this question















      I have a main report with detail, page footer, summary, and background bands. If the summary band (normally the second page) stretches so that the report is three pages, everything works great and looks great. However, for some reason if the summary is only one page, then the background does not show for the summary (second) page.



      Here is the background xml:



      <background>
      <band height="740" splitType="Stretch">
      <image scaleImage="RetainShape" onErrorType="Blank">
      <reportElement isPrintRepeatedValues="false" x="10" y="10" width="1174" height="730" uuid="e3e48fc0-40e1-4c28-8b59-8d0dbad6266f"/>
      <imageExpression><![CDATA["\\SERVER\Data\Design Files\SolidEdgeDrawings\ERP Draft Images\"+String.format("%05d",$FdrawingRevision.getDrawingID())+$FdrawingRevision.getRevisionID()+($VPAGE_COUNT>1 ? "p"+$VPAGE_NUMBER : "")+".jpg"]]></imageExpression>
      </image>
      <rectangle radius="5">
      <reportElement mode="Transparent" x="0" y="0" width="1184" height="740" uuid="d8a0802f-d0b4-47ab-b76f-4daefc92a0e0"/>
      </rectangle>
      <subreport>
      <reportElement x="917" y="630" width="267" height="110" uuid="1e62add7-ed82-478d-8102-49e107067ebb"/>
      <subreportParameter name="drawingRevision">
      <subreportParameterExpression><![CDATA[$FdrawingRevision]]></subreportParameterExpression>
      </subreportParameter>
      <subreportExpression><![CDATA["static/engineering/drawings/subreports/DrawingTitleBlock.jasper"]]></subreportExpression>
      </subreport>
      </band>
      </background>


      The report completes, but I do see this error in the logs:




      2018-11-12 15:46:32,499 ERROR [Drawing subreports #1] impl.Jdk14Logger
      (Jdk14Logger.java:101) - Fill 2: exception
      java.lang.InterruptedException: null
      at java.lang.Object.wait(Native Method) ~[?:1.8.0_144]
      at java.lang.Object.wait(Object.java:502) ~[?:1.8.0_144]
      at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.suspend(AbstractThreadSubreportRunner.java:185)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.FillerSubreportParent.suspendSubreportRunner(FillerSubreportParent.java:168)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.FillerSubreportParent.addPage(FillerSubreportParent.java:147)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRBaseFiller.addPageToParent(JRBaseFiller.java:1426)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRVerticalFiller.addPage(JRVerticalFiller.java:2184)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNoLastFooterSamePage(JRVerticalFiller.java:1300)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1189)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:160)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:615)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:822)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:61)
      [jasperreports-6.7.0.jar:6.6.0]
      at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.run(AbstractThreadSubreportRunner.java:221)
      [jasperreports-6.7.0.jar:6.6.0]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      [?:1.8.0_144]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      [?:1.8.0_144]
      at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]




      If I take out the subreport in the background band, the rest of the background shows up fine, so clearly the problem is somehow related to that subreport. However, I can't figure out why it works fine sometimes (the first page is always fine), but not all the time. Hopefully this is enough information without an overload of irrelevant data. Let me know if you need to see more.



      What does the error mean, and why won't the background show for the summary page all the time? Thanks!



      UPDATE:



      I have narrowed the problem down to a list element within the subreport. If I remove the list element, there are no problems. The reason why it sometimes works fine is that there is a condition on the print for that list, so when it did not print, then everything was okay. Any ideas on why a list would cause this problem, or what can be done to fix it?



      Here is the xml for the list:



      <componentElement>
      <reportElement x="0" y="11" width="81" height="9" uuid="04ef37bc-783c-42cd-9afe-713453c84634">
      <property name="net.sf.jasperreports.export.headertoolbar.table.name" value="Approvals"/>
      </reportElement>
      <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">
      <datasetRun subDataset="DrawingApprovals" uuid="15782f6d-5533-44e6-98a4-2e868a6173a4">
      <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($PdrawingRevision.getApprovals())]]></dataSourceExpression>
      </datasetRun>
      <jr:listContents height="9" width="81">
      <textField>
      <reportElement x="0" y="0" width="17" height="9" uuid="675784d9-550a-4368-a813-79f71d8a695c"/>
      <textElement textAlignment="Center">
      <font size="7"/>
      </textElement>
      <textFieldExpression><![CDATA[$FrevisionID]]></textFieldExpression>
      </textField>
      <textField>
      <reportElement x="17" y="0" width="17" height="9" uuid="399c832b-0a8f-441e-a24d-d96d4c66334e"/>
      <textElement textAlignment="Center">
      <font size="7"/>
      </textElement>
      <textFieldExpression><![CDATA[$Fdrafter]]></textFieldExpression>
      </textField>
      <textField isBlankWhenNull="true">
      <reportElement x="34" y="0" width="17" height="9" uuid="fffc0fed-0b4c-4371-91ea-d29b00c509e9"/>
      <textElement textAlignment="Center">
      <font size="7"/>
      </textElement>
      <textFieldExpression><![CDATA[$Fapprover]]></textFieldExpression>
      </textField>
      <textField isBlankWhenNull="true">
      <reportElement x="51" y="0" width="30" height="9" uuid="e0e7a53d-8a93-4dd2-9f3e-27c49844cbd9"/>
      <textElement textAlignment="Center">
      <font size="7"/>
      </textElement>
      <textFieldExpression><![CDATA[$FapprovalDate]]></textFieldExpression>
      </textField>
      </jr:listContents>
      </jr:list>
      </componentElement>






      list jasper-reports subreport






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 13 '18 at 18:34







      Tim

















      asked Nov 12 '18 at 23:21









      TimTim

      431519




      431519






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53271534%2finterrupted-exception-on-jasperreports-subreport-but-only-sometimes%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53271534%2finterrupted-exception-on-jasperreports-subreport-but-only-sometimes%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

          Museum of Modern and Contemporary Art of Trento and Rovereto