Creating pie chart from multiple variables - jasper-reports

I'm using iReport 5.1.0 and I have a report which compares different answers from different users to a unique question.
Now I have created 4 different variable for 4 possible answers and their count amongst users and this variable work all right! But I don't know how to create pie chart between these 4 variable. I've inserted pie chart and added multiple series and each with one of the variables. But the result is wrong. What should I do?
Here's my xml version of report:
<?xml version="1.0" encoding="UTF-8"?>
<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="r1" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="6c0b56f1-9c36-4a0d-8978-74e7c2279a3d">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="26"/>
<parameter name="phaseid" class="java.lang.Integer"/>
<parameter name="qformid" class="java.lang.Integer"/>
<parameter name="groupid" class="java.lang.Integer"/>
<parameter name="userid" class="java.lang.Integer"/>
<parameter name="version" class="java.lang.String">
<defaultValueExpression><![CDATA[$F{revision}]]></defaultValueExpression>
</parameter>
<queryString language="SQL">
<![CDATA[select
phase."name" AS phasename,
phase."id" AS phaseid,
qform."title" AS ftitle,
qform."id" AS fid,
qform."phaseid" as phaseid,
aform."id" as aId,
aform."revision" as revision,
aform."qformid" as aqid,
aform."creator" as creator,
users."id" as uid,
user2group."groupid" as groupid,
users."name" as name,
users."family" as family,
answer.*,
master.*,
CASE
WHEN parent IS NULL THEN
qnumber*1000
ELSE
(SELECT qnumber FROM question AS detail WHERE detail.id=master.parent)*1000+qnumber
END AS test
FROM "public"."aform" aform
INNER JOIN "public"."answer"answer ON aform."id" = answer."aformid"
INNER JOIN "public"."qform"qform ON aform."qformid" = qform."id"
INNER JOIN "public"."phase" phase ON qform."phaseid" = phase."id"
INNER JOIN "public"."users" users ON users."id" = aform."creator"
INNER JOIN "public"."question" master ON qform."id" = master."qformid"
INNER JOIN "public"."user2group" user2group ON user2group."userid" = aform."creator"
AND master."id" = answer."questionid"
ORDER BY phase.id,qform.id,revision,test,users.id]]>
</queryString>
<field name="phasename" class="java.lang.String"/>
<field name="phaseid" class="java.lang.Integer"/>
<field name="ftitle" class="java.lang.String"/>
<field name="fid" class="java.lang.Integer"/>
<field name="aid" class="java.lang.Integer"/>
<field name="revision" class="java.lang.String"/>
<field name="aqid" class="java.lang.Integer"/>
<field name="creator" class="java.lang.Integer"/>
<field name="uid" class="java.lang.Integer"/>
<field name="groupid" class="java.lang.Integer"/>
<field name="name" class="java.lang.String"/>
<field name="family" class="java.lang.String"/>
<field name="id" class="java.lang.Integer"/>
<field name="yes" class="java.lang.String"/>
<field name="no" class="java.lang.String"/>
<field name="incomplete" class="java.lang.String"/>
<field name="neednot" class="java.lang.String"/>
<field name="reference" class="java.lang.String"/>
<field name="questionid" class="java.lang.Integer"/>
<field name="aformid" class="java.lang.Integer"/>
<field name="score" class="java.lang.Float"/>
<field name="totalscore" class="java.lang.Float"/>
<field name="title" class="java.lang.String"/>
<field name="ratio" class="java.lang.Integer"/>
<field name="qformid" class="java.lang.Integer"/>
<field name="parent" class="java.lang.Integer"/>
<field name="haschild" class="java.lang.String"/>
<field name="qnumber" class="java.lang.Integer"/>
<field name="hd" class="java.lang.String"/>
<field name="test" class="java.lang.Integer"/>
<variable name="yesCount" class="java.lang.Integer" resetType="Group" resetGroup="test" calculation="Sum">
<variableExpression><![CDATA[new Integer($F{yes}.equals( "T" ) ? 1 : 0)]]></variableExpression>
</variable>
<variable name="noCount" class="java.lang.Integer" resetType="Group" resetGroup="test" calculation="Sum">
<variableExpression><![CDATA[new Integer($F{no}.equals( "T" ) ? 1 : 0)]]></variableExpression>
</variable>
<variable name="incompleteCount" class="java.lang.Integer" resetType="Group" resetGroup="test" calculation="Sum">
<variableExpression><![CDATA[new Integer($F{incomplete}.equals( "T" ) ? 1 : 0)]]></variableExpression>
</variable>
<variable name="noneedCount" class="java.lang.Integer" resetType="Group" resetGroup="test" calculation="Sum">
<variableExpression><![CDATA[new Integer($F{neednot}.equals( "T" ) ? 1 : 0)]]></variableExpression>
</variable>
<filterExpression><![CDATA[($P{qformid}!=null ? $F{fid}==$P{qformid} : ($P{phaseid}!=null ? $F{phaseid}==$P{phaseid} : true))
&&
($P{userid}!=null ? $F{uid}==$P{userid} : ($P{groupid}!=null ? $F{groupid}==$P{groupid} : true))
&&
(($P{version}!=null && !$P{version}.isEmpty()) ? $F{revision}==$P{version} : true)]]></filterExpression>
<group name="fid">
<groupExpression><![CDATA[$F{fid}]]></groupExpression>
<groupHeader>
<band height="68">
<textField>
<reportElement uuid="77fb3930-5fe4-45d7-b51f-144da054c7a5" stretchType="RelativeToBandHeight" x="0" y="36" width="555" height="30" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="15" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{ftitle}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f2b71224-d0d7-483e-982a-50d51bb50b27" x="4" y="4" width="545" height="32"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[new String("فاز:") + $F{phasename}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<group name="revision">
<groupExpression><![CDATA[$F{revision}]]></groupExpression>
<groupHeader>
<band height="50">
<textField>
<reportElement uuid="614bdc70-dfef-4bb1-8100-650adf351e03" x="10" y="13" width="545" height="17"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="14" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["نسخه"+" "+$F{revision}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<group name="test">
<groupExpression><![CDATA[$F{test}]]></groupExpression>
<groupHeader>
<band height="100">
<frame>
<reportElement uuid="18474e1d-d1a5-43fb-a97d-07e31fa74d2a" x="0" y="64" width="555" height="36">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="2.0" lineColor="#0033CC"/>
<topPen lineWidth="2.0" lineColor="#0033CC"/>
<leftPen lineWidth="2.0" lineColor="#0033CC"/>
<bottomPen lineWidth="1.0" lineColor="#0033CC"/>
<rightPen lineWidth="2.0" lineColor="#0033CC"/>
</box>
<staticText>
<reportElement uuid="2442e18d-0e22-4063-988a-63bda798b50a" x="352" y="0" width="46" height="36"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="14" isBold="true"/>
</textElement>
<text><![CDATA[بله]]></text>
</staticText>
<staticText>
<reportElement uuid="ac95d72c-f557-4804-97c2-bf3e091c6f68" x="307" y="0" width="44" height="36"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="14" isBold="true"/>
</textElement>
<text><![CDATA[ناقص]]></text>
</staticText>
<staticText>
<reportElement uuid="a3f4991b-5044-46f7-9fdc-36016ffa7635" x="264" y="0" width="42" height="36"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="14" isBold="true"/>
</textElement>
<text><![CDATA[خیر]]></text>
</staticText>
<line>
<reportElement uuid="1319056e-82eb-426b-9e1d-f776722d4098" x="398" y="0" width="1" height="36"/>
<graphicElement>
<pen lineWidth="2.0" lineColor="#0000FF"/>
</graphicElement>
</line>
<staticText>
<reportElement uuid="70d428b7-7cff-49f0-9672-a2c6d58ab1d5" x="203" y="0" width="61" height="36"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="14" isBold="true"/>
</textElement>
<text><![CDATA[نیاز نیست]]></text>
</staticText>
<staticText>
<reportElement uuid="d1ca0268-f0de-4f71-a77a-b101925e663d" x="0" y="0" width="203" height="36"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="14" isBold="true"/>
</textElement>
<text><![CDATA[مرجع پاسخ]]></text>
</staticText>
<line>
<reportElement uuid="590b403c-118c-4ec7-b532-8520e1f553a0" x="351" y="0" width="1" height="36"/>
<graphicElement>
<pen lineWidth="2.0" lineColor="#0000FF"/>
</graphicElement>
</line>
<line>
<reportElement uuid="502d54b2-0f0f-4c6a-8fda-b3b8b932d273" x="306" y="0" width="1" height="36"/>
<graphicElement>
<pen lineWidth="2.0" lineColor="#0000FF"/>
</graphicElement>
</line>
<line>
<reportElement uuid="26cebb69-628c-4bf5-94f4-5e338a3a3fd0" x="265" y="0" width="1" height="36"/>
<graphicElement>
<pen lineWidth="2.0" lineColor="#0000FF"/>
</graphicElement>
</line>
<line>
<reportElement uuid="0ed0e936-9529-4744-a457-f2570b48868d" x="203" y="0" width="1" height="36"/>
<graphicElement>
<pen lineWidth="2.0" lineColor="#0000FF"/>
</graphicElement>
</line>
<staticText>
<reportElement uuid="d323c494-00e0-436a-8bd2-0645f1604693" x="398" y="0" width="157" height="36"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="14" isBold="true"/>
</textElement>
<text><![CDATA[تهیه کننده]]></text>
</staticText>
</frame>
<rectangle>
<reportElement uuid="1df8e3d2-5ab8-4a1f-84f6-6789fc7355bc" x="0" y="19" width="555" height="30"/>
</rectangle>
<textField>
<reportElement uuid="f570ba26-7cf0-4214-9d66-03b291a5c668" x="520" y="19" width="29" height="29"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="13" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{parent}==null ? $F{qnumber} : $F{qnumber} +"-"+ (int)($F{test}/1000)]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="495924cd-ac2c-4bff-b216-c23ef5588613" x="490" y="19" width="32" height="29">
<printWhenExpression><![CDATA[$F{parent}==null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="13" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{hd}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="674bd7f9-5b84-40b8-9062-d58088b13291" stretchType="RelativeToBandHeight" x="37" y="18" width="424" height="30">
<printWhenExpression><![CDATA[$F{parent}!=null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None">
<font fontName="DejaVu Sans Mono" size="13" isBold="false" pdfEncoding="Cp1252" isPdfEmbedded="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{title}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="b988a082-e453-4866-9d99-9b4267877f25" stretchType="RelativeToBandHeight" x="37" y="19" width="445" height="30">
<printWhenExpression><![CDATA[$F{parent}==null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None">
<font fontName="DejaVu Sans Mono" size="13" isBold="false" pdfEncoding="Cp1252" isPdfEmbedded="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{title}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="cdc087dd-7633-4b96-be67-246edfa85f6c" x="0" y="19" width="36" height="29">
<printWhenExpression><![CDATA[$F{parent}==null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="13" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{ratio}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="49e9f2db-a838-49fc-8021-cc5bdd924303" stretchType="RelativeToBandHeight" x="520" y="19" width="1" height="30"/>
<graphicElement>
<pen lineWidth="0.25" lineColor="#0000FF"/>
</graphicElement>
</line>
<line>
<reportElement uuid="681e4508-5703-4f4c-9ad2-aba9f4f7e340" stretchType="RelativeToBandHeight" x="488" y="19" width="1" height="30" isPrintWhenDetailOverflows="true">
<printWhenExpression><![CDATA[$F{parent}==null]]></printWhenExpression>
</reportElement>
<graphicElement>
<pen lineWidth="0.25" lineColor="#0000FF"/>
</graphicElement>
</line>
<line>
<reportElement uuid="e2a4436d-f2ce-4422-837c-e35aa5b3da9c" stretchType="RelativeToBandHeight" x="36" y="19" width="1" height="30"/>
<graphicElement>
<pen lineWidth="0.25" lineColor="#0000FF"/>
</graphicElement>
</line>
<line>
<reportElement uuid="77a02989-c90a-4e28-924a-1f066920cf22" stretchType="RelativeToBandHeight" x="461" y="19" width="1" height="30">
<printWhenExpression><![CDATA[$F{parent}!=null]]></printWhenExpression>
</reportElement>
<graphicElement>
<pen lineWidth="0.25" lineColor="#0000FF"/>
</graphicElement>
</line>
</band>
</groupHeader>
<groupFooter>
<band height="100">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
<rectangle>
<reportElement uuid="ef148a3a-d76c-42f8-8d37-d40571742d37" x="0" y="0" width="555" height="100">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
</rectangle>
<staticText>
<reportElement uuid="372012f2-9875-445d-b7ca-2ebf7e27ee8f" x="399" y="0" width="156" height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="14" isBold="true"/>
</textElement>
<text><![CDATA[مجموع]]></text>
</staticText>
<line>
<reportElement uuid="5c956c41-6e8d-4daf-860e-105521bbabea" x="399" y="0" width="1" height="30" isPrintWhenDetailOverflows="true">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<graphicElement>
<pen lineWidth="0.25" lineColor="#000000"/>
</graphicElement>
</line>
<textField>
<reportElement uuid="f9fe1bce-bb93-4b47-a4ef-ccced95a7718" x="351" y="0" width="46" height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{yesCount}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="c5e56984-2e59-4c2f-be31-77c882a92164" x="307" y="0" width="44" height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{incompleteCount}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="dd1100d6-6a21-42d6-a1ad-9854132719c6" x="265" y="0" width="42" height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{noCount}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="eeaa84d4-467f-44fc-aabd-73f8f16f4819" x="204" y="0" width="61" height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{noneedCount}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="547c6e74-6d3c-4fe7-936f-32b79f52ee92" x="204" y="0" width="1" height="30" isPrintWhenDetailOverflows="true">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
</line>
<pieChart>
<chart isShowLegend="false">
<reportElement uuid="6712572f-5729-4a1b-ab4b-f984d90fcdfa" x="3" y="0" width="200" height="100"/>
<chartTitle/>
<chartSubtitle/>
<chartLegend/>
</chart>
<pieDataset>
<pieSeries>
<keyExpression><![CDATA[$V{yesCount}]]></keyExpression>
<valueExpression><![CDATA[$V{yesCount}]]></valueExpression>
<labelExpression><![CDATA["آری"]]></labelExpression>
</pieSeries>
<pieSeries>
<keyExpression><![CDATA[$V{noCount}]]></keyExpression>
<valueExpression><![CDATA[$V{noCount}]]></valueExpression>
<labelExpression><![CDATA["نه"]]></labelExpression>
</pieSeries>
<pieSeries>
<keyExpression><![CDATA[$V{incompleteCount}]]></keyExpression>
<valueExpression><![CDATA[$V{incompleteCount}]]></valueExpression>
<labelExpression><![CDATA["ناقص"]]></labelExpression>
</pieSeries>
<pieSeries>
<keyExpression><![CDATA[$V{noneedCount}]]></keyExpression>
<valueExpression><![CDATA[$V{noneedCount}]]></valueExpression>
<labelExpression><![CDATA["نیازی نیست"]]></labelExpression>
</pieSeries>
</pieDataset>
<piePlot>
<plot/>
<itemLabel/>
</piePlot>
</pieChart>
</band>
</groupFooter>
</group>
<pageHeader>
<band height="50">
<rectangle radius="10">
<reportElement uuid="a1bdf7e1-5da2-42c7-9062-945fc00bcf63" x="0" y="10" width="555" height="33" forecolor="#0033CC" backcolor="#FFFFFF"/>
<graphicElement>
<pen lineWidth="2.0"/>
</graphicElement>
</rectangle>
<staticText>
<reportElement uuid="c0192e0b-b7eb-4fea-a925-8e1d60fa584e" x="42" y="10" width="478" height="31"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="18" isBold="true"/>
</textElement>
<text><![CDATA[پروژه جامع گمرک نوین]]></text>
</staticText>
<image scaleImage="FillFrame">
<reportElement uuid="f3451058-4800-450f-b8ec-25b660a3b6e5" stretchType="RelativeToTallestObject" x="10" y="13" width="28" height="28"/>
<imageExpression><![CDATA["./f.jpg"]]></imageExpression>
</image>
<image scaleImage="RetainShape">
<reportElement uuid="732d3c9a-5e7a-4a67-9334-87c31cbf42bd" x="518" y="10" width="33" height="33"/>
<imageExpression><![CDATA["./g.jpg"]]></imageExpression>
</image>
</band>
</pageHeader>
<detail>
<band height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
<frame>
<reportElement uuid="58ab58b5-7ee4-4981-9af1-f768b6f8d3c6" x="0" y="0" width="555" height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="2.0"/>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="2.0" lineColor="#0033CC"/>
<bottomPen lineWidth="0.25" lineColor="#0033CC"/>
<rightPen lineWidth="2.0" lineColor="#0033CC"/>
</box>
<textField>
<reportElement uuid="35e4246b-e5b6-49e7-a1c7-c706ef15b88a" x="400" y="0" width="155" height="30"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono"/>
</textElement>
<textFieldExpression><![CDATA[$F{uid}.intValue()==$F{creator}.intValue() ? ($F{name}+" "+$F{family}) : ""]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="a786eae2-eec2-4733-9b78-10235a8394dd" stretchType="RelativeToBandHeight" x="399" y="0" width="1" height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<graphicElement>
<pen lineWidth="0.25" lineColor="#0000FF"/>
</graphicElement>
</line>
<image hAlign="Center" vAlign="Middle">
<reportElement uuid="1151a318-559c-4d23-ae9d-0e79818fa511" positionType="Float" stretchType="RelativeToTallestObject" x="361" y="6" width="29" height="18">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<imageExpression><![CDATA[$F{yes}.equals( "T" ) ? "checked.jpg" : "unchecked.jpg"]]></imageExpression>
</image>
<line>
<reportElement uuid="b1c6cc0a-a9b9-45dc-ab67-22666ebfe18f" stretchType="RelativeToBandHeight" x="352" y="0" width="1" height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<graphicElement>
<pen lineWidth="0.25" lineColor="#0000FF"/>
</graphicElement>
</line>
<image scaleImage="RetainShape" hAlign="Center" vAlign="Middle">
<reportElement uuid="7d94a3a2-76a1-4862-801d-83139eae841e" positionType="Float" stretchType="RelativeToTallestObject" x="316" y="7" width="26" height="18">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<imageExpression><![CDATA[$F{incomplete}.equals( "T" ) ? "checked.jpg" : "unchecked.jpg"]]></imageExpression>
</image>
<line>
<reportElement uuid="65b88f44-f97b-464b-9483-8c8d8d2867e4" stretchType="RelativeToBandHeight" x="306" y="0" width="1" height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<graphicElement>
<pen lineWidth="0.25" lineColor="#0000FF"/>
</graphicElement>
</line>
<image hAlign="Center" vAlign="Middle">
<reportElement uuid="70e6f393-3ab9-4b71-9d90-9dfb825fda53" positionType="Float" stretchType="RelativeToTallestObject" x="273" y="8" width="26" height="18">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<imageExpression><![CDATA[$F{no}.equals( "T" ) ? "checked.jpg" : "unchecked.jpg"]]></imageExpression>
</image>
<line>
<reportElement uuid="c69b4574-c05a-49a3-a46e-8b692d516187" stretchType="RelativeToBandHeight" x="265" y="0" width="1" height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<graphicElement>
<pen lineWidth="0.25" lineColor="#0000FF"/>
</graphicElement>
</line>
<image hAlign="Center" vAlign="Middle">
<reportElement uuid="603564a4-bd04-4d2d-8552-911052e2f318" positionType="Float" stretchType="RelativeToTallestObject" x="220" y="7" width="34" height="18">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="0.0"/>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
<rightPen lineWidth="0.0"/>
</box>
<imageExpression><![CDATA[$F{neednot}.equals( "T" ) ? "checked.jpg" : "unchecked.jpg"]]></imageExpression>
</image>
<line>
<reportElement uuid="97e6ddaf-6519-4162-bab8-fc83636c535a" stretchType="RelativeToBandHeight" x="204" y="0" width="1" height="30">
<printWhenExpression><![CDATA[$F{haschild}.equalsIgnoreCase("n")]]></printWhenExpression>
</reportElement>
<graphicElement>
<pen lineWidth="0.25" lineColor="#0000FF"/>
</graphicElement>
</line>
<textField isStretchWithOverflow="true">
<reportElement uuid="6a2507ec-b223-40bf-8a2f-51f0378accec" x="0" y="0" width="203" height="30" isPrintWhenDetailOverflows="true">
<printWhenExpression><![CDATA[$F{reference} != null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Serif" size="13"/>
</textElement>
<textFieldExpression><![CDATA[$F{reference}]]></textFieldExpression>
</textField>
</frame>
</band>
</detail>
<pageFooter>
<band height="24">
<textField pattern="dd/MM/yyyy">
<reportElement uuid="9f246d66-8613-4740-90c8-d119f291d693" x="449" y="0" width="106" height="24" forecolor="#0033CC"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement uuid="cb906951-ced3-47ee-b33e-461280a8b5fd" x="11" y="4" width="40" height="20" forecolor="#0033CC"/>
<textElement textAlignment="Right">
<font fontName="DejaVu Sans Mono" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="a53bbbc6-4ce5-4b4a-b6bd-3a55c4757a82" x="53" y="4" width="58" height="20" forecolor="#0033CC"/>
<textElement>
<font fontName="DejaVu Sans Mono" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["صفحه"+" " +$V{PAGE_NUMBER}+" از"]]></textFieldExpression>
</textField>
</band>
</pageFooter>
</jasperReport>
and a screen shot from report:
as you can see pie should be all green but ....

Related

How can I correct this Jasper so that the text field stretches its height to show all 500 characters of a string

I've already set strecth type to "tallest object" but didn't work. The field is "objeto". The only field that is going to have a lot of characters is f{objeto}, it will have up to 500 characters.
<?xml version="1.0" encoding="UTF-8"?>
<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="estimativa_processo" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<parameter name="entidade" class="java.lang.String"/>
<parameter name="estado" class="java.lang.String"/>
<parameter name="logo" class="java.lang.Object"/>
<parameter name="setor" class="java.lang.String"/>
<parameter name="titulo" class="java.lang.String"/>
<parameter name="inventario" class="java.lang.String"/>
<field name="numeroRpl" class="java.lang.String"/>
<field name="secretaria" class="java.lang.String"/>
<field name="tipo_requisicao" class="java.lang.String"/>
<field name="objeto" class="java.lang.String"/>
<field name="justificativa" class="java.lang.String"/>
<field name="field1" class="java.lang.String"/>
<field name="formato_contratacao" class="java.lang.String"/>
<field name="local_entrega" class="java.lang.String"/>
<field name="requerente" class="java.lang.String"/>
<field name="observacao" class="java.lang.String"/>
<field name="dt_abertura" class="java.lang.String"/>
<field name="responsavel" class="java.lang.String"/>
<field name="lbl_formato" class="java.lang.String"/>
<field name="estimativa_consumo" class="java.lang.String"/>
<field name="media_processo" class="java.lang.Double"/>
<field name="nome_fornecedor" class="java.lang.String"/>
<field name="ddd_fone" class="java.lang.String"/>
<field name="fone" class="java.lang.String"/>
<field name="cnpj_cpf" class="java.lang.String"/>
<field name="data_atual" class="java.lang.String"/>
<group name="Requisicao">
<groupExpression><![CDATA[$F{numeroRpl}]]></groupExpression>
<groupHeader>
<band height="372">
<image hAlign="Center">
<reportElement key="image-1" x="147" y="2" width="256" height="56"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<imageExpression class="java.awt.Image"><![CDATA[$P{logo}]]></imageExpression>
</image>
<textField isBlankWhenNull="false">
<reportElement key="textField-140" x="1" y="69" width="553" height="28"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center">
<font size="16" isBold="true"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{entidade}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="-1" y="117" width="556" height="21"/>
<textElement textAlignment="Center">
<font size="16" isBold="true"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{titulo}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement key="textField-139" x="1" y="98" width="553" height="19"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{estado}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="6" y="288" width="127" height="18"/>
<textElement verticalAlignment="Middle">
<font size="9" isBold="true" isPdfEmbedded="false"/>
</textElement>
<text><![CDATA[Estimativa de Consumo:]]></text>
</staticText>
<line>
<reportElement x="1" y="157" width="554" height="1"/>
</line>
<staticText>
<reportElement x="7" y="186" width="103" height="18"/>
<textElement verticalAlignment="Middle">
<font size="9" isBold="true"/>
</textElement>
<text><![CDATA[Secretaria: ]]></text>
</staticText>
<staticText>
<reportElement x="6" y="162" width="42" height="18"/>
<textElement verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<text><![CDATA[RPL:]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="7" y="252" width="539" height="32"/>
<textElement/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{objeto}]]></textFieldExpression>
</textField>
<line>
<reportElement x="51" y="157" width="1" height="27"/>
</line>
<staticText>
<reportElement x="7" y="231" width="103" height="18"/>
<textElement verticalAlignment="Middle">
<font size="9" isBold="true"/>
</textElement>
<text><![CDATA[Objeto: ]]></text>
</staticText>
<line>
<reportElement x="1" y="184" width="553" height="1"/>
</line>
<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="true">
<reportElement x="133" y="289" width="127" height="17"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{estimativa_consumo}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="56" y="162" width="133" height="18"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{numeroRpl}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="7" y="208" width="539" height="18"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{secretaria}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="6" y="310" width="127" height="18"/>
<textElement verticalAlignment="Middle">
<font size="9" isBold="true"/>
</textElement>
<text><![CDATA[Média do Processo:]]></text>
</staticText>
<staticText>
<reportElement x="7" y="333" width="126" height="18"/>
<textElement verticalAlignment="Middle">
<font size="9" isBold="true"/>
</textElement>
<text><![CDATA[Fornecedores Cotados:]]></text>
</staticText>
<staticText>
<reportElement x="7" y="352" width="103" height="18"/>
<textElement verticalAlignment="Middle">
<font size="9" isBold="true"/>
</textElement>
<text><![CDATA[Nome]]></text>
</staticText>
<staticText>
<reportElement x="232" y="352" width="103" height="18"/>
<textElement verticalAlignment="Middle">
<font size="9" isBold="true"/>
</textElement>
<text><![CDATA[CNPJ/CPF]]></text>
</staticText>
<staticText>
<reportElement x="384" y="352" width="103" height="18"/>
<textElement verticalAlignment="Middle">
<font size="9" isBold="true"/>
</textElement>
<text><![CDATA[Telefone]]></text>
</staticText>
<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="false">
<reportElement x="133" y="310" width="127" height="17"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{media_processo}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="1" width="554" height="1"/>
</line>
<line>
<reportElement x="0" y="2" width="1" height="369"/>
</line>
<line>
<reportElement x="555" y="2" width="1" height="370"/>
</line>
<line>
<reportElement x="0" y="371" width="555" height="1"/>
</line>
</band>
</groupHeader>
<groupFooter>
<band height="130">
<textField>
<reportElement x="147" y="85" width="288" height="18"/>
<textElement textAlignment="Center"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{responsavel}]]></textFieldExpression>
</textField>
<line>
<reportElement x="169" y="83" width="248" height="1"/>
</line>
<textField pattern="dd/MM/yyyy">
<reportElement x="169" y="20" width="248" height="19"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{data_atual}]]></textFieldExpression>
</textField>
<line>
<reportElement x="555" y="0" width="1" height="130"/>
</line>
<line>
<reportElement x="0" y="0" width="1" height="130"/>
</line>
<line>
<reportElement x="1" y="129" width="554" height="1"/>
</line>
</band>
</groupFooter>
</group>
<group name="Fornecedor">
<groupExpression><![CDATA[$F{nome_fornecedor}]]></groupExpression>
<groupHeader>
<band height="22">
<line>
<reportElement x="555" y="0" width="1" height="22"/>
</line>
<textField>
<reportElement x="385" y="2" width="161" height="17"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression class="java.lang.String"><![CDATA["(" + $F{ddd_fone} + ") " + $F{fone}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="233" y="2" width="128" height="17"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{cnpj_cpf}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="7" y="2" width="205" height="17"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{nome_fornecedor}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="0" width="1" height="22"/>
</line>
</band>
</groupHeader>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<summary>
<band splitType="Stretch"/>
</summary>
</jasperReport>
Just add float position for everything you can and set the "lines" to stretch with band.

jasper print not working error says xml parsing error

I am using japer 3.7.6 in my project.Jasper works good locally in my computer.When the same project is hosted in linux server there appears this issue.For some reports jasper is working but in some reports it shows following error :
In Firefox :
In Chrome:
My jasper report code is like this:
<?xml version="1.0" encoding="UTF-8"?>
<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="shareDividentReport_np" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isSummaryNewPage="true">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.report.description" value=""/>
<property name="ireport.zoom" value="1.652892561983471"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<parameter name="address" class="java.lang.String"/>
<parameter name="institutionName" class="java.lang.String"/>
<parameter name="scheme" class="java.lang.String"/>
<parameter name="trxnDate" class="java.lang.String"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="custName" class="java.lang.String">
<fieldDescription><![CDATA[custName]]></fieldDescription>
</field>
<field name="sNo" class="java.lang.Integer"/>
<field name="address" class="java.lang.String">
<fieldDescription><![CDATA[address]]></fieldDescription>
</field>
<field name="accNo" class="java.lang.String"/>
<field name="amount" class="java.math.BigDecimal"/>
<field name="remarks" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="61" splitType="Stretch">
<textField>
<reportElement x="337" y="19" width="215" height="20"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Arial"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{address}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="305" y="-1" width="247" height="20"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Arial" isBold="true"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{institutionName}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="3" y="2" width="142" height="22"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial" isBold="true"/>
</textElement>
<text><![CDATA[Fund Distribution Report]]></text>
</staticText>
<staticText>
<reportElement x="400" y="41" width="81" height="14"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8" isBold="true"/>
</textElement>
<text><![CDATA[Transaction Date :]]></text>
</staticText>
<staticText>
<reportElement x="3" y="41" width="73" height="14"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="8" isBold="true"/>
</textElement>
<text><![CDATA[Scheme Name :]]></text>
</staticText>
<textField>
<reportElement x="77" y="41" width="124" height="14"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{scheme}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="481" y="41" width="70" height="14"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{trxnDate}]]></textFieldExpression>
</textField>
</band>
</title>
<columnHeader>
<band height="17" splitType="Stretch">
<staticText>
<reportElement x="3" y="1" width="22" height="14"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<text><![CDATA[#]]></text>
</staticText>
<line>
<reportElement x="1" y="0" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement x="0" y="0" width="1" height="16"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement x="1" y="16" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement x="25" y="0" width="1" height="16"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement x="131" y="1" width="1" height="16"/>
</line>
<staticText>
<reportElement x="28" y="1" width="106" height="14"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<text><![CDATA[Name]]></text>
</staticText>
<line>
<reportElement x="201" y="1" width="1" height="16"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<staticText>
<reportElement x="204" y="1" width="58" height="14"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<text><![CDATA[Acc No]]></text>
</staticText>
<line>
<reportElement x="261" y="1" width="1" height="16"/>
</line>
<line>
<reportElement x="368" y="1" width="1" height="16"/>
</line>
<line>
<reportElement x="554" y="1" width="1" height="16"/>
</line>
<staticText>
<reportElement x="134" y="1" width="68" height="14"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<text><![CDATA[Address]]></text>
</staticText>
<staticText>
<reportElement x="262" y="0" width="107" height="17">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="1e3ff973-33f4-46e2-8c61-70a570ebcd40"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<text><![CDATA[Amount]]></text>
</staticText>
<staticText>
<reportElement x="370" y="0" width="184" height="17">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5f9168c6-3ec7-40d1-92ec-fd6608f42808"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<text><![CDATA[Remarks]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="17" splitType="Stretch">
<line>
<reportElement x="0" y="-1" width="1" height="16" isPrintWhenDetailOverflows="true"/>
</line>
<line>
<reportElement positionType="Float" x="25" y="0" width="1" height="16" isPrintWhenDetailOverflows="true"/>
</line>
<line>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="131" y="-1" width="1" height="16" isPrintWhenDetailOverflows="true"/>
</line>
<line>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="201" y="0" width="1" height="16" isPrintWhenDetailOverflows="true"/>
</line>
<line>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="261" y="0" width="1" height="16" isPrintWhenDetailOverflows="true"/>
</line>
<line>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="368" y="0" width="1" height="16" isPrintWhenDetailOverflows="true"/>
</line>
<line>
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="554" y="-1" width="1" height="16" isPrintWhenDetailOverflows="true"/>
</line>
<line>
<reportElement x="0" y="15" width="554" height="1"/>
</line>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="30" y="-1" width="100" height="16">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="737f7de1-b4b4-49bd-8d44-4fa181039ac1"/>
</reportElement>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{custName}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="-1" width="25" height="16">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="d6382c06-3ada-460a-9cd4-eb3c7a6404b9"/>
<printWhenExpression><![CDATA[$F{sNo}>0]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{sNo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="135" y="-1" width="66" height="16">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="18069ac2-9301-4317-b20a-447a97937054"/>
</reportElement>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{address}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="202" y="-1" width="56" height="16">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="fb1cc6a9-727b-4827-847a-48952b87e8ba"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{accNo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="262" y="-1" width="101" height="16">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="8a107053-079b-4a12-83ed-5ec9e16a7613"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{amount}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="373" y="-1" width="181" height="16">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="421fa618-29d6-4861-b625-ffa1e0b8d73a"/>
</reportElement>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{remarks}]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>
Similarly code to print is like this:
JasperPrint jasperPrint;
try {
jasperPrint = JasperFillManager.fillReport(reportPath, params,
new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(lstFundDistReport));
HttpServletResponse httpServletResponse = (HttpServletResponse) FacesContext.getCurrentInstance()
.getExternalContext().getResponse();
httpServletResponse.addHeader("Content-disposition", "inline; filename=FundDistReport.pdf");
ServletOutputStream servletOutputStream = httpServletResponse.getOutputStream();
JasperExportManager.exportReportToPdfStream(jasperPrint, servletOutputStream);
FacesContext.getCurrentInstance().responseComplete();
servletOutputStream.close();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
I have used same code to print different reports in my application.I repeat in local computer every reports are working fine.But same application hosted in Linux server gives such unusual error. Some reports are exported to pdf but majorly this issue appears for others reports.

How to wrap up long text in a Single cell using iReport Designer Tool 5.5.0?

I am using Jaspersoft iReport Designer 5.5.0 and having a problem in wrapping a very long text in a Single Cell.
Also, I am trying to create a css in Styles but as it has also properties, so I cannot manually write any code in the same.
I have tried Position type, Stretch type, Stretch with Over flow , print when detail Overflows, but it didn't work.
<?xml version="1.0" encoding="UTF-8"?>
<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="REPORTE_DE_INSPECCION" pageWidth="2830" pageHeight="555" orientation="Landscape" columnWidth="2830" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="168d24ce-7867-4f8c-9bce-e72eb9f7b2b0">
<property name="ireport.zoom" value="0.75"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 1">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table 1_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 1_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 1_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 2">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table 2_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 2_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 2_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Comentario" mode="Opaque" backcolor="#FFFFFF" fill="Solid" pattern="">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<subDataset name="New Dataset 1" uuid="0d3f82f6-11a1-49ff-8329-0a1bf93ea51a">
<field name="nro_inspeccion" class="java.lang.String"/>
<field name="num_Secu_pol" class="java.lang.String"/>
<field name="tipo_poliza" class="java.lang.String"/>
<field name="num_pol1" class="java.lang.String"/>
<field name="num_pol_cotiz" class="java.lang.String"/>
<field name="canal" class="java.lang.String"/>
<field name="num_end" class="java.lang.String"/>
<field name="cod_ramo" class="java.lang.String"/>
<field name="nom_producto" class="java.lang.String"/>
<field name="sim_subproducto" class="java.lang.String"/>
<field name="descSUbproducto" class="java.lang.String"/>
<field name="fechaFormalizo" class="java.lang.String"/>
<field name="creacion" class="java.lang.String"/>
<field name="placa" class="java.lang.String"/>
<field name="agente" class="java.lang.String"/>
<field name="cod_agencia" class="java.lang.String"/>
<field name="nom_agencia" class="java.lang.String"/>
<field name="fecha" class="java.lang.String"/>
<field name="fechaInclusion" class="java.lang.String"/>
<field name="reqInspeccion" class="java.lang.String"/>
<field name="CanalExp" class="java.lang.String"/>
<field name="asegurable" class="java.lang.String"/>
<field name="comentario" class="java.lang.String"/>
<field name="centro_revision" class="java.lang.String"/>
<field name="blindado" class="java.lang.String"/>
<field name="localidad" class="java.lang.String"/>
<field name="desc_localidad" class="java.lang.String"/>
<field name="nombre_agente" class="java.lang.String"/>
</subDataset>
<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["C:\\Documents and Settings\\Seguros\\Mis documentos\\Downloads\\"]]></defaultValueExpression>
</parameter>
<parameter name="REPORT_AUTOR" class="java.lang.String">
<parameterDescription><![CDATA[]]></parameterDescription>
</parameter>
<field name="nro_inspeccion" class="java.lang.String"/>
<field name="num_Secu_pol" class="java.lang.String"/>
<field name="tipo_poliza" class="java.lang.String"/>
<field name="num_pol1" class="java.lang.String"/>
<field name="num_pol_cotiz" class="java.lang.String"/>
<field name="canal" class="java.lang.String"/>
<field name="num_end" class="java.lang.String"/>
<field name="cod_ramo" class="java.lang.String"/>
<field name="nom_producto" class="java.lang.String"/>
<field name="sim_subproducto" class="java.lang.String"/>
<field name="descSUbproducto" class="java.lang.String"/>
<field name="fechaFormalizo" class="java.lang.String"/>
<field name="creacion" class="java.lang.String"/>
<field name="placa" class="java.lang.String"/>
<field name="agente" class="java.lang.String"/>
<field name="cod_agencia" class="java.lang.String"/>
<field name="nom_agencia" class="java.lang.String"/>
<field name="fecha" class="java.lang.String"/>
<field name="fechaInclusion" class="java.lang.String"/>
<field name="reqInspeccion" class="java.lang.String"/>
<field name="CanalExp" class="java.lang.String"/>
<field name="asegurable" class="java.lang.String"/>
<field name="comentario" class="java.lang.String"/>
<field name="centro_revision" class="java.lang.String"/>
<field name="blindado" class="java.lang.String"/>
<field name="localidad" class="java.lang.String"/>
<field name="desc_localidad" class="java.lang.String"/>
<field name="nombre_agente" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="50" splitType="Stretch">
<staticText>
<reportElement x="10" y="0" width="2810" height="50" uuid="76e1f5d4-15e9-41fc-8ba0-c8628f3be9af"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="20" isBold="true"/>
</textElement>
<text><![CDATA[Reporte de Inspección]]></text>
</staticText>
</band>
</title>
<detail>
<band height="60" splitType="Stretch">
<componentElement>
<reportElement key="table" style="table" positionType="Float" stretchType="RelativeToTallestObject" x="10" y="0" width="2810" height="60" uuid="b3af58be-cf70-491c-b671-a133e88cf4fa"/>
<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">
<datasetRun subDataset="New Dataset 1" uuid="bddaf903-8687-475b-9f09-8b0b23e0d67c">
<datasetParameter name="REPORT_DATA_SOURCE">
<datasetParameterExpression><![CDATA[$P{REPORT_DATA_SOURCE}]]></datasetParameterExpression>
</datasetParameter>
<dataSourceExpression><![CDATA[$P{REPORT_DATA_SOURCE}]]></dataSourceExpression>
</datasetRun>
<jr:column width="100" uuid="73d57505-00c4-47de-af47-6f89c222b41f">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="1cf8527e-398c-4a68-a55b-79a31592811c"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Nombre Sub Producto]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="c79ee515-b8aa-4449-9b3e-e8de21fe1b38"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{descSUbproducto}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="688bd5e0-69be-4ec5-9883-37d21f617b0e">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="f30e5f92-f0d1-4b3b-9318-9954de582c7f"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Fecha Formalización cotizacion o emision]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="4be7af2f-d974-498e-8c09-1ed35e8a1581"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
<paragraph tabStopWidth="80"/>
</textElement>
<textFieldExpression><![CDATA[$F{fechaFormalizo}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="77eec847-44fd-44c5-aeaf-c77d8347cfa9">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="8b6d6e6b-80f2-47e2-abf9-dd45bd8a93d9"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Fecha Emision Registro]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="f7552270-75f3-4179-9350-6012206c173d"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{creacion}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="50" uuid="77eec847-44fd-44c5-aeaf-c77d8347cfa9">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="50" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="561a2566-8395-47a6-aa94-bba2adb02606"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Placa]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="50" height="60" uuid="f7552270-75f3-4179-9350-6012206c173d"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{placa}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="e0bc4174-51ba-4fd2-a28a-bf913ead3e0d">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" isRemoveLineWhenBlank="true" forecolor="#FBF1F1" backcolor="#008E4C" uuid="c47eb207-fe06-482a-9955-c3c45961bcc4"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Codigo Agente]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="84ee2f84-3083-40e5-9144-a3d93ef98623"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{agente}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="63173919-8fe3-48ba-be5f-0f064af226d3">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" isRemoveLineWhenBlank="true" forecolor="#FBF1F1" backcolor="#008E4C" uuid="eb00197c-7d83-4121-821d-2bf8b06c4d75"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Nombre Agente ]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="b6bb26ce-a5b4-40e9-b6f7-0fba917657ef"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{nombre_agente}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="313dc0ef-8485-4847-933e-11df4671c411">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="ce6f3fca-0265-4691-a779-64bce723df63"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Cod Agencia]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="fec185f2-2304-41a0-a068-8dc30f212f21"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{cod_agencia}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="fbe418a1-80bd-4696-a26c-11a06ab4cbe3">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="8e9bfa3c-6ae1-461e-a0b5-36064f00774b"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Nombre Agencia]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="6be04f48-e6c4-4708-9c8a-e723d89e95fc"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{nom_agencia}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="fedb0d2b-4c6e-4ff2-ae0b-a703ed3e7353">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="bb23071c-c300-43db-9e5a-73366abe0bba"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Localidad ]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="ca22aafd-d1fb-41dd-b2fe-206bdb2cf2a1"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{localidad}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="110" uuid="c1f75fd8-cf3d-4177-b29c-29247710a6dd">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="110" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="96af8f9f-7bdf-4a12-ba81-793177557da6"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Nombre localidad]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="110" height="60" uuid="766e6eb6-70b5-42d6-8485-e88c9fb1a6da"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{desc_localidad}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="16a182b9-dfce-4bf4-859b-4d14041704c9">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="ee73f296-baaf-4fdb-9d30-72e60667c0a6"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Fecha Atencion Inspeccion]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="f92f92a4-5af8-45b2-8c09-611a4a1ac1fd"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{fecha}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="4efd6e36-4190-4d01-87aa-582687de6397">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="c284f6eb-c2d3-47f5-838f-94a5dc51e39b"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Fecha Creacion Inspeccion]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="cbfc3b3c-68e4-468e-b339-db2b92a2ea95"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{fechaInclusion}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="77eec847-44fd-44c5-aeaf-c77d8347cfa9">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="779a3bfe-fc28-4e07-8dcb-ad2b058779fa"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Requiere Inspección]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="f7552270-75f3-4179-9350-6012206c173d"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{reqInspeccion}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="77eec847-44fd-44c5-aeaf-c77d8347cfa9">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="779a3bfe-fc28-4e07-8dcb-ad2b058779fa"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Canal Expedicion]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="f7552270-75f3-4179-9350-6012206c173d"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{CanalExp}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="90" uuid="77eec847-44fd-44c5-aeaf-c77d8347cfa9">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="90" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="779a3bfe-fc28-4e07-8dcb-ad2b058779fa"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Asegurable]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="90" height="60" uuid="f7552270-75f3-4179-9350-6012206c173d"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{asegurable}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="250" uuid="77eec847-44fd-44c5-aeaf-c77d8347cfa9">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="250" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="779a3bfe-fc28-4e07-8dcb-ad2b058779fa"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Comentario]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="250" height="60" uuid="f7552270-75f3-4179-9350-6012206c173d"/>
<textElement textAlignment="Left" verticalAlignment="Top">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{comentario}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="77eec847-44fd-44c5-aeaf-c77d8347cfa9">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="779a3bfe-fc28-4e07-8dcb-ad2b058779fa"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Centro Revisión]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="f7552270-75f3-4179-9350-6012206c173d"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{centro_revision}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="77eec847-44fd-44c5-aeaf-c77d8347cfa9">
<jr:tableHeader style="table 2_TH" height="60" rowSpan="1">
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="100" height="40" forecolor="#FBF1F1" backcolor="#008E4C" uuid="779a3bfe-fc28-4e07-8dcb-ad2b058779fa"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Blindado]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell style="table 2_TD" height="60" rowSpan="1">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="60" uuid="f7552270-75f3-4179-9350-6012206c173d"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{blindado}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:table>
</componentElement>
</band>
</detail>
</jasperReport>

Jasper report list element produces extra page

Here are some screen shots to demonstrate the problem:
First, here is the design with no list element:
And here is the result of that report (note that there are two pages):
Now if I add the list element, here is the design:
Here is the jrxml for the summary band:
<summary>
<band height="554">
<printWhenExpression><![CDATA[!$F{drawingRevision}.getPartsList().isEmpty() || !$F{drawingRevision}.getProcesses().isEmpty() || !$F{drawingRevision}.getParameters().isEmpty()]]></printWhenExpression>
<staticText>
<reportElement positionType="Float" x="80" y="30" width="100" height="20" uuid="3210d220-35e0-4984-a00d-be4ad58feca4"/>
<text><![CDATA[Static Text]]></text>
</staticText>
<rectangle radius="5">
<reportElement x="0" y="0" width="284" height="16" backcolor="#E1E3FC" uuid="88870baf-afe8-4c0a-9b5f-fe88eb0f4dd3"/>
<graphicElement>
<pen lineWidth="0.0"/>
</graphicElement>
</rectangle>
<staticText>
<reportElement x="5" y="0" width="113" height="16" uuid="9231dea5-26f2-40a8-8b45-2ce560e0f2ba"/>
<textElement>
<font size="12"/>
</textElement>
<text><![CDATA[Design Parameters]]></text>
</staticText>
<componentElement>
<reportElement x="0" y="16" width="284" height="13" uuid="12a8a577-6c77-4849-84c6-362544413192">
<property name="net.sf.jasperreports.export.headertoolbar.table.name" value="Parameters"/>
</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="DrawingRevisionParameters" uuid="5ff517f3-e25b-4ed5-8589-33076f52c2c2">
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{drawingRevision}.getParameters())]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="13" width="284">
<textField pattern="#,##0.####">
<reportElement x="0" y="0" width="50" height="12" uuid="9239498a-9b30-495f-a571-b505fceba75a"/>
<textElement textAlignment="Right">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{parameter}.getParameterValue()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="54" y="0" width="72" height="12" uuid="f2c8d327-e8b4-4f5b-af0c-dad19c0fc4bb"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{parameter}.getParameterUnit().getUnitAbbr()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="132" y="0" width="150" height="12" uuid="0e48fb28-af4b-4fac-8069-63bc1f880d80"/>
<textElement markup="rtf">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{parameter}.getSpecification().getSpecificationName()]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</band>
</summary>
And finally here is the result of that report.
Note that the floating "Static Text" label moved down appropriately, but not nearly enough to add an extra page to the report. However, you'll see that there are now 3 pages to the report anyway.
The only thing that changed was adding the list element. How can I make it so that it doesn't add the extra page? Or what am I not understanding with regard to lists? I could probably also pass the data into a sub-report so that the data is presented in the detail band of the sub-report, but I would much prefer to use a list if I could, since it seems much simpler to me. I am using version 6.6.0. Thanks!
Here is the full jrxml as requested (uuids removed to save on characters):
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0 -->
<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="Drawing" pageWidth="792" pageHeight="612" orientation="Landscape" columnWidth="752" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isSummaryWithPageHeaderAndFooter="true" whenResourceMissingType="Error">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<subDataset name="DrawingRevisionNotes">
<queryString>
<![CDATA[]]>
</queryString>
<field name="orderNum" class="java.lang.Integer">
<fieldDescription><![CDATA[orderNum]]></fieldDescription>
</field>
<field name="drawingNote" class="com.engineering.domain.drawings.DrawingNote">
<fieldDescription><![CDATA[drawingNote]]></fieldDescription>
</field>
</subDataset>
<subDataset name="DrawingApprovals">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="revisionID" class="java.lang.String">
<fieldDescription><![CDATA[revisionID]]></fieldDescription>
</field>
<field name="drafter" class="java.lang.String">
<fieldDescription><![CDATA[drafter]]></fieldDescription>
</field>
<field name="approver" class="java.lang.String">
<fieldDescription><![CDATA[approver]]></fieldDescription>
</field>
<field name="approvalDate" class="java.lang.String">
<fieldDescription><![CDATA[approvalDate]]></fieldDescription>
</field>
</subDataset>
<subDataset name="DrawingRevisionParameters">
<queryString>
<![CDATA[]]>
</queryString>
<field name="drawingParameterID" class="java.lang.Integer">
<fieldDescription><![CDATA[drawingParameterID]]></fieldDescription>
</field>
<field name="parameter" class="com.engineering.domain.drawings.DrawingParameter">
<fieldDescription><![CDATA[parameter]]></fieldDescription>
</field>
<field name="orderNum" class="java.lang.Integer">
<fieldDescription><![CDATA[orderNum]]></fieldDescription>
</field>
</subDataset>
<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["static/"]]></defaultValueExpression>
</parameter>
<queryString>
<![CDATA[]]>
</queryString>
<field name="draftCount" class="java.lang.Integer">
<fieldDescription><![CDATA[draftCount]]></fieldDescription>
</field>
<field name="releaseType" class="com.engineering.domain.drawings.DrawingReleaseType">
<fieldDescription><![CDATA[releaseType]]></fieldDescription>
</field>
<field name="releaser" class="com.humanresources.domain.Employee">
<fieldDescription><![CDATA[releaser]]></fieldDescription>
</field>
<field name="releaseTimeStamp" class="java.time.LocalDateTime">
<fieldDescription><![CDATA[releaseTimeStamp]]></fieldDescription>
</field>
<field name="company" class="com.companies.domain.Company">
<fieldDescription><![CDATA[company]]></fieldDescription>
</field>
<field name="unitSystem" class="com.utilities.domain.units.UnitSystem">
<fieldDescription><![CDATA[unitSystem]]></fieldDescription>
</field>
<field name="drawingReleaseID" class="java.lang.Integer">
<fieldDescription><![CDATA[drawingReleaseID]]></fieldDescription>
</field>
<field name="fullDescription" class="java.lang.Boolean">
<fieldDescription><![CDATA[fullDescription]]></fieldDescription>
</field>
<field name="drawingRevision" class="com.engineering.domain.drawings.DrawingRevision">
<fieldDescription><![CDATA[drawingRevision]]></fieldDescription>
</field>
<background>
<band height="554" splitType="Stretch">
<rectangle radius="5">
<reportElement mode="Transparent" x="0" y="0" width="752" height="553"/>
</rectangle>
<frame>
<reportElement x="485" y="443" width="267" height="110">
<property name="ShowOutOfBoundContent" value="false"/>
</reportElement>
<rectangle radius="5">
<reportElement mode="Transparent" x="0" y="0" width="267" height="110"/>
<graphicElement>
<pen lineWidth="1.0"/>
</graphicElement>
</rectangle>
<subreport>
<reportElement x="0" y="0" width="180" height="34"/>
<subreportExpression><![CDATA[$P{SUBREPORT_DIR}+"HeaderSmall.jasper"]]></subreportExpression>
</subreport>
<line>
<reportElement x="0" y="35" width="180" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<staticText>
<reportElement x="39" y="36" width="21" height="7"/>
<textElement>
<font size="5"/>
</textElement>
<text><![CDATA[Title]]></text>
</staticText>
<textField>
<reportElement x="44" y="40" width="136" height="47"/>
<textElement verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{drawingRevision}.getTitle()]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="39" y="90" width="21" height="7"/>
<textElement>
<font size="5"/>
</textElement>
<text><![CDATA[Drawing]]></text>
</staticText>
<textField>
<reportElement x="44" y="94" width="136" height="16"/>
<textElement textAlignment="Center">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[String.format("%06d",$F{drawingRevision}.getDrawing().getDrawingID())+" Rev "+$F{drawingRevision}.getRevision().getRevisionID()]]></textFieldExpression>
</textField>
<line>
<reportElement x="38" y="36" width="1" height="74"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement x="180" y="0" width="1" height="110"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement x="39" y="89" width="141" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<frame>
<reportElement x="0" y="36" width="37" height="74"/>
<staticText>
<reportElement x="2" y="2" width="33" height="7"/>
<textElement textAlignment="Center">
<font size="5" isItalic="true" isUnderline="true"/>
</textElement>
<text><![CDATA[Tolerances]]></text>
</staticText>
<textField>
<reportElement x="2" y="9" width="33" height="20"/>
<textElement textAlignment="Center">
<font size="5" isItalic="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{unitSystem}.getUnitTolerance().getUnit().getUnitNamePlural()+"\nUnless\nNoted"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="2" y="29" width="33" height="33"/>
<textElement textAlignment="Center">
<font size="5" isItalic="true"/>
</textElement>
<textFieldExpression><![CDATA[($F{unitSystem}.getUnitTolerance().getTolerance3Place()!=null ? "X.XXX ±"+$F{unitSystem}.getUnitTolerance().getTolerance3Place()+"\n" : "")+
($F{unitSystem}.getUnitTolerance().getTolerance2Place()!=null ? "X.XX ±"+$F{unitSystem}.getUnitTolerance().getTolerance2Place()+"\n" : "")+
($F{unitSystem}.getUnitTolerance().getTolerance1Place()!=null ? "X.X ±"+$F{unitSystem}.getUnitTolerance().getTolerance1Place()+"\n" : "")+
($F{unitSystem}.getUnitTolerance().getFractional()!=null ? "Frac. ±"+$F{unitSystem}.getUnitTolerance().getFractional()+"\n" : "")+
"Ang. ±30'"]]></textFieldExpression>
</textField>
</frame>
<frame>
<reportElement x="180" y="0" width="87" height="109"/>
<componentElement>
<reportElement x="3" y="14" width="81" height="9">
<property name="net.sf.jasperreports.export.headertoolbar.table.name" value="Approvals"/>
<printWhenExpression><![CDATA[$F{drawingRevision}.getRevision().getRevisionType().getRevisionTypeID()==1]]></printWhenExpression>
</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">
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{drawingRevision}.getApprovals())]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="9" width="81">
<textField>
<reportElement x="0" y="0" width="17" height="9"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{revisionID}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="17" y="0" width="17" height="9"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{drafter}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="34" y="0" width="17" height="9"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{approver}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="51" y="0" width="30" height="9"/>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{approvalDate}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
<staticText>
<reportElement x="3" y="3" width="17" height="11">
<printWhenExpression><![CDATA[$F{drawingRevision}.getRevision().getRevisionType().getRevisionTypeID()==1]]></printWhenExpression>
</reportElement>
<textElement>
<font size="8"/>
</textElement>
<text><![CDATA[REV]]></text>
</staticText>
<staticText>
<reportElement x="20" y="3" width="17" height="11">
<printWhenExpression><![CDATA[$F{drawingRevision}.getRevision().getRevisionType().getRevisionTypeID()==1]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<text><![CDATA[BY]]></text>
</staticText>
<staticText>
<reportElement x="37" y="3" width="17" height="11">
<printWhenExpression><![CDATA[$F{drawingRevision}.getRevision().getRevisionType().getRevisionTypeID()==1]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<text><![CDATA[APV]]></text>
</staticText>
<staticText>
<reportElement x="54" y="3" width="30" height="11">
<printWhenExpression><![CDATA[$F{drawingRevision}.getRevision().getRevisionType().getRevisionTypeID()==1]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<text><![CDATA[DATE]]></text>
</staticText>
<textField isStretchWithOverflow="true">
<reportElement x="3" y="14" width="81" height="0">
<printWhenExpression><![CDATA[$F{drawingRevision}.getRevision().getRevisionType().getRevisionTypeID()!=1]]></printWhenExpression>
</reportElement>
<textFieldExpression><![CDATA["PRELIMINARY REVISION "+$F{drawingRevision}.getRevision().getRevisionID()]]></textFieldExpression>
</textField>
<line>
<reportElement positionType="Float" x="3" y="17" width="82" height="1">
<printWhenExpression><![CDATA[$F{drawingRevision}.getRevision().getRevisionType().getRevisionTypeID()!=1]]></printWhenExpression>
</reportElement>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" x="3" y="20" width="82" height="0">
<printWhenExpression><![CDATA[$F{drawingRevision}.getRevision().getRevisionType().getRevisionTypeID()!=1]]></printWhenExpression>
</reportElement>
<textElement>
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA["REV BY APV DATE\n - "+$F{drawingRevision}.getDrafter().getInitials()]]></textFieldExpression>
</textField>
</frame>
</frame>
</band>
</background>
<detail>
<band height="554" splitType="Stretch">
<image scaleImage="RetainShape">
<reportElement x="5" y="5" width="742" height="548"/>
<imageExpression><![CDATA["\\\\SERVER\\Data\\Design Files\\Drawings\\ERP Draft Images\\"+String.format("%05d",$F{drawingRevision}.getDrawing().getDrawingID())+$F{drawingRevision}.getRevision().getRevisionID()+($F{draftCount}>1 ? "p"+$F{draftCount} : "")+".jpg"]]></imageExpression>
</image>
<componentElement>
<reportElement x="4" y="420" width="400" height="30">
<property name="net.sf.jasperreports.export.headertoolbar.table.name" value="Notes"/>
</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="DrawingRevisionNotes">
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{drawingRevision}.getNotes())]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="30" width="400">
<staticText>
<reportElement x="0" y="0" width="48" height="14"/>
<text><![CDATA[NOTES]]></text>
</staticText>
<textField>
<reportElement x="0" y="14" width="15" height="14"/>
<textFieldExpression><![CDATA[$F{orderNum}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="16" y="14" width="384" height="14"/>
<textFieldExpression><![CDATA[$F{drawingNote}.getNoteText()]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
<frame>
<reportElement x="485" y="405" width="267" height="38">
<printWhenExpression><![CDATA[$F{drawingRevision}.getMaterial()!=null]]></printWhenExpression>
</reportElement>
<rectangle radius="5">
<reportElement x="0" y="0" width="267" height="38"/>
</rectangle>
<staticText>
<reportElement x="4" y="0" width="100" height="13"/>
<text><![CDATA[Material]]></text>
</staticText>
<line>
<reportElement x="4" y="12" width="259" height="1"/>
</line>
<staticText>
<reportElement x="138" y="0" width="61" height="13"/>
<text><![CDATA[Coating]]></text>
</staticText>
<staticText>
<reportElement x="199" y="0" width="64" height="13"/>
<text><![CDATA[Notes]]></text>
</staticText>
<textField>
<reportElement x="4" y="13" width="134" height="24"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{drawingRevision}.getMaterial().getMaterialRaw().getShortDescriptionNoCondition() + ( $F{drawingRevision}.getMaterial().getMaterialRaw().getMaterialCondition() == null || $F{drawingRevision}.getMaterial().getMaterialRaw().getMaterialCondition().getConditionDescription() == null || $F{drawingRevision}.getMaterial().getMaterialRaw().getMaterialCondition().getConditionDescription().trim() == "" ? "" : ", "+$F{drawingRevision}.getMaterial().getMaterialRaw().getMaterialCondition().getConditionDescription() )]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="138" y="13" width="61" height="24"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{drawingRevision}.getMaterial().getMaterialCoating()==null ? "" : $F{drawingRevision}.getMaterial().getMaterialCoating().getCoatingDescription()]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="199" y="13" width="64" height="24"/>
<textElement>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{drawingRevision}.getMaterial().getMaterialNotes()]]></textFieldExpression>
</textField>
</frame>
</band>
</detail>
<pageFooter>
<band height="12" splitType="Stretch">
<textField isStretchWithOverflow="true">
<reportElement x="0" y="0" width="418" height="12"/>
<textElement>
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{releaseTimeStamp}+" Release ID: "+$F{drawingReleaseID}+" "+$F{company}.getCompanyName()]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="430" y="0" width="257" height="12"/>
<textElement>
<font size="8"/>
</textElement>
<text><![CDATA[This proprietary drawing shall not be shared without written permission.]]></text>
</staticText>
<textField>
<reportElement x="687" y="0" width="50" height="12"/>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="737" y="0" width="15" height="12"/>
<textElement>
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<summary>
<band height="554">
<printWhenExpression><![CDATA[!$F{drawingRevision}.getPartsList().isEmpty() || !$F{drawingRevision}.getProcesses().isEmpty() || !$F{drawingRevision}.getParameters().isEmpty()]]></printWhenExpression>
<frame>
<reportElement x="467" y="1" width="284" height="318">
<printWhenExpression><![CDATA[!$F{drawingRevision}.getParameters().isEmpty()]]></printWhenExpression>
</reportElement>
<box>
<pen lineWidth="0.25"/>
</box>
<rectangle radius="5">
<reportElement x="0" y="0" width="284" height="16" backcolor="#E1E3FC"/>
<graphicElement>
<pen lineWidth="0.0"/>
</graphicElement>
</rectangle>
<staticText>
<reportElement x="5" y="0" width="113" height="16"/>
<textElement>
<font size="12"/>
</textElement>
<text><![CDATA[Design Parameters]]></text>
</staticText>
<componentElement>
<reportElement x="0" y="16" width="284" height="13">
<property name="net.sf.jasperreports.export.headertoolbar.table.name" value="Parameters"/>
</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="DrawingRevisionParameters">
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{drawingRevision}.getParameters())]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="13" width="284">
<textField pattern="#,##0.####">
<reportElement x="0" y="0" width="50" height="12"/>
<textElement textAlignment="Right">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{parameter}.getParameterValue()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="54" y="0" width="72" height="12"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{parameter}.getParameterUnit().getUnitAbbr()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="132" y="0" width="150" height="12"/>
<textElement markup="rtf">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{parameter}.getSpecification().getSpecificationName()]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</frame>
<staticText>
<reportElement positionType="Float" x="560" y="319" width="100" height="30"/>
<text><![CDATA[Static Text]]></text>
</staticText>
</band>
</summary>
</jasperReport>
I've encountered this before and the fixes I did was.
Check the size of the detail band and make sure that the list of values generated can all fit into the same page. Reduce the size of the detail band to see the difference.
Another is hide bands that are not in use or empty. For example try hiding the Summary band by setting it's Print When Expression to Boolean.FALSE.
You can also go to Report Properties > Check off Ignore Pagination Property

