首页 > 解决方案 > Jasper 报告错误从 Bean 检索字段值

问题描述

在我的报告中,我有两个名为的参数arrayAccepterarrayJoinDate它们的类型为字符串,我使用它们中的每一个来存储用逗号分隔的字符串,例如:"CM45024,CM45025,CM45026"。我还有一个名为 的数据集,它包含两个名为和的Dataset1字段。_THISfieldjoindate

我将这些字段用于.split()存储在我上面提到的参数中的字符串。机制是:

  1. 我有两个“列表”元素分别打印字符串集。为了分别打印字符串,我将此表达式赋予第一个“列表”元素new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(java.util.Arrays.asList($P{arrayAccepter}.split(",")), false)
  2. 第二个“List”元素也和第一个“List”元素做同样的事情,但它的表达式是new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(java.util.Arrays.asList($P{arrayJoinDate}.split(",")), false)

当我尝试预览 .jrxml 时,它会打印如下错误:net.sf.jasperreports.engine.JRException: Error retrieving field value from bean: fieldjoindate.

该错误下方的另一个错误:java.lang.NoSuchMethodException: Unknown property 'fieldjoindate' on class 'class java.lang.String'

但是,当我删除fieldjoindate第二个“列表”然后再次预览时,第一个“列表”打印成功。

