dboutin Posted March 31, 2009 Share Posted March 31, 2009 Hi,When launching a report inside iReport 3.5.0 using the 'Run report unit command' I've got the following error. This error does not occurs if I click on preview button of iReport. The report in iReport is the same that is deployed on JasperServer 3.5. Following is the error stack trace and the xml of the report.Regards,Denis. ---1 - org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'pieSeries'. One of '{"http://jasperreports.sourceforge.net/jasperreports":dataset, "http://jasperreports.sourceforge.net/jasperreports":keyExpression, "http://jasperreports.sourceforge.net/jasperreports":valueExpression, "http://jasperreports.sourceforge.net/jasperreports":labelExpression, "http://jasperreports.sourceforge.net/jasperreports":sectionHyperlink}' is expected. java.lang.Exception: 1 - org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'pieSeries'. One of '{"http://jasperreports.sourceforge.net/jasperreports":dataset, "http://jasperreports.sourceforge.net/jasperreports":keyExpression, "http://jasperreports.sourceforge.net/jasperreports":valueExpression, "http://jasperreports.sourceforge.net/jasperreports":labelExpression, "http://jasperreports.sourceforge.net/jasperreports":sectionHyperlink}' is expected. at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:403) at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:320) at com.jaspersoft.ireport.jasperserver.ReportRunner.run(ReportRunner.java:70) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) ---<?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="report3" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <parameter name="p_state" class="java.lang.String"> <parameterDescription><![CDATA[Nombre de document minimum / état]]></parameterDescription> <defaultValueExpression><![CDATA[""]]></defaultValueExpression> </parameter> <queryString> <![CDATA[sELECT treatment_jasper.`DOCUMENT_ID` AS treatment_doc_fact_2009_DOCUMENT_ID, treatment_jasper.`STATE` AS treatment_doc_fact_2009_STATE, treatment_jasper.`PROCESS_TYPE` AS treatment_doc_fact_2009_PROCESS_TYPE, treatment_jasper.`DOCUMENT_TYPE` AS treatment_doc_fact_2009_DOCUMENT_TYPE, treatment_jasper.`DATE_OPERATION` AS treatment_doc_fact_2009_DATE_OPERATION, treatment_jasper.`OPERATION` AS treatment_doc_fact_2009_OPERATION, treatment_jasper.`TREATMENT_TIME` AS treatment_doc_fact_2009_TREATMENT_TIMEFROM `treatment_jasper` treatment_jasperWHERE treatment_jasper.`STATE` like $P{p_state}ORDER BY treatment_doc_fact_2009_PROCESS_TYPE, treatment_doc_fact_2009_DOCUMENT_TYPE, treatment_doc_fact_2009_STATE]]> </queryString> <field name="treatment_doc_fact_2009_DOCUMENT_ID" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="treatment_doc_fact_2009_STATE" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="treatment_doc_fact_2009_PROCESS_TYPE" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="treatment_doc_fact_2009_DOCUMENT_TYPE" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="treatment_doc_fact_2009_DATE_OPERATION" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="treatment_doc_fact_2009_OPERATION" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="treatment_doc_fact_2009_TREATMENT_TIME" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <variable name="treatment_doc_fact_2009_TREATMENT_TIME_AVERAGE" class="java.lang.Long" resetType="Group" resetGroup="treatment_doc_fact_2009_STATE" calculation="Average"> <variableExpression><![CDATA[$F{treatment_doc_fact_2009_TREATMENT_TIME}]]></variableExpression> </variable> <variable name="Ttime_average_jours" class="java.lang.Long"> <variableExpression><![CDATA[new Long($V{treatment_doc_fact_2009_TREATMENT_TIME_AVERAGE}.longValue()/1000/60/60/24)]]></variableExpression> </variable> <variable name="Ttime_average_heures" class="java.lang.Long"> <variableExpression><![CDATA[new Long(($V{treatment_doc_fact_2009_TREATMENT_TIME_AVERAGE}.longValue() - ($V{Ttime_average_jours}.longValue() * 24 * 60 * 60 * 1000)) / 1000 / 60 / 60)]]></variableExpression> </variable> <variable name="Ttime_average_minutes" class="java.lang.Long"> <variableExpression><![CDATA[new Long(($V{treatment_doc_fact_2009_TREATMENT_TIME_AVERAGE}.longValue() - ($V{Ttime_average_jours}.longValue() * 24 * 60 * 60 * 1000) - ($V{Ttime_average_heures}.longValue() * 60 * 60 * 1000)) / 1000 / 60)]]></variableExpression> </variable> <variable name="Ttime_average_secondes" class="java.lang.Long"> <variableExpression><![CDATA[new Long( ($V{treatment_doc_fact_2009_TREATMENT_TIME_AVERAGE}.longValue() - ($V{Ttime_average_jours}.longValue() * 24 * 60 * 60 * 1000) - ($V{Ttime_average_heures}.longValue() * 60 * 60 * 1000) - ($V{Ttime_average_minutes}.longValue() * 60 * 1000)) / 1000 )]]></variableExpression> </variable> <variable name="temps_moyen" class="java.lang.String"> <variableExpression><![CDATA[$V{Ttime_average_jours} + "j" + $V{Ttime_average_heures} + "h" + $V{Ttime_average_minutes} + "m" + $V{Ttime_average_secondes} + "s"]]></variableExpression> </variable> <variable name="treatment_doc_fact_2009_TREATMENT_TIME_LOWEST" class="java.lang.Long" resetType="Group" resetGroup="treatment_doc_fact_2009_STATE" calculation="Lowest"> <variableExpression><![CDATA[$F{treatment_doc_fact_2009_TREATMENT_TIME}]]></variableExpression> </variable> <variable name="Ttime_lowest_jours" class="java.lang.Long"> <variableExpression><![CDATA[new Long($V{treatment_doc_fact_2009_TREATMENT_TIME_LOWEST}.longValue()/1000/60/60/24)]]></variableExpression> </variable> <variable name="Ttime_lowest_heures" class="java.lang.Long"> <variableExpression><![CDATA[new Long(($V{treatment_doc_fact_2009_TREATMENT_TIME_LOWEST}.longValue() - ($V{Ttime_lowest_jours}.longValue() * 24 * 60 * 60 * 1000)) / 1000 / 60 / 60)]]></variableExpression> </variable> <variable name="Ttime_lowest_minutes" class="java.lang.Long"> <variableExpression><![CDATA[new Long(($V{treatment_doc_fact_2009_TREATMENT_TIME_LOWEST}.longValue() - ($V{Ttime_lowest_jours}.longValue() * 24 * 60 * 60 * 1000) - ($V{Ttime_lowest_heures}.longValue() * 60 * 60 * 1000)) / 1000 / 60)]]></variableExpression> </variable> <variable name="Ttime_lowest_secondes" class="java.lang.Long"> <variableExpression><![CDATA[new Long( ($V{treatment_doc_fact_2009_TREATMENT_TIME_LOWEST}.longValue() - ($V{Ttime_lowest_jours}.longValue() * 24 * 60 * 60 * 1000) - ($V{Ttime_lowest_heures}.longValue() * 60 * 60 * 1000) - ($V{Ttime_lowest_minutes}.longValue() * 60 * 1000)) / 1000 )]]></variableExpression> </variable> <variable name="temps_min" class="java.lang.String"> <variableExpression><![CDATA[$V{Ttime_lowest_jours} + "j" + $V{Ttime_lowest_heures} + "h" + $V{Ttime_lowest_minutes} + "m" + $V{Ttime_lowest_secondes} + "s"]]></variableExpression> </variable> <variable name="treatment_doc_fact_2009_TREATMENT_TIME_HIGHEST" class="java.lang.Long" resetType="Group" resetGroup="treatment_doc_fact_2009_STATE" calculation="Highest"> <variableExpression><![CDATA[$F{treatment_doc_fact_2009_TREATMENT_TIME}]]></variableExpression> </variable> <group name="Initial" isStartNewPage="true"> <groupExpression><![CDATA[( ( $F{treatment_doc_fact_2009_PROCESS_TYPE} != null && $F{treatment_doc_fact_2009_PROCESS_TYPE}.length() > 0 ) ? $F{treatment_doc_fact_2009_PROCESS_TYPE}.substring( 0,1 ) : "" )]]></groupExpression> <groupHeader> <band/> </groupHeader> <groupFooter> <band/> </groupFooter> </group> <group name="treatment_doc_fact_2009_PROCESS_TYPE"> <groupExpression><![CDATA[$F{treatment_doc_fact_2009_PROCESS_TYPE}]]></groupExpression> <groupHeader> <band height="22" isSplitAllowed="false"> <textField> <reportElement mode="Opaque" x="21" y="0" width="152" height="21" forecolor="#000000" backcolor="#FFFFFF"/> <textElement> <font size="10" isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{treatment_doc_fact_2009_PROCESS_TYPE}]]></textFieldExpression> </textField> <textField> <reportElement x="173" y="0" width="56" height="20"/> <textElement textAlignment="Right"> <font isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["Nombre"]]></textFieldExpression> </textField> <textField> <reportElement x="309" y="0" width="80" height="20"/> <textElement textAlignment="Right"> <font isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["Temps moyen"]]></textFieldExpression> </textField> <textField> <reportElement x="229" y="0" width="80" height="20"/> <textElement textAlignment="Right"> <font isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["Temps min"]]></textFieldExpression> </textField> <textField> <reportElement x="389" y="0" width="100" height="20"/> <textElement textAlignment="Right"> <font isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["Temps max"]]></textFieldExpression> </textField> </band> </groupHeader> <groupFooter> <band/> </groupFooter> </group> <group name="treatment_doc_fact_2009_DOCUMENT_TYPE"> <groupExpression><![CDATA[$F{treatment_doc_fact_2009_DOCUMENT_TYPE}]]></groupExpression> <groupHeader> <band height="21"> <textField> <reportElement mode="Opaque" x="42" y="0" width="145" height="16" backcolor="#FFFFFF"/> <textElement> <font size="10" isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{treatment_doc_fact_2009_DOCUMENT_TYPE}]]></textFieldExpression> </textField> </band> </groupHeader> <groupFooter> <band/> </groupFooter> </group> <group name="treatment_doc_fact_2009_STATE"> <groupExpression><![CDATA[$F{treatment_doc_fact_2009_STATE}]]></groupExpression> <groupHeader> <band/> </groupHeader> <groupFooter> <band height="21"> <textField pattern=""> <reportElement x="173" y="0" width="56" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression class="java.lang.Integer"><![CDATA[$V{treatment_doc_fact_2009_STATE_COUNT}]]></textFieldExpression> </textField> <textField> <reportElement x="309" y="1" width="80" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression class="java.lang.String"><![CDATA[$V{temps_moyen}]]></textFieldExpression> </textField> <textField> <reportElement x="73" y="0" width="100" height="20"/> <textElement> <font isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{treatment_doc_fact_2009_STATE}]]></textFieldExpression> </textField> <textField> <reportElement x="229" y="1" width="80" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression class="java.lang.String"><![CDATA[$V{temps_min}]]></textFieldExpression> </textField> <textField> <reportElement x="389" y="1" width="100" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression class="java.lang.Long"><![CDATA[$V{treatment_doc_fact_2009_TREATMENT_TIME_HIGHEST}]]></textFieldExpression> </textField> </band> </groupFooter> </group> <background> <band/> </background> <title> <band height="352"> <line> <reportElement x="0" y="8" width="555" height="1"/> </line> <line> <reportElement positionType="FixRelativeToBottom" x="0" y="51" width="555" height="1"/> </line> <staticText> <reportElement x="65" y="16" width="424" height="35"/> <textElement textAlignment="Center"> <font size="26" isBold="true"/> </textElement> <text><![CDATA[Galec - Vue suivi]]></text> </staticText> <pie3DChart> <chart evaluationTime="Report"> <reportElement x="1" y="52" width="554" height="290"/> <chartTitle/> <chartSubtitle/> <chartLegend/> </chart> <pieDataset> <pieSeries> <keyExpression><![CDATA[$F{treatment_doc_fact_2009_STATE}]]></keyExpression> <valueExpression><![CDATA[$V{treatment_doc_fact_2009_STATE_COUNT}]]></valueExpression> <sectionHyperlink/> </pieSeries> <otherSectionHyperlink/> </pieDataset> <pie3DPlot> <plot/> </pie3DPlot> </pie3DChart> </band> </title> <pageHeader> <band/> </pageHeader> <columnHeader> <band/> </columnHeader> <detail> <band/> </detail> <columnFooter> <band/> </columnFooter> <pageFooter> <band height="34"> <textField evaluationTime="Report" pattern="" isBlankWhenNull="false"> <reportElement key="textField" x="518" y="0" width="36" height="19" forecolor="#000000" backcolor="#FFFFFF"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement> <font size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> <textField pattern="" isBlankWhenNull="false"> <reportElement key="textField" x="348" y="-1" width="170" height="19" forecolor="#000000" backcolor="#FFFFFF"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Right"> <font size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of "]]></textFieldExpression> </textField> <textField pattern="" isBlankWhenNull="false"> <reportElement key="textField" x="1" y="0" width="209" height="19" forecolor="#000000" backcolor="#FFFFFF"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement> <font size="10"/> </textElement> <textFieldExpression class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression> </textField> </band> </pageFooter> <summary> <band/> </summary></jasperReport> Link to comment Share on other sites More sharing options...
lucianc Posted March 31, 2009 Share Posted March 31, 2009 The error indicates that a report generated with iReport/JasperReports 3.5 is compiled on an older JasperReports version.Could you deploy the "JR version" report attached to this thread and confirm that your JasperServer uses JR 3.5?Regards,Lucian Link to comment Share on other sites More sharing options...
dboutin Posted April 14, 2009 Author Share Posted April 14, 2009 Hi, I've got version : JasperReports version 3.1.5-SNAPSHOT http://localhost:8099/jasperserver/reportimage?jrprint=22153734_1239703186150&image=px http://localhost:8099/jasperserver/reportimage?jrprint=22153734_1239703186150&image=px JasperReports location jar:file:/C:/Program%20Files/jasperserver-3.5/apache-tomcat/webapps/jasperserver/WEB-INF/lib/jasperreports-3.1.5-20090218.094347-2.jar!/net/sf/jasperreports/engine/JRPropertiesMap.clas Regards,Denis. Link to comment Share on other sites More sharing options...
dboutin Posted April 14, 2009 Author Share Posted April 14, 2009 The ireport version is the nb-3.5.0.Perhaps those versions (server & ireport are incompatibles ?) Regards,Denis. Link to comment Share on other sites More sharing options...
dboutin Posted April 14, 2009 Author Share Posted April 14, 2009 The version of jasperserver3.5 was downloaded here : http://sourceforge.net/project/showfiles.php?group_id=162962&package_id=195243&release_id=664344 Regards,Denis. Link to comment Share on other sites More sharing options...
lucianc Posted April 14, 2009 Share Posted April 14, 2009 You should upgrade JasperReports to 3.5.0 to fix this until the final JasperServer 3.5 is released. You can read how to do this here.Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now