net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error retrieving field value from bean: [duplicate] - jasper-reports

This question already has answers here:
Error retrieving field value from bean
(2 answers)
net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : First_name
(3 answers)
Closed 7 months ago.
I want to generate a report and it's throwing an error that I don't know how to solve. The report is generated by the following .jrxml:
<?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="informeAIRe" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="03b7db3d-afd7-4f64-8a72-cf3d16f56c48">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<subDataset name="listaProyectosActivosPorPaisDataSet" uuid="5bbf5724-71a4-46c0-b3a8-591adffb4eed">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="obtenerPdfInforme"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="desProyectoI18n" class="java.lang.String"/>
<field name="desProyecto" class="java.lang.String"/>
<field name="lstEstacionesProyecto" class="java.util.List"/>
<field name="lstEstacionesProyectoDataSource" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource"/>
<field name="desIntroProyectoI18n" class="java.lang.String"/>
<field name="desIntroAnemometrosEstacionesI18n" class="java.lang.String"/>
<field name="lstAnemometrosEstaciones" class="java.util.List"/>
<field name="lstAnemometrosEstacionesDataSource" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource"/>
<field name="lstAnyosGrafica" class="java.util.List"/>
<field name="lstAnyosGraficaDataSource" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource"/>
<field name="desIntroGraficaI18n" class="java.lang.String"/>
</subDataset>
<subDataset name="lstEstacionesProyectoDataSet" uuid="4b8e6f89-333d-4efd-a553-6ae182a4f7f5">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="obtenerPdfInforme"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="desAlias" class="java.lang.String"/>
</subDataset>
<subDataset name="lstAnemometrosEstacionesDataSource" uuid="3b9c85b4-8078-4829-8f9b-f59b9194b947">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="obtenerPdfInforme"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="desAliasYAlturaI18N" class="java.lang.String"/>
</subDataset>
<subDataset name="lstAnyosGraficaDataset" uuid="6cebee6e-125a-4594-be99-2e86ad01bd8c">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="obtenerPdfInforme"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="anio" class="java.lang.Integer"/>
<field name="lstDatosMensualesEstacion" class="java.util.List"/>
<field name="lstDatosMensualesEstacionDataSource" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
</subDataset>
<subDataset name="lstDatosMensualesEstacionDataSet" uuid="5476630d-7dab-485b-8808-37eae486a627">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="obtenerPdfInforme"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="fechaDesde" class="java.lang.String"/>
<field name="fechaHasta" class="java.lang.String"/>
<field name="valor" class="java.lang.String"/>
<field name="desAlias" class="java.lang.String"/>
</subDataset>
<field name="tituloInforme" class="java.lang.String"/>
<field name="instalaciones" class="java.lang.String"/>
<field name="desinstalaciones" class="java.lang.String"/>
<field name="mantenimientos" class="java.lang.String"/>
<field name="tituloVelocidadMedia" class="java.lang.String"/>
<field name="resumenVelocidadMedia" class="java.lang.String"/>
<field name="tituloResumen" class="java.lang.String"/>
<field name="tituloGrafica" class="java.lang.String"/>
<field name="listaVelocidadMedia" class="java.lang.Object"/>
<field name="listaGraficaVelocidadMedia" class="java.util.List">
<fieldDescription><![CDATA[listaGraficaVelocidadMedia]]></fieldDescription>
</field>
<field name="incidencias" class="java.lang.String"/>
<field name="labelX" class="java.lang.String"/>
<field name="labelY" class="java.lang.String"/>
<field name="minGraficaStr" class="java.lang.String"/>
<field name="maxGraficaStr" class="java.lang.String"/>
<field name="maxGrafica" class="java.lang.Double"/>
<field name="minGrafica" class="java.lang.Double"/>
<field name="listaProyectosActivosPorPais" class="java.util.List"/>
<field name="listaProyectosActivosPorPaisDataSource" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource"/>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="53">
<image>
<reportElement x="500" y="22" width="55" height="18" uuid="2adf779f-58e3-4783-a6af-d0ddf3552646"/>
<imageExpression><![CDATA["/img/informeMail/aire.png"]]></imageExpression>
</image>
<image>
<reportElement x="0" y="1" width="110" height="44" uuid="a0d75635-60c3-4bed-9193-089479653974"/>
<imageExpression><![CDATA["/img/informeMail/iberdrola.png"]]></imageExpression>
</image>
<line>
<reportElement x="0" y="46" width="555" height="1" uuid="c16d9a6f-ff68-4553-b1ff-42a7e1652df4">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<graphicElement>
<pen lineWidth="2.0" lineColor="#8ABD37"/>
</graphicElement>
</line>
</band>
</pageHeader>
<detail>
<band height="233" splitType="Stretch">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<textField>
<reportElement x="0" y="13" width="554" height="20" uuid="8b0ba726-a206-4097-9d24-05bce4fba361"/>
<textElement>
<font fontName="Calibri" size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{tituloInforme}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="37" width="280" height="20" uuid="ab9a4730-53df-495f-97fb-3b038d73e950"/>
<textElement>
<font fontName="Calibri" size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{tituloResumen}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="19" y="58" width="536" height="20" uuid="66502d86-1953-4728-8ebe-aa7fb6a09d94"/>
<textElement>
<font fontName="Calibri" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{instalaciones}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="19" y="78" width="536" height="20" uuid="91ec850b-370d-40c7-8161-68fcc6ef1e72"/>
<textElement>
<font fontName="Calibri" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{desinstalaciones}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="19" y="98" width="536" height="20" uuid="5caf75e5-b446-4be6-ab0b-e5f96b0e94bd"/>
<textElement>
<font fontName="Calibri" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{mantenimientos}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="137" width="554" height="20" uuid="0c5bef77-3ec3-4a62-8817-185b13132d60">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="7e39e3e7-ec4b-42e8-9704-e7e4a987beb1"/>
</reportElement>
<textElement>
<font fontName="Calibri" size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{tituloVelocidadMedia}]]></textFieldExpression>
</textField>
<textField textAdjust="StretchHeight">
<reportElement x="10" y="161" width="544" height="35" uuid="497cea97-bbba-47e2-b37e-a6ebbc6355b4">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="836a5a66-ba53-47fb-af73-8b412aaf2814"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="Calibri" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{resumenVelocidadMedia}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="10" y="198" width="544" height="30" uuid="646a8a82-2c3b-4828-92eb-d9a70636de3d">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="c615cee3-4234-492b-9712-ea16edc8fa59"/>
</reportElement>
<textElement>
<font fontName="Calibri" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{tituloGrafica}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="19" y="119" width="536" height="18" uuid="8821c075-e00f-4e7b-ae1b-d8291a445567"/>
<textElement>
<font fontName="Calibri" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{incidencias}]]></textFieldExpression>
</textField>
</band>
<band height="400">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<lineChart>
<chart evaluationTime="Report">
<reportElement x="0" y="0" width="555" height="400" uuid="8bff1265-b471-4e53-b21d-7cc6b411b059">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<chartTitle/>
<chartSubtitle/>
<chartLegend/>
</chart>
<categoryDataset>
<dataset resetType="Report">
<datasetRun subDataset="Dataset2" uuid="c6803ced-c454-49e4-bfd2-daa2330b6c91">
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{listaGraficaVelocidadMedia})]]></dataSourceExpression>
</datasetRun>
</dataset>
<categorySeries>
<seriesExpression><![CDATA[$F{desAlias}]]></seriesExpression>
<categoryExpression><![CDATA[$F{anio}]]></categoryExpression>
<valueExpression><![CDATA[$F{nVelocidaMedia}]]></valueExpression>
</categorySeries>
</categoryDataset>
<linePlot isShowLines="true" isShowShapes="false">
<plot backgroundAlpha="0.98" foregroundAlpha="1.0" labelRotation="52.0">
<seriesColor seriesOrder="0" color="#008000"/>
<seriesColor seriesOrder="1" color="#EC7000"/>
<seriesColor seriesOrder="2" color="#0045B7"/>
<seriesColor seriesOrder="3" color="#FF0000"/>
<seriesColor seriesOrder="4" color="#7030A0"/>
<seriesColor seriesOrder="5" color="#A6A6A6"/>
<seriesColor seriesOrder="6" color="#A4D76A"/>
<seriesColor seriesOrder="7" color="#FAAA05"/>
<seriesColor seriesOrder="8" color="#77AAFF"/>
<seriesColor seriesOrder="9" color="#FF8080"/>
<seriesColor seriesOrder="10" color="#FFC1FF"/>
<seriesColor seriesOrder="11" color="#D9D9D9"/>
</plot>
<categoryAxisLabelExpression><![CDATA[$F{labelX}]]></categoryAxisLabelExpression>
<categoryAxisFormat labelRotation="52.0">
<axisFormat labelColor="#000000" tickLabelColor="#000000" verticalTickLabels="false" axisLineColor="#000000">
<labelFont>
<font isBold="true"/>
</labelFont>
<tickLabelFont>
<font isBold="true"/>
</tickLabelFont>
</axisFormat>
</categoryAxisFormat>
<valueAxisLabelExpression><![CDATA[$F{labelY}]]></valueAxisLabelExpression>
<valueAxisFormat>
<axisFormat labelColor="#000000" tickLabelColor="#000000" verticalTickLabels="false" axisLineColor="#000000">
<labelFont>
<font isBold="true"/>
</labelFont>
<tickLabelFont>
<font isBold="true"/>
</tickLabelFont>
</axisFormat>
</valueAxisFormat>
<rangeAxisMinValueExpression><![CDATA[$F{minGrafica}.doubleValue()]]></rangeAxisMinValueExpression>
<rangeAxisMaxValueExpression><![CDATA[$F{maxGrafica}.doubleValue()]]></rangeAxisMaxValueExpression>
</linePlot>
</lineChart>
</band>
<band height="110">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<crosstab>
<reportElement x="0" y="0" width="555" height="110" uuid="6d3ecf82-bba3-414b-893f-72065d89630b">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<property name="com.jaspersoft.studio.crosstab.style.header" value="Crosstab 3_CH"/>
<property name="com.jaspersoft.studio.crosstab.style.group" value="Crosstab 3_CG"/>
<property name="com.jaspersoft.studio.crosstab.style.total" value="Crosstab 3_CT"/>
<property name="com.jaspersoft.studio.crosstab.style.detail" value="Crosstab 3_CD"/>
</reportElement>
<crosstabDataset>
<dataset resetType="Report">
<datasetRun subDataset="Dataset1" uuid="fed77a9c-4814-4dfa-a2e2-09baeae749b0">
<dataSourceExpression><![CDATA[$F{listaVelocidadMedia}]]></dataSourceExpression>
</datasetRun>
</dataset>
</crosstabDataset>
<rowGroup name="desAlias" width="45" totalPosition="End">
<bucket class="java.lang.String">
<bucketExpression><![CDATA[$F{desAlias}]]></bucketExpression>
</bucket>
<crosstabRowHeader>
<cellContents mode="Opaque" style="Crosstab 3_CH">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<textField>
<reportElement mode="Opaque" x="0" y="0" width="45" height="30" backcolor="#8ABD37" uuid="a9c233d8-6892-4f4d-9abe-affd4fe6751f"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{desAlias}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabRowHeader>
<crosstabTotalRowHeader>
<cellContents mode="Opaque" style="Crosstab 3_CT">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<staticText>
<reportElement x="0" y="0" width="45" height="0" forecolor="#FFFFFF" uuid="be071980-2865-4744-af86-a633dece807d"/>
<text><![CDATA[Total desAlias]]></text>
</staticText>
</cellContents>
</crosstabTotalRowHeader>
</rowGroup>
<columnGroup name="anio" height="20" totalPosition="End">
<bucket order="Descending" class="java.lang.String">
<bucketExpression><![CDATA[$F{anio}]]></bucketExpression>
</bucket>
<crosstabColumnHeader>
<cellContents mode="Opaque" style="Crosstab 3_CH">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<textField>
<reportElement mode="Opaque" x="0" y="0" width="35" height="20" backcolor="#C7E29C" uuid="92479285-5ff5-43db-8bae-b62943559eb4"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{anio}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabColumnHeader>
<crosstabTotalColumnHeader>
<cellContents mode="Opaque" style="Crosstab 3_CT">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<staticText>
<reportElement x="0" y="0" width="0" height="20" forecolor="#FFFFFF" uuid="59c47a57-85fb-4988-a249-4853e871bb87"/>
<text><![CDATA[Total anio]]></text>
</staticText>
</cellContents>
</crosstabTotalColumnHeader>
</columnGroup>
<measure name="velocidadMedia_MEASURE" class="java.lang.String">
<measureExpression><![CDATA[$F{velocidadMedia}]]></measureExpression>
</measure>
<measure name="calidadAnemometro_MEASURE" class="java.lang.String">
<measureExpression><![CDATA[$F{calidadAnemometro}]]></measureExpression>
</measure>
<crosstabCell width="35" height="30">
<cellContents mode="Opaque" style="Crosstab 3_CD">
<textField pattern="0.0" isBlankWhenNull="true">
<reportElement x="0" y="0" width="35" height="15" uuid="2bb4288a-c744-44e6-9e04-e081ce6425ad"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{velocidadMedia_MEASURE}]]></textFieldExpression>
</textField>
<textField pattern="##0" isBlankWhenNull="true">
<reportElement x="0" y="15" width="35" height="15" uuid="57b5c9b4-6b4d-49fa-848f-112b6475a44d"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{calidadAnemometro_MEASURE}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell width="0" height="30" columnTotalGroup="anio">
<cellContents mode="Opaque" style="Crosstab 3_CT">
<textField>
<reportElement x="0" y="0" width="0" height="15" forecolor="#FFFFFF" uuid="cbd2211c-1e56-4f5a-bebc-a7866e1fbf30"/>
<textFieldExpression><![CDATA[$V{velocidadMedia_MEASURE}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="15" width="0" height="15" forecolor="#FFFFFF" uuid="37328cd2-d9d1-4951-8d74-b83ca7047dc4"/>
<textFieldExpression><![CDATA[$V{calidadAnemometro_MEASURE}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell width="35" height="0" rowTotalGroup="desAlias">
<cellContents mode="Opaque" style="Crosstab 3_CT">
<textField>
<reportElement x="0" y="0" width="35" height="0" forecolor="#FFFFFF" uuid="2a07bad2-c071-4625-9362-d7bd4be003f3"/>
<textFieldExpression><![CDATA[$V{velocidadMedia_MEASURE}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="0" width="35" height="0" forecolor="#FFFFFF" uuid="79d6d9c7-6c36-4fe7-9068-4a4aaced1740"/>
<textFieldExpression><![CDATA[$V{calidadAnemometro_MEASURE}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell width="0" height="0" rowTotalGroup="desAlias" columnTotalGroup="anio">
<cellContents mode="Opaque" style="Crosstab 3_CT">
<textField>
<reportElement x="0" y="0" width="0" height="0" forecolor="#FFFFFF" uuid="fa8c3299-5731-443e-90a9-95d11529398c"/>
<textFieldExpression><![CDATA[$V{velocidadMedia_MEASURE}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="0" width="0" height="0" forecolor="#FFFFFF" uuid="1dc6f439-c7b6-4a8f-8ce6-785fdbcbc274"/>
<textFieldExpression><![CDATA[$V{calidadAnemometro_MEASURE}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
</crosstab>
</band>
<band height="299">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<componentElement>
<reportElement positionType="Float" x="3" y="19" width="547" height="280" uuid="c62a4d39-c7a6-47be-a10d-9d04d95d076b">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</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="listaProyectosActivosPorPaisDataSet" uuid="12d7dd8f-df47-4372-9b63-795a3bfa9da7">
<dataSourceExpression><![CDATA[$F{listaProyectosActivosPorPaisDataSource}]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="280" width="547">
<textField>
<reportElement positionType="Float" x="0" y="1" width="547" height="15" uuid="adb8f0b2-da6d-4eec-bd7a-8317e8b6d422">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="Calibri" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{desProyectoI18n}]]></textFieldExpression>
</textField>
<textField>
<reportElement positionType="Float" x="0" y="17" width="547" height="15" uuid="b6c9137c-b868-422d-859c-85afd226160b">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="Calibri" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{desIntroProyectoI18n}]]></textFieldExpression>
</textField>
<componentElement>
<reportElement x="0" y="33" width="547" height="18" uuid="894b7c81-46db-4789-ae59-fd42b6e33ec2">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
</reportElement>
<jr:list printOrder="Vertical">
<datasetRun subDataset="lstEstacionesProyectoDataSet" uuid="a3452e17-a7e7-4701-a963-92d7c02b7997">
<datasetParameter name="REPORT_DATA_SOURCE">
<datasetParameterExpression><![CDATA[$F{lstEstacionesProyectoDataSource}]]></datasetParameterExpression>
</datasetParameter>
<dataSourceExpression><![CDATA[$P{REPORT_CONNECTION}]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="18" width="547">
<textField textAdjust="StretchHeight">
<reportElement positionType="Float" x="0" y="0" width="547" height="15" uuid="659d5578-3875-4845-9503-d6398dc6b76d">
<property name="com.jaspersoft.studio.unit.leftIndent" value="px"/>
</reportElement>
<textElement>
<font fontName="Calibri" size="9"/>
<paragraph leftIndent="25"/>
</textElement>
<textFieldExpression><![CDATA[$F{desAlias}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="16" width="547" height="1" forecolor="rgba(0, 0, 0, 0.0)" uuid="331a6b0e-149f-4189-8419-9eb7c696e042"/>
</line>
</jr:listContents>
</jr:list>
</componentElement>
<textField textAdjust="StretchHeight">
<reportElement positionType="Float" x="0" y="51" width="547" height="15" uuid="e0b9e7f9-323b-4249-9659-f2f0121c3a87">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="Calibri" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{desIntroAnemometrosEstacionesI18n}]]></textFieldExpression>
</textField>
<componentElement>
<reportElement positionType="Float" x="0" y="69" width="547" height="19" uuid="9d0f759c-039b-40e2-90f0-08efd2be27e6">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
</reportElement>
<jr:list printOrder="Vertical">
<datasetRun subDataset="lstAnemometrosEstacionesDataSource" uuid="d1263bf7-a381-48b4-bade-fdd095ce08ce">
<datasetParameter name="REPORT_DATA_SOURCE">
<datasetParameterExpression><![CDATA[$F{lstAnemometrosEstacionesDataSource}]]></datasetParameterExpression>
</datasetParameter>
<dataSourceExpression><![CDATA[$P{REPORT_CONNECTION}]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="19" width="547">
<textField textAdjust="StretchHeight">
<reportElement x="0" y="0" width="547" height="19" uuid="11f44c5b-abf1-4a70-9cdc-9e7a03247eb4">
<property name="com.jaspersoft.studio.unit.leftIndent" value="px"/>
</reportElement>
<textElement markup="none">
<font fontName="Calibri" size="9"/>
<paragraph leftIndent="25"/>
</textElement>
<textFieldExpression><![CDATA[$F{desAliasYAlturaI18N}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
<line>
<reportElement positionType="Float" x="0" y="67" width="547" height="1" forecolor="rgba(0, 0, 0, 0.0)" uuid="3740db58-7a73-4746-bc8f-33e780da9934">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<graphicElement>
<pen lineColor="rgba(255, 255, 255, 0.0)"/>
</graphicElement>
</line>
<componentElement>
<reportElement x="0" y="108" width="547" height="172" uuid="daebaa0e-bdf9-4bec-ae0b-85f4bab05be0"/>
<jr:list printOrder="Vertical">
<datasetRun subDataset="lstAnyosGraficaDataset" uuid="498702eb-3931-499b-8fce-214d2c1f6adc">
<datasetParameter name="REPORT_DATA_SOURCE">
<datasetParameterExpression><![CDATA[$F{lstAnyosGraficaDataSource}]]></datasetParameterExpression>
</datasetParameter>
<dataSourceExpression><![CDATA[$P{REPORT_CONNECTION}]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="172" width="547">
<lineChart>
<chart evaluationTime="Report">
<reportElement x="20" y="11" width="240" height="150" uuid="938fe9de-fb9f-4979-94f9-a5ec2975ed22"/>
<chartTitle/>
<chartSubtitle/>
<chartLegend/>
</chart>
<categoryDataset>
<dataset resetType="Report">
<datasetRun subDataset="lstDatosMensualesEstacionDataSet" uuid="2fa2595c-1a6a-43a2-b359-0e8baf709970">
<datasetParameter name="REPORT_DATA_SOURCE">
<datasetParameterExpression><![CDATA[$F{lstDatosMensualesEstacionDataSource}]]></datasetParameterExpression>
</datasetParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
</datasetRun>
</dataset>
<categorySeries>
<seriesExpression><![CDATA[$F{desAlias}]]></seriesExpression>
<categoryExpression><![CDATA[$F{fechaDesde}]]></categoryExpression>
<valueExpression><![CDATA[$F{valor}]]></valueExpression>
</categorySeries>
</categoryDataset>
<linePlot>
<plot/>
<categoryAxisFormat>
<axisFormat labelColor="#000000" tickLabelColor="#000000" axisLineColor="#000000"/>
</categoryAxisFormat>
<valueAxisFormat>
<axisFormat labelColor="#000000" tickLabelColor="#000000" axisLineColor="#000000"/>
</valueAxisFormat>
</linePlot>
</lineChart>
</jr:listContents>
</jr:list>
</componentElement>
<textField textAdjust="StretchHeight">
<reportElement positionType="Float" x="0" y="90" width="547" height="15" uuid="644115db-7947-4ed1-bfe2-6c7d9ec3b0f8">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="Calibri" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{desIntroGraficaI18n}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
<line>
<reportElement positionType="Float" x="0" y="9" width="555" height="1" forecolor="rgba(0, 0, 0, 0.0)" uuid="ff372b70-a6f2-4f64-bd6f-a0ebcc9ace23"/>
</line>
<break>
<reportElement x="0" y="0" width="100" height="1" uuid="efdd0770-c3a1-4078-832d-e0cfc6c492b4"/>
</break>
</band>
</detail>
The error throwed when generating the report:
net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error retrieving field value from bean: .
Has somebody know how to solve this problem? thanks!!

Related

jasper report: custom columns on crosstab

i would like to know if there is a way to set a custom column after the totals column that give me the crosstab.
I need to print dinamic columns, and the total of them, and add some information at the end but can`t find the way to add custom information after the total column...
did anyone tried to do something similar?
You can do that by adding a top level column group with a constant expression, setting the group header height to 0 and using the group total column to display the additional values. The values could be passed as a measure with calculation="Nothing", or via other means depending on the particular case.
Here's an report that implements my suggestion. It's a modified JasperReports sample report, you can run it with the sample DB in Jaspersoft Studio.
<?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="ProductsReport" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="782" leftMargin="30" rightMargin="30" topMargin="30" bottomMargin="30" whenNoDataType="AllSectionsNoDetail" uuid="d8258224-60b6-4c49-b0e9-a411ee2fbd39">
<style name="Sans_Normal" isDefault="true" fontName="DejaVu Sans" fontSize="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="Sans_Bold" fontName="DejaVu Sans" fontSize="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="cell">
<box>
<pen lineWidth="0.5"/>
</box>
</style>
<subDataset name="Customer_Quantity" uuid="d7fa233d-253a-4620-93b5-d8c430099436">
<parameter name="CityParam" class="java.lang.String"/>
<queryString>
<![CDATA[SELECT product.name, positions.quantity,
address.firstname, address.lastname, address.street
FROM product, positions, address, document
WHERE product.id = positions.productid AND
address.id = document.addressid AND
document.id = positions.documentid AND
address.city=$P{CityParam}]]>
</queryString>
<field name="Name" class="java.lang.String"/>
<field name="Quantity" class="java.lang.Integer"/>
<field name="FirstName" class="java.lang.String"/>
<field name="LastName" class="java.lang.String"/>
<field name="street" class="java.lang.String"/>
</subDataset>
<title>
<band height="70">
<crosstab isRepeatColumnHeaders="false">
<reportElement x="0" y="0" width="782" height="70" uuid="d3aca7c7-1165-4cb5-a7ca-e67b01a5b15d"/>
<crosstabDataset>
<dataset>
<datasetRun subDataset="Customer_Quantity" uuid="69151f6b-5c48-4d23-b978-e8fdfbf7b631">
<datasetParameter name="CityParam">
<datasetParameterExpression><![CDATA["Seattle"]]></datasetParameterExpression>
</datasetParameter>
</datasetRun>
</dataset>
</crosstabDataset>
<rowGroup name="NameGroup" width="80" totalPosition="None">
<bucket class="java.lang.String">
<bucketExpression><![CDATA[$F{FirstName} + " " + $F{LastName}]]></bucketExpression>
</bucket>
<crosstabRowHeader>
<cellContents style="cell">
<textField>
<reportElement style="Sans_Bold" x="5" y="0" width="75" height="10" uuid="7f161b84-95ad-4ce4-b619-dfdabb44899e"/>
<textFieldExpression><![CDATA[$V{NameGroup}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabRowHeader>
</rowGroup>
<columnGroup height="0" name="dummy" totalPosition="End">
<bucket class="java.lang.String">
<bucketExpression><![CDATA[""]]></bucketExpression>
</bucket>
<crosstabColumnHeader>
<cellContents>
</cellContents>
</crosstabColumnHeader>
<crosstabTotalColumnHeader>
<cellContents style="cell">
<staticText>
<reportElement style="Sans_Bold" x="0" y="0" width="80" height="50"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[Street]]></text>
</staticText>
</cellContents>
</crosstabTotalColumnHeader>
</columnGroup>
<columnGroup name="ProductGroup" height="50" totalPosition="End" headerPosition="Stretch">
<bucket class="java.lang.String">
<bucketExpression><![CDATA[$F{Name}]]></bucketExpression>
</bucket>
<crosstabColumnHeader>
<cellContents style="cell">
<textField>
<reportElement style="Sans_Bold" x="0" y="0" width="20" height="50" uuid="2af151be-c117-41c0-864d-279ef72186ec"/>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="Left"/>
<textFieldExpression><![CDATA[$V{ProductGroup}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabColumnHeader>
<crosstabTotalColumnHeader>
<cellContents backcolor="#FFFF60" mode="Opaque" style="cell">
<staticText>
<reportElement style="Sans_Bold" x="0" y="0" width="30" height="50" uuid="036e9415-01db-4725-8eeb-467f4ae992ab"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[TOTAL]]></text>
</staticText>
</cellContents>
</crosstabTotalColumnHeader>
</columnGroup>
<measure name="QuantityMesure" class="java.lang.Integer" calculation="Sum">
<measureExpression><![CDATA[$F{Quantity}]]></measureExpression>
</measure>
<measure name="street" class="java.lang.String" calculation="Nothing">
<measureExpression>$F{street}</measureExpression>
</measure>
<crosstabCell width="20" height="10">
<cellContents backcolor="#FFFFFF" mode="Opaque" style="cell">
<textField>
<reportElement x="0" y="0" width="20" height="10" uuid="ee3abbdf-bec7-4b0f-9d5a-7ed46e897fd0"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{QuantityMesure}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell width="30" height="10" columnTotalGroup="ProductGroup">
<cellContents backcolor="#FFFF60" mode="Opaque" style="cell">
<textField>
<reportElement x="0" y="0" width="30" height="10" uuid="6747a993-1322-4432-ad74-dbbec94ee758"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{QuantityMesure}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
<crosstabCell width="80" height="10" columnTotalGroup="dummy">
<cellContents style="cell">
<textField>
<reportElement x="0" y="0" width="80" height="10"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{street}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabCell>
</crosstab>
</band>
</title>
</jasperReport>

jasper ireport subreport variable or main report variable main report variable duplicate print

I am new in jasper report, I used jasper ireport 5.6.0.
I have two reports main report or subreport and I returned variable value from subreport to the main report value successfully returned from subreport, but here is a problem I have faced:
When I have printed sub-report variable or sum in grand total with the main report, the main report variable total duplicate two print with subreport variable here below screenshot.
> mian 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="printBillReport" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" scriptletClass="com.reporter.jasper.ConvertToWord" uuid="bd072f9e-2dda-451a-b0a1-13e9f2aa0d3b">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["C:\\Users\\windows\\Documents\\NetBeansProjects\\SteplizerElectronics\\src\\steplizerelectronics\\"]]></defaultValueExpression>
</parameter>
<parameter name="cusID" class="java.lang.Integer"/>
<queryString>
<![CDATA[select *from sale where cus_id=$P{cusID}]]>
</queryString>
<field name="ID" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="cat_name" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="model_no" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="cus_name" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="cus_id" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="user_id" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="comp_name" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="cus_cell" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="sel_price" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="qty" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="amount" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="payable" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="borrow" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="status" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="regdate" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<variable name="amount_1" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{amount}]]></variableExpression>
</variable>
<variable name="qty_1" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{qty}]]></variableExpression>
</variable>
<variable name="borrow_1" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{borrow}]]></variableExpression>
</variable>
<variable name="payable_1" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{payable}]]></variableExpression>
</variable>
<variable name="grandTotall" class="java.lang.Double"/>
<variable name="total_amount" class="java.lang.Double" calculation="Sum">
<variableExpression><![CDATA[$F{amount}]]></variableExpression>
</variable>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="123" splitType="Stretch">
<staticText>
<reportElement x="137" y="80" width="66" height="20" uuid="3b4ea294-f433-491e-9803-2c36e8092e59"/>
<textElement>
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Manufactur:]]></text>
</staticText>
<rectangle radius="10">
<reportElement x="1" y="1" width="555" height="118" uuid="f86b54e6-471d-4395-acda-da815bae56ae"/>
<graphicElement>
<pen lineWidth="2.0" lineStyle="Double"/>
</graphicElement>
</rectangle>
<staticText>
<reportElement x="10" y="113" width="112" height="3" uuid="f3df3b93-035d-4379-8635-c5947bdd4f62"/>
<textElement>
<font size="9"/>
</textElement>
<text><![CDATA[14-DS Main Bund Road, Near Chohan Road, Islam Pura, Lahore.]]></text>
</staticText>
<line>
<reportElement x="310" y="97" width="1" height="19" uuid="fab4c957-2174-44a7-a773-945807f51b60"/>
</line>
<staticText>
<reportElement x="118" y="8" width="258" height="22" uuid="1bbc2106-275b-45be-ae87-cd4607dc8c04"/>
<textElement>
<font fontName="Audiowide" size="14"/>
</textElement>
<text><![CDATA[AONE ELECTRONICS FACTORY]]></text>
</staticText>
<image>
<reportElement x="1" y="3" width="102" height="68" uuid="94d07030-0eae-424a-a92e-b2c80f63d49e"/>
<imageExpression><![CDATA["C:\\Users\\windows\\Desktop\\aone.png"]]></imageExpression>
</image>
<staticText>
<reportElement x="11" y="71" width="48" height="16" uuid="52f2829b-19ca-4269-bec6-80bdb9951674"/>
<textElement>
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Address:]]></text>
</staticText>
<staticText>
<reportElement x="285" y="99" width="83" height="14" uuid="85f72593-8c79-49ec-81b1-a266a1fbe68e"/>
<text><![CDATA[M/S]]></text>
</staticText>
<line>
<reportElement x="279" y="73" width="274" height="1" uuid="b0e7d11d-efc3-4833-a07b-bb5ffc4f3f63"/>
</line>
<line>
<reportElement x="279" y="74" width="1" height="44" uuid="c4a74d99-3a03-469d-972b-f4319ae837ec"/>
</line>
<staticText>
<reportElement x="396" y="-14" width="35" height="16" uuid="93706ffc-0443-4a0c-9a78-8ae0258beeca"/>
<text><![CDATA[Date]]></text>
</staticText>
<staticText>
<reportElement x="142" y="89" width="136" height="30" uuid="30a5b94f-a0a3-44d1-8e81-b8d5bdc70719"/>
<text><![CDATA[Automatic Voltage steplizer Regulators & UPS]]></text>
</staticText>
<componentElement>
<reportElement x="373" y="7" width="177" height="31" uuid="088518ef-edd8-4c30-a126-e9514f1b13d2"/>
<jr:barbecue xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" type="Code39 (Extended)" drawText="false" checksumRequired="false">
<jr:codeExpression><![CDATA[$F{cus_name}+$F{cus_id}]]></jr:codeExpression>
</jr:barbecue>
</componentElement>
<textField>
<reportElement x="321" y="98" width="234" height="16" uuid="edbc7887-c6f6-4209-bcf3-68ad5be80ec8"/>
<textFieldExpression><![CDATA[$F{cus_name}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="143" y="73" width="60" height="16" uuid="abaf5bdb-61f6-4148-92c8-eafe2e5e6a9e"/>
<textElement>
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Steplizers]]></text>
</staticText>
<staticText>
<reportElement x="285" y="77" width="100" height="16" uuid="c440daa7-1411-4e51-9750-6531b35acbd4"/>
<textElement>
<font size="11"/>
</textElement>
<text><![CDATA[Credit Sale]]></text>
</staticText>
</band>
</title>
<columnHeader>
<band height="27" splitType="Stretch">
<rectangle>
<reportElement x="1" y="0" width="552" height="26" uuid="ab9bb588-6c52-4e6f-858a-f64555e9c482"/>
<graphicElement>
<pen lineWidth="2.0" lineStyle="Solid"/>
</graphicElement>
</rectangle>
<staticText>
<reportElement x="10" y="2" width="26" height="20" uuid="cee00939-18a0-43a9-8f7b-8ef37c3c8136"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[ID]]></text>
</staticText>
<staticText>
<reportElement x="69" y="3" width="100" height="20" uuid="c5555982-8ed2-486b-9b20-c820ea2d6303"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[PARTICULARS]]></text>
</staticText>
<staticText>
<reportElement x="334" y="2" width="68" height="20" uuid="444d348c-5aec-47d9-9b8b-8a0df7d5d9cc"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[UNIT RATE]]></text>
</staticText>
<staticText>
<reportElement x="416" y="2" width="31" height="20" uuid="e03d0e0f-fee8-48f6-b649-d29122dae87b"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[QTY]]></text>
</staticText>
<staticText>
<reportElement x="452" y="2" width="88" height="20" uuid="4b3c8b66-6b26-4b2c-bfa4-58917ad61092"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Amount Rs]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="18" splitType="Stretch">
<line>
<reportElement x="1" y="-1" width="1" height="18" uuid="46636ee5-05ef-4ed0-98b3-8b3cdb0e388b"/>
<graphicElement>
<pen lineWidth="2.0" lineStyle="Solid"/>
</graphicElement>
</line>
<line>
<reportElement x="50" y="-2" width="1" height="18" uuid="df3f7753-0f5e-4ff0-bf2c-a3ae8a1d29dc"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid"/>
</graphicElement>
</line>
<line>
<reportElement x="325" y="-2" width="1" height="19" uuid="ff6ab656-efe5-47d2-b6cc-7560cef1f5f4"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid"/>
</graphicElement>
</line>
<line>
<reportElement x="411" y="-1" width="1" height="18" uuid="c6ecd5da-b343-441e-983f-b2414fa30583"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid"/>
</graphicElement>
</line>
<line>
<reportElement x="445" y="-1" width="1" height="18" uuid="0dabdb94-9868-4f7e-935a-0fa235ce0a13"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid"/>
</graphicElement>
</line>
<line>
<reportElement x="553" y="-1" width="1" height="18" uuid="0bc274c2-5f26-4f5d-b68d-e21bc2c4c888"/>
<graphicElement>
<pen lineWidth="2.0" lineStyle="Solid"/>
</graphicElement>
</line>
<textField>
<reportElement x="10" y="1" width="26" height="14" uuid="63a319b2-8afe-4318-bab9-878b61ad4a82"/>
<textElement verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{ID}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="70" y="1" width="255" height="14" uuid="cf463437-6041-457b-800b-b7d4917676f6"/>
<textElement verticalAlignment="Middle">
<font size="11" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{cat_name}+", "+$F{model_no}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement x="335" y="1" width="72" height="14" uuid="10d9300e-83f3-4942-836a-c547e02d8c7d"/>
<textElement verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{sel_price}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="417" y="1" width="32" height="14" uuid="d744148c-6afe-46dc-b14f-c1ba4d6859c0"/>
<textElement verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{qty}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement x="452" y="1" width="89" height="14" uuid="b1d2ce72-c35f-4507-bb93-6f3e06b80a00"/>
<textElement verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{amount}]]></textFieldExpression>
</textField>
<line>
<reportElement x="50" y="-26" width="1" height="26" uuid="465616a8-77d2-4347-9290-149936abb9e7"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid"/>
</graphicElement>
</line>
<line>
<reportElement x="325" y="-28" width="1" height="26" uuid="704a8402-1a4e-42a0-9ce3-673c8a9bc69b"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid"/>
</graphicElement>
</line>
<line>
<reportElement x="411" y="-26" width="1" height="26" uuid="e4128970-6640-4c7b-9677-6b349dbfa0da"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid"/>
</graphicElement>
</line>
<line>
<reportElement x="445" y="-27" width="1" height="26" uuid="4a2e897b-cd91-4573-a76d-a4f32b4cd077"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Double"/>
</graphicElement>
</line>
</band>
</detail>
<pageFooter>
<band height="39" splitType="Stretch">
<rectangle>
<reportElement x="-21" y="9" width="599" height="30" backcolor="#333333" uuid="8634a9b7-fcf3-4881-82c3-6679dbc18552"/>
</rectangle>
<staticText>
<reportElement x="141" y="15" width="244" height="12" forecolor="#FFFFFF" uuid="274941d4-cc0e-4fb4-997b-382c827badc9"/>
<textElement>
<font size="9"/>
</textElement>
<text><![CDATA[Software Provided by Ph# +923024712782]]></text>
</staticText>
<staticText>
<reportElement x="142" y="27" width="244" height="12" forecolor="#FFFFFF" uuid="a4ff6425-a7f1-4fff-b0ab-a92da8a2dcb5"/>
<textElement>
<font size="9"/>
</textElement>
<text><![CDATA[www.ultronhouse.com]]></text>
</staticText>
<textField>
<reportElement x="434" y="18" width="80" height="20" forecolor="#FFFFFF" uuid="d1d8921f-151b-44c9-8d12-4b82cb993ffe"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="514" y="18" width="40" height="20" forecolor="#FFFFFF" uuid="f31b2a21-d3fd-470f-9527-f998b02be397"/>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="EEEEE dd MMMMM yyyy">
<reportElement x="-1" y="17" width="100" height="20" forecolor="#FFFFFF" uuid="34d4b240-cfb4-41d0-af4e-815e9e099d74"/>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<summary>
<band height="315" splitType="Stretch">
<rectangle>
<reportElement x="326" y="0" width="228" height="80" uuid="51ca5430-c464-4742-a4d6-178c75f4f4f8"/>
<graphicElement>
<pen lineWidth="2.0"/>
</graphicElement>
</rectangle>
<rectangle>
<reportElement x="0" y="0" width="325" height="22" uuid="e65cff7a-3ed1-450f-bfa7-585c580cfe60"/>
<graphicElement>
<pen lineWidth="1.0"/>
</graphicElement>
</rectangle>
<textField pattern="">
<reportElement x="63" y="5" width="263" height="20" uuid="102cb181-c6f9-4bf5-98cc-50333c2f9efa"/>
<textElement>
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{REPORT_SCRIPTLET}.readNumber($V{amount_1})]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="7" y="6" width="48" height="20" uuid="1d88c6eb-ba59-45f2-b1af-b5b1cf1634b0"/>
<textElement>
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Ruppies:]]></text>
</staticText>
<line>
<reportElement x="327" y="60" width="226" height="1" uuid="95c9a5f3-5fed-4813-8bc1-076f9b658c09"/>
</line>
<staticText>
<reportElement x="333" y="3" width="77" height="20" uuid="fd70b399-0bf9-4840-87b9-c398765cd363"/>
<textElement>
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Total]]></text>
</staticText>
<staticText>
<reportElement x="334" y="22" width="77" height="20" uuid="494a0fe7-85be-4220-9959-fbf09672ac68"/>
<textElement>
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[QTY]]></text>
</staticText>
<staticText>
<reportElement x="334" y="61" width="110" height="20" uuid="fcb0a54c-5ecb-4e49-b7f0-0cd819c89a6c"/>
<textElement>
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Grand Total]]></text>
</staticText>
<textField pattern="#,##0.00;#,##0.00-">
<reportElement x="453" y="3" width="100" height="20" uuid="62437a3a-407d-46a6-9531-4c445ecd0c98"/>
<textElement verticalAlignment="Top">
<font size="11" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{amount_1}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00;#,##0.00-">
<reportElement x="454" y="22" width="100" height="20" uuid="65b192d8-375b-4f1b-b90e-7802d3fdb6eb"/>
<textElement verticalAlignment="Top">
<font size="11" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{qty_1}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="#,##0.00;#,##0.00-">
<reportElement isPrintRepeatedValues="false" x="456" y="62" width="100" height="20" uuid="87f1c4f0-44ec-42a4-9416-527113afb9ed"/>
<textElement>
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[($V{grandTotall}+$V{total_amount})-$V{total_amount}]]></textFieldExpression>
</textField>
<subreport>
<reportElement x="136" y="2" width="192" height="21" uuid="ffdec19a-5213-44a4-a6e4-a874bb2b6578"/>
<subreportParameter name="cusID">
<subreportParameterExpression><![CDATA[$F{cus_id}]]></subreportParameterExpression>
</subreportParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<returnValue subreportVariable="grandTotall" toVariable="grandTotall"/>
<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "printBill_subreport.jasper"]]></subreportExpression>
</subreport>
<staticText>
<reportElement x="335" y="41" width="108" height="20" uuid="f4b88757-b2f9-4c43-abd2-1d458137016e"/>
<textElement>
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Previous Balance]]></text>
</staticText>
<textField evaluationTime="Report" pattern="#,##0.00;(#,##0.00)">
<reportElement x="455" y="43" width="100" height="20" uuid="1ed3c932-ce63-4a21-9624-a60f22720620"/>
<textElement>
<font size="11" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{grandTotall}-$V{amount_1}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="86" y="60" width="100" height="20" uuid="d38785b9-638e-4e10-a9e2-b664205694e1"/>
<textFieldExpression><![CDATA[($V{total_amount}+1+$V{grandTotall})-$V{total_amount}]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>
Sub-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="printBill_subreport" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="40d765ae-ceb6-47eb-a59b-aa232f876bb6">
<property name="ireport.zoom" value="1.5"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<parameter name="cusID" class="java.lang.Integer"/>
<queryString>
<![CDATA[select *from ac_balance where cus_id=$P{cusID} and status='UnClear']]>
</queryString>
<field name="ID" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="cus_name" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="cus_id" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="sale_id" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="qty" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="payable" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="borrow" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="receiveable" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="total" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="status" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="regdate" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<variable name="borrow_1" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{borrow}]]></variableExpression>
</variable>
<variable name="grandTotall" class="java.lang.Double">
<variableExpression><![CDATA[$V{borrow_1}]]></variableExpression>
</variable>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="52" splitType="Stretch"/>
</title>
<summary>
<band height="42" splitType="Stretch"/>
</summary>
</jasperReport>
Images
here below some screen shots of reports properties bellow.
[Sub-report Image1][1]
[main-report Image2][2]
[output print3][3]
[image4][4]
[1]: https://i.stack.imgur.com/Gqdi4.png
[2]: https://i.stack.imgur.com/j7OoC.png
[3]: https://i.stack.imgur.com/k6LG4.png
[4]: https://i.stack.imgur.com/EQALD.png

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

subreport is not displaying it is printing only the static text but not parameters?

I have created the subreport and mapped to main report but it is not displaying the text field expressions it is displaying only the heading and the amount is displaying null.Please suggest me as I am new to Ireport designs.
Main 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="esr-design-40" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="595" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" >
<property name="com.jasperassistant.designer.GridHeight" value="12"/>
<property name="com.jasperassistant.designer.GridWidth" value="12"/>
<property name="com.jasperassistant.designer.SnapToGrid" value="false"/>
<property name="com.jasperassistant.designer.Grid" value="false"/>
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="16"/>
<property name="ireport.y" value="0"/>
<scriptlet name="esrgenerator" class="dk.comtalk.billing.server.util.ESRGenerator"/>
<parameter name="printAmount" class="java.lang.String"/>
<parameter name="invoiceId" class="java.lang.Integer"/>
<parameter name="customerId" class="java.lang.String"/>
<parameter name="entityName" class="java.lang.String"/>
<parameter name="entityAddress" class="java.lang.String"/>
<parameter name="entityCity" class="java.lang.String"/>
<parameter name="entityProvince" class="java.lang.String"/>
<parameter name="entityPostalCode" class="java.lang.String"/>
<parameter name="customerName" class="java.lang.String"/>
<parameter name="customerAddress" class="java.lang.String"/>
<parameter name="customerCity" class="java.lang.String"/>
<parameter name="customerProvince" class="java.lang.String"/>
<parameter name="customerPostalCode" class="java.lang.String"/>
<parameter name="entityLogo" class="java.io.File"/>
<parameter name="countryCode" class="java.lang.String"/>
<parameter name="balance" class="java.lang.String"/>
<parameter name="carriedBalance" class="java.lang.String"/>
<parameter name="invoiceDueDate" class="java.lang.String"/>
<parameter name="totalWithTax" class="java.lang.String"/>
<parameter name="newStatusId" class="java.lang.Integer"/>
<parameter name="invoiceDate" class="java.lang.String"/>
<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["D:\\Ravi Workspace\\Openbrm\\open-brm-openbrm-2.0\\resources\\designs\\"]]></defaultValueExpression>
</parameter>
<queryString>
<![CDATA[select count(*) from payment_invoice p where p.invoice_id=$P{invoiceId};]]>
</queryString>
<field name="payment_count" class="java.lang.Integer"/>
<group name="invoice_total">
<groupFooter>
<band/>
</groupFooter>
</group>
<title>
<band height="430">
<image>
<reportElement x="8" y="0" width="185" height="48" />
<imageExpression><![CDATA[$P{entityLogo}]]></imageExpression>
</image>
<textField>
<reportElement x="57" y="120" width="181" height="14" />
<textFieldExpression><![CDATA[$P{customerName}]]> </textFieldExpression>
</textField>
<textField>
<reportElement x="57" y="148" width="294" height="14" />
<textFieldExpression><![CDATA[$P{customerPostalCode}+ " " + $P{customerCity}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="57" y="162" width="211" height="14" />
<textFieldExpression><![CDATA[$P{countryCode}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="57" y="134" width="181" height="14" />
<textFieldExpression><![CDATA[$P{customerAddress}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="384" y="103" width="200" height="28" />
<textElement>
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[1. opomena za neizmireni racun]]></text>
</staticText>
<staticText>
<reportElement x="405" y="173" width="179" height="14" />
<text><![CDATA[Wangen b. Brüttisellen, 13.12.2015]]></text>
</staticText>
<staticText>
<reportElement x="36" y="201" width="328" height="19" />
<text><![CDATA[Postovani gospodine/postovana gospodjo,]]></text>
</staticText>
<staticText>
<reportElement x="36" y="220" width="544" height="35" />
<text><![CDATA[Dozvolite da Vas podsetimo da je, po podacima naseg knjigovodstva od danasnjeg dana, sledeci telefonski racun jos otvoren:]]></text>
</staticText>
<staticText>
<reportElement x="35" y="317" width="549" height="34" />
<text><![CDATA[Ukoliko je Vasa uplata za ovde navedeni racun u medjuvremenu vec izvrsena, nemojte uzimati ovu opomenu u obzir. Ukoliko jos nije, molimo Vas da izvrsite uplatu izvrsite odmah.]]></text>
</staticText>
<staticText>
<reportElement x="35" y="351" width="557" height="69" />
<text><![CDATA[Imajte u vidu da se kod opomena, uz regularni racun, placa administrativna taksa za obradu u visini od Fr. 20.00. Ev.deaktivacija servisa se, takodje, naplacuje, dodatnih Fr. 20.00. Molimo Vas stoga za postovanje nasih rokova uplate.
Najlepse hvala.]]></text>
</staticText>
<subreport>
<reportElement x="36" y="268" width="559" height="60" />
<subreportParameter name="invoiceId">
<subreportParameterExpression><![CDATA[$P{invoiceId}]]></subreportParameterExpression>
</subreportParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "ageing-esr-40-srpski-subreport.jasper"]]></subreportExpression>
</subreport>
</band>
</title>
<pageHeader>
<band height="117">
<staticText>
<reportElement x="36" y="101" width="576" height="16" />
<text><![CDATA[Symphonica AG | Hegnaustrasse 17 | 8602 Wangen b. Brüttisellen | Telefon 0840 988 988 | Fax 043 536 05 43]]></text>
</staticText>
<staticText>
<reportElement x="35" y="8" width="243" height="26" />
<text><![CDATA[S postovanjem,
BALKATEL | Symphonica A.D.]]></text>
</staticText>
</band>
</pageHeader>
<summary>
<band height="294">
<textField>
<reportElement x="5" y="56" width="123" height="14" />
<textFieldExpression><![CDATA[$P{entityName}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="5" y="68" width="153" height="14" />
<textFieldExpression><![CDATA[$P{entityAddress}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="5" y="81" width="226" height="14" />
<textFieldExpression><![CDATA[$P{entityPostalCode}+ " " + $P{entityCity}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="5" y="26" width="100" height="15" />
<text><![CDATA[6301 Zug]]></text>
</staticText>
<staticText>
<reportElement x="179" y="26" width="100" height="15" />
<text><![CDATA[6301 Zug]]></text>
</staticText>
<textField>
<reportElement x="179" y="56" width="123" height="14" />
<textFieldExpression><![CDATA[$P{entityName}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="179" y="68" width="149" height="14" />
<textFieldExpression><![CDATA[$P{entityAddress}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="179" y="81" width="226" height="14" />
<textFieldExpression><![CDATA[$P{entityPostalCode}+ " " + $P{entityCity}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="97" y="110" width="100" height="14" />
<text><![CDATA[01-2653-5]]></text>
</staticText>
<staticText>
<reportElement x="272" y="110" width="100" height="16" />
<text><![CDATA[01-2653-5]]></text>
</staticText>
<textField>
<reportElement x="169" y="236" width="640" height="30" />
<textElement textAlignment="Left">
<font fontName="SansSerif" size="13"/>
</textElement>
<textFieldExpression><![CDATA[$P{esrgenerator_SCRIPTLET}.generateCodeline($P{printAmount}.split("\\s+")[1],"01",">","971786","+","0126535",">",$P{invoiceId})]]></textFieldExpression>
</textField>
<textField>
<reportElement x="353" y="132" width="181" height="14" />
<textFieldExpression><![CDATA[$P{customerName}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="353" y="144" width="181" height="14" />
<textFieldExpression><![CDATA[$P{customerAddress}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="353" y="158" width="294" height="14" />
<textFieldExpression><![CDATA[$P{customerPostalCode}+ " " + $P{customerCity}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="8" y="193" width="181" height="14" />
<textFieldExpression><![CDATA[$P{customerName}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="8" y="205" width="181" height="14" />
<textFieldExpression><![CDATA[$P{customerAddress}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="8" y="218" width="251" height="14" />
<textFieldExpression><![CDATA[$P{customerPostalCode}+ " " + $P{customerCity}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="353" y="172" width="211" height="14" />
<textFieldExpression><![CDATA[$P{countryCode}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="8" y="230" width="194" height="14" />
<textFieldExpression><![CDATA[$P{countryCode}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="353" y="92" width="424" height="19" />
<textElement>
<font fontName="SansSerif" size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{esrgenerator_SCRIPTLET}.getReferenceNumber("971786",$P{invoiceId})]]></textFieldExpression>
</textField>
<textField>
<reportElement x="8" y="172" width="186" height="16" />
<textFieldExpression><![CDATA[$P{esrgenerator_SCRIPTLET}.getReferenceNumber("971786",$P{invoiceId})]]></textFieldExpression>
</textField>
<textField>
<reportElement x="132" y="142" width="47" height="15" />
<textElement>
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$P{esrgenerator_SCRIPTLET}.splitAmount($P{printAmount}.split("\\s+")[1].split("\\.")[1])]]></textFieldExpression>
</textField>
<textField>
<reportElement x="301" y="142" width="40" height="15" />
<textElement>
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$P{esrgenerator_SCRIPTLET}.splitAmount($P{printAmount}.split("\\s+")[1].split("\\.")[1])]]></textFieldExpression>
</textField>
<textField>
<reportElement x="2" y="142" width="105" height="15" />
<textElement textAlignment="Right">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$P{esrgenerator_SCRIPTLET}.splitAmount($P{printAmount}.split("\\s+")[1].split("\\.")[0]).trim()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="173" y="142" width="105" height="15" />
<textElement textAlignment="Right">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression> <![CDATA[$P{esrgenerator_SCRIPTLET}.splitAmount($P{printAmount}.split("\\s+")[1].split("\\.")[0]).trim()]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>
subreport.jrxml
<?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="ageing-esr-40-srpski-subreport" pageWidth="595" pageHeight="70" whenNoDataType="AllSectionsNoDetail" columnWidth="595" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" >
<property name="com.jasperassistant.designer.GridHeight" value="12"/>
<property name="com.jasperassistant.designer.GridWidth" value="12"/>
<property name="com.jasperassistant.designer.SnapToGrid" value="false"/>
<property name="com.jasperassistant.designer.Grid" value="false"/>
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<parameter name="customerId" class="java.lang.String"/>
<parameter name="invoiceDate" class="java.lang.String"/>
<parameter name="invoiceId" class="java.lang.Integer"/>
<parameter name="invoiceDueDate" class="java.lang.String"/>
<parameter name="newStatusId" class="java.lang.Integer"/>
<parameter name="printAmount" class="java.lang.String"/>
<parameter name="balance" class="java.lang.String"/>
<title>
<band height="30">
<staticText>
<reportElement x="2" y="14" width="65" height="14" />
<textElement>
<font size="10" isBold="true"/>
</textElement>
<text><![CDATA[Racun od]]></text>
</staticText>
<staticText>
<reportElement x="83" y="14" width="65" height="14" />
<textElement>
<font size="10" isBold="true"/>
</textElement>
<text><![CDATA[Nacin pl.]]></text>
</staticText>
<staticText>
<reportElement x="164" y="14" width="85" height="14" />
<textElement textAlignment="Left">
<font size="10" isBold="true"/>
</textElement>
<text><![CDATA[Broj racuna]]></text>
</staticText>
<staticText>
<reportElement x="262" y="14" width="85" height="14" />
<textElement textAlignment="Left">
<font size="10" isBold="true"/>
</textElement>
<text><![CDATA[Rok istekao]]></text>
</staticText>
<staticText>
<reportElement x="375" y="14" width="48" height="14" />
<textElement>
<font size="10" isBold="true"/>
</textElement>
<text><![CDATA[Iznos]]></text>
</staticText>
<staticText>
<reportElement x="437" y="14" width="58" height="14" />
<textElement>
<font size="10" isBold="true"/>
</textElement>
<text><![CDATA[Otvoreno]]></text>
</staticText>
<staticText>
<reportElement x="504" y="14" width="52" height="14" />
<textElement>
<font size="10" isBold="true"/>
</textElement>
<text><![CDATA[Step.nap]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band height="19">
<textField>
<reportElement x="495" y="3" width="34" height="12" />
<textElement textAlignment="Right">
<font fontName="SansSerif" size="9"/>
</textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$P{newStatusId}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="356" y="3" width="67" height="15" />
<textElement textAlignment="Right">
<font fontName="SansSerif" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$P{printAmount}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="262" y="3" width="100" height="14" />
<textFieldExpression><![CDATA[$P{invoiceDueDate}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="164" y="3" width="75" height="14" />
<textFieldExpression class="java.lang.Integer"><![CDATA[$P{invoiceId}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="83" y="3" width="77" height="14" />
<textElement>
<font size="10" isBold="false"/>
</textElement>
<text><![CDATA[Racun]]></text>
</staticText>
<textField>
<reportElement x="2" y="3" width="75" height="14" />
<textFieldExpression><![CDATA[$P{invoiceDate}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="423" y="2" width="67" height="15" />
<textElement textAlignment="Right">
<font fontName="SansSerif" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$P{printAmount}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<summary>
<band height="20">
<staticText>
<reportElement x="266" y="0" width="163" height="15" />
<textElement>
<font size="10" isBold="true"/>
</textElement>
<text><![CDATA[Ukupno CHF. . . . . . . . . . . . . . . .]]></text>
</staticText>
<textField>
<reportElement x="423" y="0" width="67" height="15" />
<textElement textAlignment="Right">
<font fontName="SansSerif" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$P{printAmount}]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>
enter image description here
now I am printing the invoice like this in the next line i need to print the details with multiple invoices and i need to sum all those and print the total.

x axis value displayed in line chart

I have Line chart, in x axis i should display date in string format in full format, but i cant display when more no of values in x axis, for that i decided to display x axis values in vertical manner instead of horizontal , please suggest me. for ref attached image..
<?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="sampl1" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="431d18d3-722a-4aaf-8207-da8bb0ea2fdd">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="51"/>
<parameter name="whereClause" class="java.lang.String"/>
<parameter name="bankLogo" class="java.lang.String"/>
<parameter name="bankName" class="java.lang.String"/>
<parameter name="fromDate" class="java.util.Date">
<parameterDescription><![CDATA[]]></parameterDescription>
</parameter>
<parameter name="toDate" class="java.util.Date"/>
<parameter name="noData" class="java.lang.String"/>
<parameter name="userId" class="java.lang.String"/>
<queryString>
<![CDATA[select avg(jbase_user) as jbaseAvg,AVG(t24_user) as t24Avg,to_char(load_time, 'dd.Mon.yy HH24') as period
from tmc_system_summary group by (to_char(load_time, 'dd.Mon.yy HH24'))]]>
</queryString>
<field name="jbaseavg" class="java.math.BigDecimal"/>
<field name="t24avg" class="java.math.BigDecimal"/>
<field name="period" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="30" splitType="Stretch"/>
</title>
<pageHeader>
<band height="67" splitType="Stretch">
<staticText>
<reportElement x="300" y="22" width="235" height="15" uuid="164831c1-9eff-4cf2-8706-331d28fdf431"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<text><![CDATA[ System Summary Report]]></text>
</staticText>
<image>
<reportElement x="12" y="3" width="161" height="30" uuid="513d2931-a2c7-4e54-bb86-188737502cae"/>
<imageExpression><![CDATA[$P{bankLogo}]]></imageExpression>
</image>
<textField pattern="dd/MM/yyyy">
<reportElement x="735" y="2" width="55" height="17" uuid="306ddad6-2b80-4abb-9893-859c59c8ede5"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="700" y="2" width="30" height="17" uuid="c6fdbff7-45a5-464e-bcbf-d550b174452f"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Arial"/>
</textElement>
<text><![CDATA[Date:]]></text>
</staticText>
<staticText>
<reportElement x="20" y="40" width="58" height="14" uuid="5bd47ff1-6b81-428a-b7fd-50e777f70a22"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[From Date:]]></text>
</staticText>
<staticText>
<reportElement x="160" y="40" width="58" height="14" uuid="a7605d9e-c0d1-4a31-8230-c73db35766d4"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<text><![CDATA[To Date:]]></text>
</staticText>
<textField pattern="dd/MM/yyyy">
<reportElement x="80" y="40" width="70" height="14" uuid="faa13401-da98-4f06-ab43-5a1722d073f7"/>
<textFieldExpression><![CDATA[$P{fromDate} != null ? $P{fromDate} :" "]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement x="215" y="40" width="70" height="13" uuid="01fcdb71-820f-4ef1-9913-6ddcf36be2dc"/>
<textFieldExpression><![CDATA[$P{toDate} != null ? $P{toDate} : " "]]></textFieldExpression>
</textField>
<textField>
<reportElement x="300" y="2" width="235" height="17" uuid="7eec4f6f-5bfd-4bb0-8888-8cad8d9d84ad"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="14" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$P{bankName}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="700" y="22" width="30" height="15" uuid="08ba273e-733d-4652-9f7a-83a51f7d78ca"/>
<textElement textAlignment="Right"/>
<text><![CDATA[By:]]></text>
</staticText>
<textField>
<reportElement x="735" y="22" width="55" height="15" uuid="261308a5-7cef-42f8-8880-9d2c9cc5d5ae"/>
<textFieldExpression><![CDATA[$P{userId}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="54" width="802" height="1" uuid="e17b6ea4-40fd-40ad-861f-a300f926d0e4"/>
</line>
</band>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
![enter image description here][1] </columnHeader>
<columnFooter>
<band height="17" splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="20" splitType="Stretch">
<textField>
<reportElement x="546" y="1" width="70" height="19" uuid="eeafb0de-dddb-4c9a-8a1d-942b65bf0a7f"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="10"/>
</textElement>
<textFieldExpression><![CDATA["Page " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<summary>
<band height="392" splitType="Stretch">
<lineChart>
<chart>
<reportElement x="12" y="18" width="779" height="355" uuid="f696d665..
By this you can display the x axis value in vertical ( topDown)
<categoryAxisFormat labelRotation="90.0">
it will work.