How do I prevent a subreport from rendering over the top of other elements?

I have a master report that contains three sub-reports, named "vehicleListSubReport.jrxml", "locoSubreport.jrxml", and "crewSubreport.jrxml" Their datasources are the fields "vehicleReport", "locoReport" and "crewReport" respectively, which are all objects of type JRDataSource.
I am having a few problems, but I feel that they may have a single root cause, hence why I am asking about them all in the same question. Firstly, the code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version last-->
<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="X2010" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="25640552-4299-40b4-8655-a64e83b16458">
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/>
<style name="SubTitle" forecolor="#736343" fontName="Arial" fontSize="18"/>
<style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
<style name="Detail" fontName="Arial" fontSize="12"/>
<style name="Row" mode="Transparent">
<conditionalStyle>
<conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression>
<style backcolor="#E6DAC3"/>
</conditionalStyle>
</style>
<queryString>
<![CDATA[]]>
</queryString>
<field name="trainNumber" class="java.lang.String"/>
<field name="crewReport" class="net.sf.jasperreports.engine.JRDataSource"/>
<field name="trainType" class="java.lang.String"/>
<field name="origin" class="java.lang.String"/>
<field name="dangerousGoods" class="java.lang.Boolean">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="outOfGauge" class="java.lang.Boolean"/>
<field name="trainDate" class="java.util.Date"/>
<field name="approvedLength" class="java.lang.Integer"/>
<field name="destination" class="java.lang.String"/>
<field name="specialLoad" class="java.lang.Boolean"/>
<field name="submittedBy" class="java.lang.String"/>
<field name="phone" class="java.lang.String"/>
<field name="submittedAtDateTime" class="java.util.Date"/>
<field name="fax" class="java.lang.String"/>
<field name="numberOfVehicles" class="java.lang.Integer"/>
<field name="tonnesHauled" class="java.lang.String"/>
<field name="tonnesGross" class="java.lang.String"/>
<field name="totalLength" class="java.lang.Double"/>
<field name="locoReport" class="net.sf.jasperreports.engine.JRDataSource"/>
<field name="vehicleReport" class="net.sf.jasperreports.engine.JRDataSource"/>
<field name="railOperatorName" class="java.lang.String"/>
<field name="submitter" class="java.lang.String"/>
<field name="consistLocation" class="java.lang.String"/>
<group name="Group1">
<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/15)]]></groupExpression>
<groupFooter>
<band height="50" splitType="Stretch">
<printWhenExpression><![CDATA[$F{vehicleReport} != null]]></printWhenExpression>
</band>
</groupFooter>
</group>
<group name="Group2">
<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/5)]]></groupExpression>
<groupFooter>
<band height="107" splitType="Stretch"/>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="65" splitType="Stretch">
<staticText>
<reportElement style="Title" x="80" y="0" width="472" height="62" uuid="b89a83c9-c1a2-4ab6-85a2-88ba23795dd3"/>
<textElement verticalAlignment="Middle">
<font pdfFontName="Times-Roman"/>
</textElement>
<text><![CDATA[X20.10 Report]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="5" splitType="Stretch">
<line>
<reportElement positionType="FixRelativeToBottom" x="1" y="1" width="552" height="2" uuid="f93f01ef-7224-41b8-a330-380bec4336d6"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
</line>
</band>
</columnHeader>
<detail>
<band height="400" splitType="Stretch">
<staticText>
<reportElement x="0" y="120" width="90" height="20" uuid="20c60332-1cff-4218-bfce-57cec3e447dd"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Train Number:]]></text>
</staticText>
<subreport runToBottom="true">
<reportElement isPrintRepeatedValues="false" x="-20" y="220" width="595" height="45" uuid="4f24664e-5df0-4326-9b95-9939f93c48d4"/>
<dataSourceExpression><![CDATA[$F{crewReport}]]></dataSourceExpression>
<subreportExpression><![CDATA["crewSubreport.jasper"]]></subreportExpression>
</subreport>
<textField>
<reportElement x="90" y="120" width="90" height="20" uuid="110c9328-d33c-4c0a-86e5-7f4ebe669b4f"/>
<textFieldExpression><![CDATA[$F{trainNumber}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="90" width="554" height="30" uuid="efaedffc-7d27-40f0-acc1-71797d91472c"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center">
<font size="18"/>
</textElement>
<text><![CDATA[Train Details]]></text>
</staticText>
<staticText>
<reportElement x="0" y="140" width="90" height="20" uuid="91493735-ab12-4068-9583-9edbbac7ca35"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Train Type:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="160" width="90" height="20" uuid="a3e483b0-59c4-494c-ad36-1ea30eb4c5f5"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Origin]]></text>
</staticText>
<staticText>
<reportElement x="0" y="180" width="90" height="20" uuid="f5f23f73-3bdb-4b12-b9ec-d1946d1d249c"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Dangerous Goods:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="200" width="90" height="20" uuid="49aebc16-13db-4842-bb0f-23eac8f693a4"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Out of Gauge:]]></text>
</staticText>
<textField>
<reportElement x="90" y="140" width="90" height="20" uuid="ff7d87fc-1087-4edf-b1ed-454ff8ae94f8"/>
<textFieldExpression><![CDATA[$F{trainType}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="160" width="90" height="20" uuid="7f109b0f-f4f4-48af-9a13-909b766dbd3c"/>
<textFieldExpression><![CDATA[$F{origin}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="180" width="90" height="20" uuid="67f7fd28-1cee-402d-8a35-523058ab5061"/>
<textFieldExpression><![CDATA[$F{dangerousGoods} ? "Yes" : "No"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="200" width="90" height="20" uuid="82586e0e-b6a7-43cf-9b1f-a12612396909"/>
<textFieldExpression><![CDATA[$F{outOfGauge} ? "Yes" : "No"]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="280" y="120" width="100" height="20" uuid="94651700-a070-400e-a206-fd09170cf797"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Train Date:]]></text>
</staticText>
<textField pattern="dd/MM/yyyy">
<reportElement x="380" y="120" width="100" height="20" uuid="2ea29a18-1d85-4a23-b9f6-17459ceafe0d"/>
<textFieldExpression><![CDATA[$F{trainDate}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="280" y="140" width="100" height="20" uuid="3ffe5495-6b91-424b-b652-c48c72b39a8f"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Approved Length:]]></text>
</staticText>
<staticText>
<reportElement x="280" y="160" width="100" height="20" uuid="68bcc4c2-d6c0-426b-979c-c70bbd1c550c"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Destination:]]></text>
</staticText>
<staticText>
<reportElement x="280" y="180" width="100" height="20" uuid="83e83257-d581-4fdd-8955-ef281357aaae"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Special Load:]]></text>
</staticText>
<textField>
<reportElement x="380" y="140" width="100" height="20" uuid="0f1b2cf0-73a3-4106-904a-8a28b7717909"/>
<textFieldExpression><![CDATA[$F{approvedLength}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="380" y="160" width="100" height="20" uuid="7a006853-a10a-4759-889f-b9848a59d79b"/>
<textFieldExpression><![CDATA[$F{destination}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="380" y="180" width="100" height="20" uuid="521136d0-a51f-4ca1-bdce-6d0ed1cd5c76"/>
<textFieldExpression><![CDATA[$F{specialLoad} ? "Yes" : "No"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="50" width="90" height="20" uuid="36b52f46-6f49-4c75-88d0-27a221bc62ec"/>
<textFieldExpression><![CDATA[$F{submittedBy}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="50" width="90" height="20" uuid="2cad93ef-d94f-4479-93e7-7a232023dace"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Submitted By:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="70" width="90" height="20" uuid="90474202-ce8b-4657-bad1-71edc8557335"/>
<text><![CDATA[Phone:]]></text>
</staticText>
<textField>
<reportElement x="90" y="70" width="90" height="20" uuid="20d6f136-62e4-4332-9098-3355896ff4af"/>
<textFieldExpression><![CDATA[$F{phone}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
<reportElement x="380" y="50" width="174" height="20" uuid="540bcba3-93ee-4877-b5a8-6f58db7c7398"/>
<textFieldExpression><![CDATA[$F{submittedAtDateTime}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="280" y="50" width="100" height="20" uuid="957ce926-9636-4625-b91f-78ecd3b8a200"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Submitted At:]]></text>
</staticText>
<staticText>
<reportElement x="280" y="70" width="100" height="20" uuid="d8cf6e8b-9664-4012-b51d-6cdea49faf22"/>
<text><![CDATA[Fax:]]></text>
</staticText>
<textField>
<reportElement x="380" y="70" width="174" height="20" uuid="cc95ebda-f955-4eaf-9314-45e4a56c4fde"/>
<textFieldExpression><![CDATA[$F{fax}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="0" width="554" height="50" uuid="f7c297a9-e14e-44de-8769-5d483cfe4863"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Consist for " + $F{railOperatorName} + " submitted by " + $F{submitter} + "\nConsist Location: " + $F{consistLocation}]]></textFieldExpression>
</textField>
<subreport runToBottom="true">
<reportElement stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" x="50" y="330" width="130" height="20" uuid="4f470a33-ef93-425d-951e-e53642df7771"/>
<dataSourceExpression><![CDATA[$F{locoReport}]]></dataSourceExpression>
<subreportExpression><![CDATA["locoSubreport.jasper"]]></subreportExpression>
</subreport>
<textField pattern="#0.00#;(#0.00#-)">
<reportElement isPrintRepeatedValues="false" x="460" y="310" width="80" height="20" uuid="f182c7db-f00f-4107-bc33-93b30faf11a9"/>
<textFieldExpression><![CDATA[$F{totalLength}]]></textFieldExpression>
</textField>
<textField pattern="#0.00#;(#0.00#-)">
<reportElement isPrintRepeatedValues="false" x="280" y="310" width="80" height="20" uuid="c5f34099-ac0e-4634-9398-a96f93c052f6"/>
<textFieldExpression><![CDATA[$F{tonnesHauled}]]></textFieldExpression>
</textField>
<staticText>
<reportElement isPrintRepeatedValues="false" x="190" y="330" width="80" height="20" uuid="824478e7-fc00-4d16-8a39-6355baf4bc61"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Tonnes Gross:]]></text>
</staticText>
<staticText>
<reportElement isPrintRepeatedValues="false" x="190" y="310" width="80" height="20" uuid="e0bc266a-56f2-4246-bea6-f31c4718046d"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Tonnes Hauled:]]></text>
</staticText>
<textField pattern="#0.00#;(#0.00#-)">
<reportElement isPrintRepeatedValues="false" x="280" y="330" width="80" height="20" uuid="74e9ef61-e6e0-45fa-9966-9950c2f5a1e0"/>
<textFieldExpression><![CDATA[$F{tonnesGross}]]></textFieldExpression>
</textField>
<textField>
<reportElement isPrintRepeatedValues="false" x="100" y="310" width="80" height="20" uuid="86833b59-3fe2-4c50-8d8e-18d80e082f75"/>
<textFieldExpression><![CDATA[$F{numberOfVehicles}]]></textFieldExpression>
</textField>
<staticText>
<reportElement isPrintRepeatedValues="false" x="0" y="330" width="40" height="20" uuid="c08f0b3c-0ddf-4cbb-b377-1f48b80fa383"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Locos:]]></text>
</staticText>
<staticText>
<reportElement isPrintRepeatedValues="false" x="0" y="310" width="90" height="20" uuid="6a4a5d4b-5762-45d2-b54f-2167af8da5f8"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Number Vehicles:]]></text>
</staticText>
<staticText>
<reportElement isPrintRepeatedValues="false" x="1" y="270" width="551" height="35" uuid="53e5c946-8e6d-44fa-8715-f193d224b489"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center">
<font size="18"/>
</textElement>
<text><![CDATA[Train Summary]]></text>
</staticText>
<staticText>
<reportElement isPrintRepeatedValues="false" x="370" y="310" width="80" height="20" uuid="31012f66-602d-4892-82f4-d1187915046e"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Total Length:]]></text>
</staticText>
<subreport runToBottom="true">
<reportElement stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" x="-20" y="360" width="595" height="20" printWhenGroupChanges="Group1" uuid="8e2dbcb5-3c3f-4bb5-a606-39f6f2e8656a"/>
<dataSourceExpression><![CDATA[$F{vehicleReport}]]></dataSourceExpression>
<subreportExpression><![CDATA["vehicleListSubreport.jasper"]]></subreportExpression>
</subreport>
</band>
</detail>
<columnFooter>
<band height="6" splitType="Stretch">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="0" width="554" height="2" uuid="447d20b2-f65e-42ee-b2a8-69632882c668"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
</line>
</band>
</columnFooter>
<pageFooter>
<band height="25" splitType="Stretch">
<frame>
<reportElement mode="Opaque" x="-21" y="1" width="597" height="24" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="24b6cb4b-7cad-4abd-a159-cc5cc11896db"/>
<textField evaluationTime="Report">
<reportElement style="Column header" x="533" y="0" width="40" height="20" forecolor="#736343" uuid="5463547b-d0a6-440d-baa9-9b1dcce760bf"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Column header" x="453" y="0" width="80" height="20" forecolor="#736343" uuid="17310c63-a8e1-4f36-aad6-1b37346d27f6"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
</textField>
<textField pattern="EEEEE dd MMMMM yyyy">
<reportElement style="Column header" x="22" y="1" width="197" height="20" forecolor="#736343" uuid="340aeee4-0582-45c2-9fbf-f1250cba3f8a"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</frame>
</band>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>
</jasperReport>
First problem: The crewSubreport has other report elements below it, including the other two sub-reports. If there are multiple records in this sub-report, it renders on top of the elements below it, including the other sub-reports.
Second problem: The data text fields below the crewSubreport are rendering (although with the subreport rendering on top of them), however, the static text boxes with the labels "Train Summary", "Number Vehicles:", "Tonnes Hauled:", "Total Length:", "Locos:", and "Tonnes Gross:" are not rendering, and I not yet able to determine why.
Third problem: Similar to the first problem, the locoSubreport is rendering into the space occupied by the vehicleListSubreport.
How do I fix these issues?
EDIT: Posting the following to illustrate the issues I'm having with the only answer so far:
In the memory usage and CPU usage graphs, the small peaks on the left are me running the report I designed. The rest of the graph after that is what happens when I run the report designed in the answer. It continues like this until the garbage collector seems to give up and kills the thread. Generating this report is the only thing the program is doing at this time. Using the VisualVM to force the JVM to perform a full garbage collection does not reclaim any memory. It would appear to me that there is a problem in Jasper Reports when using positionType="Float", and I need a solution that does not trigger this problem.
Try this code (everything belove first sub report is in a frame so it might be less cpu intensive to move them all together):
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version last-->
<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="X2010" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="25640552-4299-40b4-8655-a64e83b16458">
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/>
<style name="SubTitle" forecolor="#736343" fontName="Arial" fontSize="18"/>
<style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
<style name="Detail" fontName="Arial" fontSize="12"/>
<style name="Row" mode="Transparent">
<conditionalStyle>
<conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression>
<style backcolor="#E6DAC3"/>
</conditionalStyle>
</style>
<queryString>
<![CDATA[]]>
</queryString>
<field name="trainNumber" class="java.lang.String"/>
<field name="crewReport" class="net.sf.jasperreports.engine.JRDataSource"/>
<field name="trainType" class="java.lang.String"/>
<field name="origin" class="java.lang.String"/>
<field name="dangerousGoods" class="java.lang.Boolean">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="outOfGauge" class="java.lang.Boolean"/>
<field name="trainDate" class="java.util.Date"/>
<field name="approvedLength" class="java.lang.Integer"/>
<field name="destination" class="java.lang.String"/>
<field name="specialLoad" class="java.lang.Boolean"/>
<field name="submittedBy" class="java.lang.String"/>
<field name="phone" class="java.lang.String"/>
<field name="submittedAtDateTime" class="java.util.Date"/>
<field name="fax" class="java.lang.String"/>
<field name="numberOfVehicles" class="java.lang.Integer"/>
<field name="tonnesHauled" class="java.lang.String"/>
<field name="tonnesGross" class="java.lang.String"/>
<field name="totalLength" class="java.lang.Double"/>
<field name="locoReport" class="net.sf.jasperreports.engine.JRDataSource"/>
<field name="vehicleReport" class="net.sf.jasperreports.engine.JRDataSource"/>
<field name="railOperatorName" class="java.lang.String"/>
<field name="submitter" class="java.lang.String"/>
<field name="consistLocation" class="java.lang.String"/>
<group name="Group1">
<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/15)]]></groupExpression>
<groupFooter>
<band height="50" splitType="Stretch">
<printWhenExpression><![CDATA[$F{vehicleReport} != null]]></printWhenExpression>
</band>
</groupFooter>
</group>
<group name="Group2">
<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/5)]]></groupExpression>
<groupFooter>
<band height="107" splitType="Stretch"/>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="65" splitType="Stretch">
<staticText>
<reportElement style="Title" x="80" y="0" width="472" height="62" uuid="b89a83c9-c1a2-4ab6-85a2-88ba23795dd3"/>
<textElement verticalAlignment="Middle">
<font pdfFontName="Times-Roman"/>
</textElement>
<text><![CDATA[X20.10 Report]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="5" splitType="Stretch">
<line>
<reportElement positionType="FixRelativeToBottom" x="1" y="1" width="552" height="2" uuid="f93f01ef-7224-41b8-a330-380bec4336d6"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
</line>
</band>
</columnHeader>
<detail>
<band height="400" splitType="Stretch">
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<staticText>
<reportElement x="0" y="120" width="90" height="20" uuid="20c60332-1cff-4218-bfce-57cec3e447dd"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Train Number:]]></text>
</staticText>
<subreport runToBottom="true">
<reportElement isPrintRepeatedValues="false" x="-20" y="220" width="595" height="45" uuid="4f24664e-5df0-4326-9b95-9939f93c48d4"/>
<dataSourceExpression><![CDATA[$F{crewReport}]]></dataSourceExpression>
<subreportExpression><![CDATA["crewSubreport.jasper"]]></subreportExpression>
</subreport>
<textField>
<reportElement x="90" y="120" width="90" height="20" uuid="110c9328-d33c-4c0a-86e5-7f4ebe669b4f"/>
<textFieldExpression><![CDATA[$F{trainNumber}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="90" width="554" height="30" uuid="efaedffc-7d27-40f0-acc1-71797d91472c"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center">
<font size="18"/>
</textElement>
<text><![CDATA[Train Details]]></text>
</staticText>
<staticText>
<reportElement x="0" y="140" width="90" height="20" uuid="91493735-ab12-4068-9583-9edbbac7ca35"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Train Type:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="160" width="90" height="20" uuid="a3e483b0-59c4-494c-ad36-1ea30eb4c5f5"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Origin]]></text>
</staticText>
<staticText>
<reportElement x="0" y="180" width="90" height="20" uuid="f5f23f73-3bdb-4b12-b9ec-d1946d1d249c"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Dangerous Goods:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="200" width="90" height="20" uuid="49aebc16-13db-4842-bb0f-23eac8f693a4"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Out of Gauge:]]></text>
</staticText>
<textField>
<reportElement x="90" y="140" width="90" height="20" uuid="ff7d87fc-1087-4edf-b1ed-454ff8ae94f8"/>
<textFieldExpression><![CDATA[$F{trainType}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="160" width="90" height="20" uuid="7f109b0f-f4f4-48af-9a13-909b766dbd3c"/>
<textFieldExpression><![CDATA[$F{origin}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="180" width="90" height="20" uuid="67f7fd28-1cee-402d-8a35-523058ab5061"/>
<textFieldExpression><![CDATA[$F{dangerousGoods} ? "Yes" : "No"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="200" width="90" height="20" uuid="82586e0e-b6a7-43cf-9b1f-a12612396909"/>
<textFieldExpression><![CDATA[$F{outOfGauge} ? "Yes" : "No"]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="280" y="120" width="100" height="20" uuid="94651700-a070-400e-a206-fd09170cf797"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Train Date:]]></text>
</staticText>
<textField pattern="dd/MM/yyyy">
<reportElement x="380" y="120" width="100" height="20" uuid="2ea29a18-1d85-4a23-b9f6-17459ceafe0d"/>
<textFieldExpression><![CDATA[$F{trainDate}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="280" y="140" width="100" height="20" uuid="3ffe5495-6b91-424b-b652-c48c72b39a8f"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Approved Length:]]></text>
</staticText>
<staticText>
<reportElement x="280" y="160" width="100" height="20" uuid="68bcc4c2-d6c0-426b-979c-c70bbd1c550c"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Destination:]]></text>
</staticText>
<staticText>
<reportElement x="280" y="180" width="100" height="20" uuid="83e83257-d581-4fdd-8955-ef281357aaae"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Special Load:]]></text>
</staticText>
<textField>
<reportElement x="380" y="140" width="100" height="20" uuid="0f1b2cf0-73a3-4106-904a-8a28b7717909"/>
<textFieldExpression><![CDATA[$F{approvedLength}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="380" y="160" width="100" height="20" uuid="7a006853-a10a-4759-889f-b9848a59d79b"/>
<textFieldExpression><![CDATA[$F{destination}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="380" y="180" width="100" height="20" uuid="521136d0-a51f-4ca1-bdce-6d0ed1cd5c76"/>
<textFieldExpression><![CDATA[$F{specialLoad} ? "Yes" : "No"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="50" width="90" height="20" uuid="36b52f46-6f49-4c75-88d0-27a221bc62ec"/>
<textFieldExpression><![CDATA[$F{submittedBy}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="50" width="90" height="20" uuid="2cad93ef-d94f-4479-93e7-7a232023dace"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Submitted By:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="70" width="90" height="20" uuid="90474202-ce8b-4657-bad1-71edc8557335"/>
<text><![CDATA[Phone:]]></text>
</staticText>
<textField>
<reportElement x="90" y="70" width="90" height="20" uuid="20d6f136-62e4-4332-9098-3355896ff4af"/>
<textFieldExpression><![CDATA[$F{phone}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
<reportElement x="380" y="50" width="174" height="20" uuid="540bcba3-93ee-4877-b5a8-6f58db7c7398"/>
<textFieldExpression><![CDATA[$F{submittedAtDateTime}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="280" y="50" width="100" height="20" uuid="957ce926-9636-4625-b91f-78ecd3b8a200"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Submitted At:]]></text>
</staticText>
<staticText>
<reportElement x="280" y="70" width="100" height="20" uuid="d8cf6e8b-9664-4012-b51d-6cdea49faf22"/>
<text><![CDATA[Fax:]]></text>
</staticText>
<textField>
<reportElement x="380" y="70" width="174" height="20" uuid="cc95ebda-f955-4eaf-9314-45e4a56c4fde"/>
<textFieldExpression><![CDATA[$F{fax}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="0" width="554" height="50" uuid="f7c297a9-e14e-44de-8769-5d483cfe4863"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Consist for " + $F{railOperatorName} + " submitted by " + $F{submitter} + "\nConsist Location: " + $F{consistLocation}]]></textFieldExpression>
</textField>
<frame>
<reportElement positionType="Float" x="-20" y="270" width="596" height="110" uuid="18015311-a28e-4eee-9051-45b1790d24f7">
<property name="local_mesure_unitx" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<subreport runToBottom="true">
<reportElement stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" x="50" y="60" width="130" height="20" uuid="4f470a33-ef93-425d-951e-e53642df7771">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<dataSourceExpression><![CDATA[$F{locoReport}]]></dataSourceExpression>
<subreportExpression><![CDATA["locoSubreport.jasper"]]></subreportExpression>
</subreport>
<textField pattern="#0.00#;(#0.00#-)">
<reportElement isPrintRepeatedValues="false" x="460" y="40" width="80" height="20" uuid="f182c7db-f00f-4107-bc33-93b30faf11a9">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{totalLength}]]></textFieldExpression>
</textField>
<textField pattern="#0.00#;(#0.00#-)">
<reportElement isPrintRepeatedValues="false" x="280" y="40" width="80" height="20" uuid="c5f34099-ac0e-4634-9398-a96f93c052f6">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{tonnesHauled}]]></textFieldExpression>
</textField>
<staticText>
<reportElement isPrintRepeatedValues="false" x="190" y="60" width="80" height="20" uuid="824478e7-fc00-4d16-8a39-6355baf4bc61">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Tonnes Gross:]]></text>
</staticText>
<staticText>
<reportElement isPrintRepeatedValues="false" x="190" y="40" width="80" height="20" uuid="e0bc266a-56f2-4246-bea6-f31c4718046d">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Tonnes Hauled:]]></text>
</staticText>
<textField pattern="#0.00#;(#0.00#-)">
<reportElement isPrintRepeatedValues="false" x="280" y="60" width="80" height="20" uuid="74e9ef61-e6e0-45fa-9966-9950c2f5a1e0">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{tonnesGross}]]></textFieldExpression>
</textField>
<textField>
<reportElement isPrintRepeatedValues="false" x="100" y="40" width="80" height="20" uuid="86833b59-3fe2-4c50-8d8e-18d80e082f75">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{numberOfVehicles}]]></textFieldExpression>
</textField>
<staticText>
<reportElement isPrintRepeatedValues="false" x="0" y="60" width="40" height="20" uuid="c08f0b3c-0ddf-4cbb-b377-1f48b80fa383">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Locos:]]></text>
</staticText>
<staticText>
<reportElement isPrintRepeatedValues="false" x="0" y="40" width="90" height="20" uuid="6a4a5d4b-5762-45d2-b54f-2167af8da5f8">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Number Vehicles:]]></text>
</staticText>
<staticText>
<reportElement isPrintRepeatedValues="false" x="1" y="0" width="551" height="35" uuid="53e5c946-8e6d-44fa-8715-f193d224b489">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center">
<font size="18"/>
</textElement>
<text><![CDATA[Train Summary]]></text>
</staticText>
<staticText>
<reportElement isPrintRepeatedValues="false" x="370" y="40" width="80" height="20" uuid="31012f66-602d-4892-82f4-d1187915046e">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Total Length:]]></text>
</staticText>
<subreport runToBottom="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" x="0" y="90" width="595" height="20" printWhenGroupChanges="Group1" uuid="8e2dbcb5-3c3f-4bb5-a606-39f6f2e8656a">
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="local_mesure_unitx" value="pixel"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<dataSourceExpression><![CDATA[$F{vehicleReport}]]></dataSourceExpression>
<subreportExpression><![CDATA["vehicleListSubreport.jasper"]]></subreportExpression>
</subreport>
</frame>
</band>
</detail>
<columnFooter>
<band height="6" splitType="Stretch">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="0" width="554" height="2" uuid="447d20b2-f65e-42ee-b2a8-69632882c668"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
</line>
</band>
</columnFooter>
<pageFooter>
<band height="25" splitType="Stretch">
<frame>
<reportElement mode="Opaque" x="-21" y="1" width="597" height="24" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="24b6cb4b-7cad-4abd-a159-cc5cc11896db"/>
<textField evaluationTime="Report">
<reportElement style="Column header" x="533" y="0" width="40" height="20" forecolor="#736343" uuid="5463547b-d0a6-440d-baa9-9b1dcce760bf"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Column header" x="453" y="0" width="80" height="20" forecolor="#736343" uuid="17310c63-a8e1-4f36-aad6-1b37346d27f6"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
</textField>
<textField pattern="EEEEE dd MMMMM yyyy">
<reportElement style="Column header" x="22" y="1" width="197" height="20" forecolor="#736343" uuid="340aeee4-0582-45c2-9fbf-f1250cba3f8a"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</frame>
</band>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>
</jasperReport>
Try this code.
<?xml version="1.0" encoding="UTF-8"?>
<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="X2010" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="25640552-4299-40b4-8655-a64e83b16458">
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/>
<style name="SubTitle" forecolor="#736343" fontName="Arial" fontSize="18"/>
<style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
<style name="Detail" fontName="Arial" fontSize="12"/>
<style name="Row" mode="Transparent">
<conditionalStyle>
<conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression>
<style backcolor="#E6DAC3"/>
</conditionalStyle>
</style>
<queryString>
<![CDATA[]]>
</queryString>
<field name="trainNumber" class="java.lang.String"/>
<field name="crewReport" class="net.sf.jasperreports.engine.JRDataSource"/>
<field name="trainType" class="java.lang.String"/>
<field name="origin" class="java.lang.String"/>
<field name="dangerousGoods" class="java.lang.Boolean">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="outOfGauge" class="java.lang.Boolean"/>
<field name="trainDate" class="java.util.Date"/>
<field name="approvedLength" class="java.lang.Integer"/>
<field name="destination" class="java.lang.String"/>
<field name="specialLoad" class="java.lang.Boolean"/>
<field name="submittedBy" class="java.lang.String"/>
<field name="phone" class="java.lang.String"/>
<field name="submittedAtDateTime" class="java.util.Date"/>
<field name="fax" class="java.lang.String"/>
<field name="numberOfVehicles" class="java.lang.Integer"/>
<field name="tonnesHauled" class="java.lang.String"/>
<field name="tonnesGross" class="java.lang.String"/>
<field name="totalLength" class="java.lang.Double"/>
<field name="locoReport" class="net.sf.jasperreports.engine.JRDataSource"/>
<field name="vehicleReport" class="net.sf.jasperreports.engine.JRDataSource"/>
<field name="railOperatorName" class="java.lang.String"/>
<field name="submitter" class="java.lang.String"/>
<field name="consistLocation" class="java.lang.String"/>
<group name="Group1">
<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/15)]]></groupExpression>
<groupFooter>
<band height="50" splitType="Stretch">
<printWhenExpression><![CDATA[$F{vehicleReport} != null]]></printWhenExpression>
</band>
</groupFooter>
</group>
<group name="Group2">
<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/5)]]></groupExpression>
<groupFooter>
<band height="107" splitType="Stretch"/>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="65" splitType="Stretch">
<staticText>
<reportElement style="Title" x="80" y="0" width="472" height="62" uuid="b89a83c9-c1a2-4ab6-85a2-88ba23795dd3"/>
<textElement verticalAlignment="Middle">
<font pdfFontName="Times-Roman"/>
</textElement>
<text><![CDATA[X20.10 Report]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="5" splitType="Stretch">
<line>
<reportElement positionType="FixRelativeToBottom" x="1" y="1" width="552" height="2" uuid="f93f01ef-7224-41b8-a330-380bec4336d6"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
</line>
</band>
</columnHeader>
<detail>
<band height="400" splitType="Stretch">
<staticText>
<reportElement x="0" y="120" width="90" height="20" uuid="20c60332-1cff-4218-bfce-57cec3e447dd"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Train Number:]]></text>
</staticText>
<subreport runToBottom="true">
<reportElement isPrintRepeatedValues="false" x="-20" y="220" width="595" height="45" uuid="4f24664e-5df0-4326-9b95-9939f93c48d4"/>
<dataSourceExpression><![CDATA[$F{crewReport}]]></dataSourceExpression>
<subreportExpression><![CDATA["crewSubreport.jasper"]]></subreportExpression>
</subreport>
<textField>
<reportElement x="90" y="120" width="90" height="20" uuid="110c9328-d33c-4c0a-86e5-7f4ebe669b4f"/>
<textFieldExpression><![CDATA[$F{trainNumber}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="90" width="554" height="30" uuid="efaedffc-7d27-40f0-acc1-71797d91472c"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center">
<font size="18"/>
</textElement>
<text><![CDATA[Train Details]]></text>
</staticText>
<staticText>
<reportElement x="0" y="140" width="90" height="20" uuid="91493735-ab12-4068-9583-9edbbac7ca35"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Train Type:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="160" width="90" height="20" uuid="a3e483b0-59c4-494c-ad36-1ea30eb4c5f5"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Origin]]></text>
</staticText>
<staticText>
<reportElement x="0" y="180" width="90" height="20" uuid="f5f23f73-3bdb-4b12-b9ec-d1946d1d249c"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Dangerous Goods:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="200" width="90" height="20" uuid="49aebc16-13db-4842-bb0f-23eac8f693a4"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Out of Gauge:]]></text>
</staticText>
<textField>
<reportElement x="90" y="140" width="90" height="20" uuid="ff7d87fc-1087-4edf-b1ed-454ff8ae94f8"/>
<textFieldExpression><![CDATA[$F{trainType}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="160" width="90" height="20" uuid="7f109b0f-f4f4-48af-9a13-909b766dbd3c"/>
<textFieldExpression><![CDATA[$F{origin}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="180" width="90" height="20" uuid="67f7fd28-1cee-402d-8a35-523058ab5061"/>
<textFieldExpression><![CDATA[$F{dangerousGoods} ? "Yes" : "No"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="200" width="90" height="20" uuid="82586e0e-b6a7-43cf-9b1f-a12612396909"/>
<textFieldExpression><![CDATA[$F{outOfGauge} ? "Yes" : "No"]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="280" y="120" width="100" height="20" uuid="94651700-a070-400e-a206-fd09170cf797"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Train Date:]]></text>
</staticText>
<textField pattern="dd/MM/yyyy">
<reportElement x="380" y="120" width="100" height="20" uuid="2ea29a18-1d85-4a23-b9f6-17459ceafe0d"/>
<textFieldExpression><![CDATA[$F{trainDate}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="280" y="140" width="100" height="20" uuid="3ffe5495-6b91-424b-b652-c48c72b39a8f"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Approved Length:]]></text>
</staticText>
<staticText>
<reportElement x="280" y="160" width="100" height="20" uuid="68bcc4c2-d6c0-426b-979c-c70bbd1c550c"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Destination:]]></text>
</staticText>
<staticText>
<reportElement x="280" y="180" width="100" height="20" uuid="83e83257-d581-4fdd-8955-ef281357aaae"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Special Load:]]></text>
</staticText>
<textField>
<reportElement x="380" y="140" width="100" height="20" uuid="0f1b2cf0-73a3-4106-904a-8a28b7717909"/>
<textFieldExpression><![CDATA[$F{approvedLength}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="380" y="160" width="100" height="20" uuid="7a006853-a10a-4759-889f-b9848a59d79b"/>
<textFieldExpression><![CDATA[$F{destination}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="380" y="180" width="100" height="20" uuid="521136d0-a51f-4ca1-bdce-6d0ed1cd5c76"/>
<textFieldExpression><![CDATA[$F{specialLoad} ? "Yes" : "No"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="50" width="90" height="20" uuid="36b52f46-6f49-4c75-88d0-27a221bc62ec"/>
<textFieldExpression><![CDATA[$F{submittedBy}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="50" width="90" height="20" uuid="2cad93ef-d94f-4479-93e7-7a232023dace"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Submitted By:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="70" width="90" height="20" uuid="90474202-ce8b-4657-bad1-71edc8557335"/>
<text><![CDATA[Phone:]]></text>
</staticText>
<textField>
<reportElement x="90" y="70" width="90" height="20" uuid="20d6f136-62e4-4332-9098-3355896ff4af"/>
<textFieldExpression><![CDATA[$F{phone}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
<reportElement x="380" y="50" width="174" height="20" uuid="540bcba3-93ee-4877-b5a8-6f58db7c7398"/>
<textFieldExpression><![CDATA[$F{submittedAtDateTime}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="280" y="50" width="100" height="20" uuid="957ce926-9636-4625-b91f-78ecd3b8a200"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Submitted At:]]></text>
</staticText>
<staticText>
<reportElement x="280" y="70" width="100" height="20" uuid="d8cf6e8b-9664-4012-b51d-6cdea49faf22"/>
<text><![CDATA[Fax:]]></text>
</staticText>
<textField>
<reportElement x="380" y="70" width="174" height="20" uuid="cc95ebda-f955-4eaf-9314-45e4a56c4fde"/>
<textFieldExpression><![CDATA[$F{fax}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="0" width="554" height="50" uuid="f7c297a9-e14e-44de-8769-5d483cfe4863"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Consist for " + $F{railOperatorName} + " submitted by " + $F{submitter} + "\nConsist Location: " + $F{consistLocation}]]></textFieldExpression>
</textField>
<subreport runToBottom="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" x="50" y="330" width="130" height="20" uuid="4f470a33-ef93-425d-951e-e53642df7771"/>
<dataSourceExpression><![CDATA[$F{locoReport}]]></dataSourceExpression>
<subreportExpression><![CDATA["locoSubreport.jasper"]]></subreportExpression>
</subreport>
<textField pattern="#0.00#;(#0.00#-)">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="460" y="310" width="80" height="20" uuid="f182c7db-f00f-4107-bc33-93b30faf11a9"/>
<textFieldExpression><![CDATA[$F{totalLength}]]></textFieldExpression>
</textField>
<textField pattern="#0.00#;(#0.00#-)">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="280" y="310" width="80" height="20" uuid="c5f34099-ac0e-4634-9398-a96f93c052f6"/>
<textFieldExpression><![CDATA[$F{tonnesHauled}]]></textFieldExpression>
</textField>
<staticText>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="190" y="330" width="80" height="20" uuid="824478e7-fc00-4d16-8a39-6355baf4bc61"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Tonnes Gross:]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="190" y="310" width="80" height="20" uuid="e0bc266a-56f2-4246-bea6-f31c4718046d"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Tonnes Hauled:]]></text>
</staticText>
<textField pattern="#0.00#;(#0.00#-)">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="280" y="330" width="80" height="20" uuid="74e9ef61-e6e0-45fa-9966-9950c2f5a1e0"/>
<textFieldExpression><![CDATA[$F{tonnesGross}]]></textFieldExpression>
</textField>
<textField>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="100" y="310" width="80" height="20" uuid="86833b59-3fe2-4c50-8d8e-18d80e082f75"/>
<textFieldExpression><![CDATA[$F{numberOfVehicles}]]></textFieldExpression>
</textField>
<staticText>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="330" width="40" height="20" uuid="c08f0b3c-0ddf-4cbb-b377-1f48b80fa383"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Locos:]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="310" width="90" height="20" uuid="6a4a5d4b-5762-45d2-b54f-2167af8da5f8"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Number Vehicles:]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="1" y="270" width="551" height="35" uuid="53e5c946-8e6d-44fa-8715-f193d224b489"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center">
<font size="18"/>
</textElement>
<text><![CDATA[Train Summary]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="370" y="310" width="80" height="20" uuid="31012f66-602d-4892-82f4-d1187915046e"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Total Length:]]></text>
</staticText>
<subreport runToBottom="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" x="-20" y="360" width="595" height="20" printWhenGroupChanges="Group1" uuid="8e2dbcb5-3c3f-4bb5-a606-39f6f2e8656a"/>
<dataSourceExpression><![CDATA[$F{vehicleReport}]]></dataSourceExpression>
<subreportExpression><![CDATA["vehicleListSubreport.jasper"]]></subreportExpression>
</subreport>
</band>
</detail>
<columnFooter>
<band height="6" splitType="Stretch">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="0" width="554" height="2" uuid="447d20b2-f65e-42ee-b2a8-69632882c668"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
</line>
</band>
</columnFooter>
<pageFooter>
<band height="25" splitType="Stretch">
<frame>
<reportElement mode="Opaque" x="-21" y="1" width="597" height="24" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="24b6cb4b-7cad-4abd-a159-cc5cc11896db"/>
<textField evaluationTime="Report">
<reportElement style="Column header" x="533" y="0" width="40" height="20" forecolor="#736343" uuid="5463547b-d0a6-440d-baa9-9b1dcce760bf"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Column header" x="453" y="0" width="80" height="20" forecolor="#736343" uuid="17310c63-a8e1-4f36-aad6-1b37346d27f6"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
</textField>
<textField pattern="EEEEE dd MMMMM yyyy">
<reportElement style="Column header" x="22" y="1" width="197" height="20" forecolor="#736343" uuid="340aeee4-0582-45c2-9fbf-f1250cba3f8a"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</frame>
</band>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>
</jasperReport>