这是我的完整 .jrxml 代码:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.16.0.final using JasperReports Library version 6.16.0-48579d909b7943b64690c65c71e07e0b80981928  -->
<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="Laporan_Kelas_Industri_3" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="20f55d6a-1496-430d-8dde-cdb41d7b53ac">
    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
    <subDataset name="Dataset1" uuid="a32a36ba-2e14-4071-9649-c5738d43e63a">
        <field name="_THIS" class="java.lang.String">
            <property name="com.jaspersoft.studio.field.name" value="_THIS"/>
        </field>
        <field name="fieldjoindate" class="java.lang.String">
            <property name="com.jaspersoft.studio.field.name" value="fieldjoindate"/>
        </field>
    </subDataset>
    <parameter name="arrayAccepter" class="java.lang.String" isForPrompting="false">
        <defaultValueExpression><![CDATA["CM45024,CM45025,CM45026"]]></defaultValueExpression>
    </parameter>
    <parameter name="arrayJoinDate" class="java.lang.String" isForPrompting="false">
        <defaultValueExpression><![CDATA["CM45024,CM45025,CM45026"]]></defaultValueExpression>
    </parameter>
    <parameter name="nama_peserta" class="java.lang.String" isForPrompting="false"/>
    <parameter name="last_login" class="java.lang.String" isForPrompting="false"/>
    <parameter name="status_peserta" class="java.lang.String" isForPrompting="false"/>
    <parameter name="email" class="java.lang.String" isForPrompting="false"/>
    <parameter name="phone" class="java.lang.Integer" isForPrompting="false"/>
    <parameter name="nis" class="java.lang.String" isForPrompting="false"/>
    <parameter name="nama_institusi" class="java.lang.String" isForPrompting="false"/>
    <parameter name="jurusan" class="java.lang.String" isForPrompting="false"/>
    <parameter name="tahun_masuk" class="java.lang.String" isForPrompting="false"/>
    <parameter name="nama_kelas_industri" class="java.lang.String" isForPrompting="false"/>
    <parameter name="mulai_selesai" class="java.lang.String" isForPrompting="false"/>
    <parameter name="learning_path" class="java.lang.String" isForPrompting="false"/>
    <parameter name="guru_pendamping" class="java.lang.String" isForPrompting="false"/>
    <parameter name="jml_webinar" class="java.lang.String" isForPrompting="false"/>
    <parameter name="jml_hadir" class="java.lang.String" isForPrompting="false"/>
    <parameter name="jml_tdk_hadir" class="java.lang.String" isForPrompting="false"/>
    <parameter name="member_photo_url" class="java.lang.String" isForPrompting="false">
        <defaultValueExpression><![CDATA["/Applications/XAMPP/xamppfiles/htdocs/stage.gamelab.id/public_html/img/member-image-placeholder.png"]]></defaultValueExpression>
    </parameter>
    <background>
        <band splitType="Stretch"/>
    </background>
    <title>
        <band height="80">
            <property name="com.jaspersoft.studio.unit.height" value="px"/>
            <rectangle>
                <reportElement x="-20" y="-19" width="595" height="80" forecolor="#072153" backcolor="#072153" uuid="008df17e-cb4d-4801-ad38-5446964adfde"/>
            </rectangle>
            <image>
                <reportElement x="0" y="0" width="140" height="38" uuid="e4938ca6-fe52-43f4-ba0f-9306095d6f7d"/>
                <imageExpression><![CDATA["/Applications/XAMPP/xamppfiles/htdocs/stage.gamelab.id/public_html/img/logo-gamelab-150y.png"]]></imageExpression>
            </image>
            <staticText>
                <reportElement x="300" y="9" width="250" height="24" forecolor="#2CB8D1" uuid="0e264ce5-da43-4907-a212-a5a68b78d3de"/>
                <textElement textAlignment="Right">
                    <font fontName="Ubuntu" size="16" isBold="true"/>
                </textElement>
                <text><![CDATA[Laporan Kelas Industri Gamelab]]></text>
            </staticText>
        </band>
    </title>
    <detail>
        <band height="160">
            <property name="com.jaspersoft.studio.unit.height" value="px"/>
            <rectangle radius="5">
                <reportElement x="3" y="0" width="549" height="130" forecolor="#FFFFFF" uuid="c88b9ee6-4238-4e1e-b95d-c96852ac6747"/>
                <graphicElement>
                    <pen lineColor="#A7A7A7"/>
                </graphicElement>
            </rectangle>
            <rectangle radius="5">
                <reportElement x="3" y="1" width="549" height="35" forecolor="#072153" backcolor="#072153" uuid="d70022f8-2dba-477e-8415-a739a28d5243">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
            </rectangle>
            <image scaleImage="FillFrame" vAlign="Top" evaluationTime="Report">
                <reportElement x="20" y="-7" width="50" height="50" uuid="3a6429b9-7215-4a29-bdb7-e91ad507304d"/>
                <box padding="0">
                    <pen lineWidth="3.25" lineColor="#2CB8D1"/>
                </box>
                <imageExpression><![CDATA[$P{member_photo_url}]]></imageExpression>
            </image>
            <staticText>
                <reportElement x="20" y="60" width="32" height="12" forecolor="#A7A7A7" uuid="e9da6b64-920d-4e5e-aa14-86c9f03a3565">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[Email]]></text>
            </staticText>
            <staticText>
                <reportElement x="20" y="80" width="40" height="12" forecolor="#A7A7A7" uuid="ee9634bc-d14a-4451-bf7c-c672e5d35281">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[No. HP]]></text>
            </staticText>
            <staticText>
                <reportElement x="20" y="100" width="20" height="12" forecolor="#A7A7A7" uuid="5f506721-3a2a-4567-8a0e-05e793bec504">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[NIS]]></text>
            </staticText>
            <staticText>
                <reportElement x="272" y="60" width="60" height="12" forecolor="#A7A7A7" uuid="22851477-3158-481c-9079-c37f4bc48f7c">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[Institusi]]></text>
            </staticText>
            <staticText>
                <reportElement x="272" y="80" width="40" height="12" forecolor="#A7A7A7" uuid="123f8bbb-ba66-419a-8583-3921e168730e">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[Jurusan]]></text>
            </staticText>
            <staticText>
                <reportElement x="272" y="100" width="70" height="12" forecolor="#A7A7A7" uuid="6190b108-e717-43ea-893a-249532bde3cb">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[Tahun Masuk]]></text>
            </staticText>
            <staticText>
                <reportElement x="80" y="22" width="60" height="10" forecolor="#FFFFFF" uuid="b0a42eea-41f7-4ee1-b4e1-f292cbdec9bb">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="8"/>
                </textElement>
                <text><![CDATA[Terakhir Login :]]></text>
            </staticText>
            <textField evaluationTime="Report">
                <reportElement x="80" y="5" width="320" height="15" forecolor="#FFFFFF" uuid="b150f8e7-f3a1-4562-8f18-9a3f30bee31c">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="12" isBold="true"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{nama_peserta}]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report">
                <reportElement x="144" y="22" width="156" height="10" forecolor="#FFFFFF" uuid="c2bdeaf1-506d-4993-8d61-958e243a7561"/>
                <textElement>
                    <font fontName="Ubuntu" size="8"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{last_login}]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report">
                <reportElement x="440" y="20" width="100" height="12" forecolor="#FFFFFF" uuid="b311ed7a-5b44-4d6d-8a7e-80c44f773fb4">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                </reportElement>
                <textElement textAlignment="Right">
                    <font fontName="Ubuntu" size="9" isBold="true"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{status_peserta}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="480" y="7" width="60" height="10" forecolor="#FFFFFF" uuid="77295fa0-1af7-4d03-bd9e-1744dd4422bc">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="8"/>
                </textElement>
                <text><![CDATA[Status Peserta :]]></text>
            </staticText>
            <textField evaluationTime="Report">
                <reportElement x="70" y="60" width="180" height="12" forecolor="#072153" uuid="f1d3404f-75f2-42f6-9211-4ef9163e9db1">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{email}]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report">
                <reportElement x="70" y="80" width="180" height="12" forecolor="#072153" uuid="cf5e3997-8bd8-4056-aad1-1d6850450976">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{phone}]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report">
                <reportElement x="70" y="100" width="180" height="12" forecolor="#072153" uuid="485b6f64-9d8f-4ea1-afbb-c790feab17d7">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{nis}]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report">
                <reportElement x="350" y="60" width="190" height="12" forecolor="#072153" uuid="5c04ec10-e833-4d47-9ca4-6f8afb573dfa">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{nama_institusi}]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report">
                <reportElement x="350" y="80" width="190" height="12" forecolor="#072153" uuid="993136c0-3ccc-4f92-bebe-f842f39f8b96">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{jurusan}]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report">
                <reportElement x="350" y="100" width="190" height="12" forecolor="#072152" uuid="937329fa-12eb-4d0f-bca7-6b8a18279ecf">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{tahun_masuk}]]></textFieldExpression>
            </textField>
        </band>
        <band height="105">
            <property name="com.jaspersoft.studio.unit.height" value="px"/>
            <rectangle radius="5">
                <reportElement x="3" y="6" width="549" height="91" forecolor="#FFFFFF" uuid="f7b34592-60da-4ffc-aa90-ebfa4276e5c8"/>
                <graphicElement>
                    <pen lineColor="#A7A7A7"/>
                </graphicElement>
            </rectangle>
            <rectangle radius="5">
                <reportElement x="3" y="7" width="549" height="35" forecolor="#072153" backcolor="#072153" uuid="7b2297af-d6b0-44cc-be81-9fe0625cfaab">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
            </rectangle>
            <staticText>
                <reportElement x="20" y="17" width="126" height="15" forecolor="#FFFFFF" uuid="f409f3f2-8183-4128-b3c0-8589bf9a4737">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="12" isBold="true"/>
                </textElement>
                <text><![CDATA[Info Kelas Industri]]></text>
            </staticText>
            <staticText>
                <reportElement x="20" y="53" width="100" height="12" forecolor="#A7A7A7" uuid="95548d9d-31cd-4045-a5b5-1f8168bac602">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[Nama Kelas Industri]]></text>
            </staticText>
            <staticText>
                <reportElement x="20" y="73" width="100" height="12" forecolor="#A7A7A7" uuid="3f7f622e-8f0f-4c54-8f8b-7e84813e2b84">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[Mulai - Selesai]]></text>
            </staticText>
            <staticText>
                <reportElement x="331" y="53" width="85" height="12" forecolor="#A7A7A7" uuid="daab1f4c-b3d8-447c-ac1c-8f05af3893f5">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[Learning Path]]></text>
            </staticText>
            <staticText>
                <reportElement x="331" y="73" width="85" height="12" forecolor="#A7A7A7" uuid="b16b668b-019e-4618-8400-71a7067bd447">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[Guru Pendamping]]></text>
            </staticText>
            <textField evaluationTime="Report">
                <reportElement x="130" y="53" width="190" height="12" forecolor="#072153" uuid="23d636b5-7d43-46da-8e9b-ef74f8e088dd">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{nama_kelas_industri}]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report">
                <reportElement x="130" y="73" width="190" height="12" forecolor="#072153" uuid="974ff3e0-eb00-4950-aa5c-447ecac3f2a8">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{mulai_selesai}]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report">
                <reportElement x="421" y="53" width="118" height="12" forecolor="#072153" uuid="63b4f86e-58de-4d91-9e10-3ccc60fa3147">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{learning_path}]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report">
                <reportElement x="421" y="73" width="118" height="12" forecolor="#072153" uuid="c31e29c9-de93-4e3b-828c-db0bac58df45">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{guru_pendamping}]]></textFieldExpression>
            </textField>
        </band>
        <band height="95">
            <property name="com.jaspersoft.studio.unit.height" value="px"/>
            <rectangle radius="5">
                <reportElement x="3" y="6" width="549" height="80" forecolor="#FFFFFF" uuid="6fa728fd-0d88-40cf-bafd-0ad2a01c630b">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <graphicElement>
                    <pen lineColor="#A7A7A7"/>
                </graphicElement>
            </rectangle>
            <rectangle radius="5">
                <reportElement x="3" y="7" width="549" height="35" forecolor="#072153" backcolor="#072153" uuid="814e3559-669e-47dd-a6d5-4574b1dee424">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
            </rectangle>
            <staticText>
                <reportElement x="20" y="17" width="126" height="15" forecolor="#FFFFFF" uuid="69c0b510-696d-402e-9d13-18642c72ce08">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="12" isBold="true"/>
                </textElement>
                <text><![CDATA[History Webinar]]></text>
            </staticText>
            <staticText>
                <reportElement x="20" y="57" width="110" height="12" forecolor="#A7A7A7" uuid="e7675e79-2aba-401f-af4b-f355fdbe9090">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[Jumlah Event Webinar]]></text>
            </staticText>
            <staticText>
                <reportElement x="215" y="57" width="85" height="12" forecolor="#A7A7A7" uuid="9d4c1905-348d-427c-b44b-6f981761f04d">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[Jumlah Kehadiran]]></text>
            </staticText>
            <staticText>
                <reportElement x="376" y="57" width="98" height="12" forecolor="#A7A7A7" uuid="7cf7f9d3-4f09-4290-a672-63c91d9abeb9">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="10"/>
                </textElement>
                <text><![CDATA[Jumlah Tidak Hadir]]></text>
            </staticText>
            <textField evaluationTime="Report" isBlankWhenNull="false">
                <reportElement x="134" y="57" width="36" height="12" forecolor="#072153" uuid="0d68fdb8-191f-4fb6-84e0-95f5ffe89b7b">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu"/>
                </textElement>
                <textFieldExpression><![CDATA[($P{jml_webinar} == null ? "-" : $P{jml_webinar})]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report" isBlankWhenNull="false">
                <reportElement x="305" y="57" width="38" height="12" forecolor="#072153" uuid="890382ed-0744-4e2a-8dfd-6bd11aaf898c">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                </reportElement>
                <textFieldExpression><![CDATA[($P{jml_hadir} == null ? "-" : $P{jml_hadir})]]></textFieldExpression>
            </textField>
            <textField evaluationTime="Report" isBlankWhenNull="false">
                <reportElement x="478" y="57" width="56" height="12" forecolor="#072153" uuid="f24cf5ab-adbc-40d8-8865-4db4ce1aab1d">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textFieldExpression><![CDATA[($P{jml_tdk_hadir} == null ? "-" : $P{jml_tdk_hadir})]]></textFieldExpression>
            </textField>
        </band>
        <band height="115">
            <rectangle radius="5">
                <reportElement stretchType="RelativeToTallestObject" x="3" y="6" width="549" height="94" forecolor="#FFFFFF" uuid="9f35714f-f258-4709-87c7-8b00f8b36307">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <graphicElement>
                    <pen lineColor="#A7A7A7"/>
                </graphicElement>
            </rectangle>
            <rectangle radius="5">
                <reportElement x="3" y="7" width="549" height="35" forecolor="#072153" backcolor="#072153" uuid="5dfcd74e-1ced-452a-a738-58b332eebc2f">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
            </rectangle>
            <staticText>
                <reportElement x="20" y="17" width="126" height="15" forecolor="#FFFFFF" uuid="e896ba20-92dd-4aa6-ad37-6a53a08e182a">
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textElement>
                    <font fontName="Ubuntu" size="12" isBold="true"/>
                </textElement>
                <text><![CDATA[Learning Path]]></text>
            </staticText>
            <componentElement>
                <reportElement x="20" y="52" width="349" height="20" uuid="b014b59d-186c-42cd-b975-a7a1ca18ca9f"/>
                <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="Dataset1" uuid="c2d22baa-bd94-4c07-8ad5-a20d377feca9">
                        <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(java.util.Arrays.asList($P{arrayAccepter}.split(",")), false)]]></dataSourceExpression>
                    </datasetRun>
                    <jr:listContents height="20" width="349">
                        <textField evaluationTime="Report">
                            <reportElement x="0" y="0" width="349" height="20" forecolor="#072153" uuid="c6bd4e2a-e756-4089-bdf7-9b06b5575201"/>
                            <textFieldExpression><![CDATA[$F{_THIS}]]></textFieldExpression>
                        </textField>
                    </jr:listContents>
                </jr:list>
            </componentElement>
            <componentElement>
                <reportElement x="413" y="56" width="100" height="16" uuid="28eb786b-91fe-418a-ab7b-2acdb85bcb89"/>
                <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="Dataset1" uuid="891da91a-0690-48b9-8e3b-fd5260ddad4f">
                        <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(java.util.Arrays.asList($P{arrayJoinDate}.split(",")), false)]]></dataSourceExpression>
                    </datasetRun>
                    <jr:listContents height="16" width="100">
                        <textField evaluationTime="Report">
                            <reportElement x="0" y="0" width="100" height="16" uuid="e660c8a6-d0ec-4af7-a6b0-9d859ad8791c"/>
                            <textFieldExpression><![CDATA[$F{fieldjoindate}]]></textFieldExpression>
                        </textField>
                    </jr:listContents>
                </jr:list>
            </componentElement>
        </band>
    </detail>
</jasperReport>

我尝试用谷歌搜索错误代码,但没有找到任何适合我的解决方案。谁能帮我解决这个错误?

标签: jasper-reportsjavabeans

解决方案


推荐阅读