Jasper Book Report - error sectionType

0

Hello,

Can anyone help me on how to create a simple book report with 2 content pages, to be generated to an Excel file? 

The book report works well when previewed locally on Jaspersoft Studio (version 6.3.1) when used with the Sample DB.

But when I tried running the report with actual sub-reports via my JasperServer, I'm getting this error:

cvc-complex-type.3.2.2 : L'attribut 'sectionType' n'est pas autorisé dans l'élément 'jasperReport'.

If I remove the sectionType attribute, I get this error:

cvc-complex-type.2.4.a : Contenu non valide trouvé à partir de l'élément 'part'. L'une des valeurs '{"http://jasperreports.sourceforge.net/jasperreports":band}' est attendue.

 

Both sub-reports that make up the "content" pages run well when generated via the JasperServer individually.

 

Is it perhaps an error caused by outdated version of JasperServer? I have seen most Book Reports for Jaspersoft Studio 6.7.0 but not on lower versions.

 

Any solution?

 

Any help would be greatly appreciated!

 

Code:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.3.1.final using JasperReports Library version 6.3.1  -->
<!-- 2019-02-25T17:24:33 -->
<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="Wave_Book" pageWidth="595" pageHeight="842" sectionType="Part" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30" uuid="8aeb51ad-eabb-4c1a-b4c6-2ba65fcea625">
    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="New Data Adapter (2)"/>
    <property name="net.sf.jasperreports.print.create.bookmarks" value="true"/>
    <property name="com.jaspersoft.studio.book.group.cover.header" value="Cover and Table of Contents"/>
    <property name="com.jaspersoft.studio.book.group.cover.footer" value="Backcover"/>
    <property name="com.jaspersoft.studio.data.sql.tables" value=""/>
    <queryString>
        <![CDATA[select null as empty from dso.t_organisation limit 1;]]>
    </queryString>
    <field name="empty" class="java.lang.String"/>
    <group name="cover"/>
    <detail>
        <part uuid="63a8632b-a2db-4a20-a887-0952e51c8da9">
            <partNameExpression><![CDATA["subtest 1"]]></partNameExpression>
            <p:subreportPart xmlns:p="http://jasperreports.sourceforge.net/jasperreports/parts" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/parts http://jasperreports.sourceforge.net/xsd/parts.xsd">
                <subreportParameter name="REPORT_CONNECTION">
                    <subreportParameterExpression><![CDATA[$P{REPORT_CONNECTION}]]></subreportParameterExpression>
                </subreportParameter>
                <subreportExpression><![CDATA["/mnt/tomcat_gfs/data/storage/fileserver/reports/bordereaureversementclientv34testDecembrepart1.jasper"]]></subreportExpression>
            </p:subreportPart>
        </part>
        <part uuid="aa6eba4e-de2b-449d-8785-b0c128fb4222">
            <partNameExpression><![CDATA["subtest 2"]]></partNameExpression>
            <p:subreportPart xmlns:p="http://jasperreports.sourceforge.net/jasperreports/parts" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/parts http://jasperreports.sourceforge.net/xsd/parts.xsd">
                <subreportParameter name="REPORT_CONNECTION">
                    <subreportParameterExpression><![CDATA[$P{REPORT_CONNECTION}]]></subreportParameterExpression>
                </subreportParameter>
                <subreportExpression><![CDATA["/mnt/tomcat_gfs/data/storage/fileserver/reports/bordereaureversementclientv34testDecembrepart2.jasper"]]></subreportExpression>
            </p:subreportPart>
        </part>
    </detail>
</jasperReport>
 

anji.viper's picture
Joined: Mar 8 2017 - 2:59am
Last seen: 1 month 2 weeks ago

0 Answers:

No answers yet
Feedback