Jump to content
Changes to the Jaspersoft community edition download ×

Digester Error on Sun App 8


2004 IR Help

Recommended Posts

By: Wi Li Lim - kidearth

Digester Error on Sun App 8

2005-09-01 02:09

Hi,

Got my jasper report to function properly within tomcat/uportal environment. I was able to compile and generate my report. However, when I put it up on Sun App server 8.0, it gives me the following error trace..

 

Can anyone advise me on what happened? Error Trace seems to suggests that the xml file is not valid format, but under tomcat, it is ok. So... its very puzzling..

 

The code I used is as follows:

// This is used in a jsp file calling another helper class.

JRProperties.setProperty(

JRProperties.COMPILER_CLASSPATH,

application.getRealPath("/WEB-INF/lib/jasperreports-1.0.1.jar") +

System.getProperty("path.separator") +

application.getRealPath("/WEB-INF/classes/")

);

 

JRProperties.setProperty(

JRProperties.COMPILER_TEMP_DIR,

application.getRealPath("/reports/")

);

 

conn = this.getFormSvrDbMgr().getConnection();

reportUrl = "/reports/ContestUserDetails";

reportName=application.getRealPath("/reports") + "/ContestUserDetails";

 

 

 

Map parameters = new HashMap();

parameters.put("FORM_ID", formId);

 

 

if(!"".equals(userId))

{

userId=" and ua.userId="" + userId + "" ";

}

else

{

userId="";

}

 

parameters.put("USER_ID", userId);

 

successful = ReportHelper.generateJasperReport(reportName, parameters, reportFormat, conn);

 

______________________ Helper Class -----------

public class ReportHelper

{

public static boolean generateJasperReport(String reportName, String destinationName, Map parameters, String reportExportType, Connection conn)

{

java.io.File destReportFile = null;

JRAbstractExporter exporter=null;

boolean result = true;

 

try

{

 

String reportFormat=reportName + ".jrxml";

 

File reportFormatFile = new File(reportFormat);

 

if(!reportFormatFile.exists())

throw new JRRuntimeException(reportFormat + " not found.");

 

 

JasperCompileManager.compileReportToFile(reportFormat);

 

String reportDesign = reportName + ".jasper";

 

JasperPrint reportBinary = JasperFillManager.fillReport(reportDesign, parameters, conn);

 

if(reportExportType!=null && !"".equals(reportExportType))

{

String reportFilePath = destinationName + "." + reportExportType;

 

destReportFile = new java.io.File(reportFilePath);

}

if(EXCEL_FORMAT.equals(reportExportType))

{

exporter = new JRXlsExporter();

 

exporter.setParameter(JRExporterParameter.JASPER_PRINT, reportBinary);

exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destReportFile.toString());

exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE);

 

exporter.exportReport();

}

else if(PDF_FORMAT.equals(reportExportType))

{

JasperExportManager.exportReportToPdfFile(reportBinary,destReportFile.toString());

}

else if(CSV_FORMAT.equals(reportExportType))

{

exporter = new JRCsvExporter();

 

exporter.setParameter(JRExporterParameter.JASPER_PRINT, reportBinary);

exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destReportFile.toString());

 

exporter.exportReport();

 

}

else if(RTF_FORMAT.equals(reportExportType))

{

exporter = new JRRtfExporter();

 

exporter.setParameter(JRExporterParameter.JASPER_PRINT, reportBinary);

exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destReportFile.toString());

 

exporter.exportReport();

 

}

else

{

result=false;

}

 

 

}

catch(Exception e)

{

result =false;

getLogger().error("Error generating jasper report.",e);

}

 

return result;

}

}

 

------------- Stack Trace -----------------

 

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: 2005-09-01 16:20:20,831 [service-j2ee-2] ERROR org.apache.commons.digester.Digester:1558 - Parse Fatal Error at line 4 column 310: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:385)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:315)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.impl.dtd.XMLNSDTDValidator.startNamespaceScope(XMLNSDTDValidator.java:231)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1945)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:775)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:306)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:594)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1610)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:348)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:539)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1125)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at org.apache.commons.digester.Digester.parse(Digester.java:1647)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:236)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:223)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:211)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:165)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:149)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:81)

[01/Sep/2005:16:20:20] INFO (28605): CORE3282: stdout: at com.gdis.util.ReportHelper.generateJasperReport(ReportHelper.java:58)

 

 

 

 

 

By: Wi Li Lim - kidearth

RE: Digester Error on Sun App 8

2005-09-01 02:52

The JasperDesign is as follows:

 

<?xml version="1.0" encoding="UTF-8" ?>

<!-- Created with iReport - A designer for JasperReports -->

<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport

name="ContestUserDetails"

columnCount="1"

printOrder="Vertical"

orientation="Portrait"

pageWidth="595"

pageHeight="842"

columnWidth="535"

columnSpacing="0"

leftMargin="30"

rightMargin="30"

topMargin="20"

bottomMargin="20"

whenNoDataType="NoPages"

isTitleNewPage="true"

isSummaryNewPage="false">

<property name="ireport.scriptlethandling" value="0" />

<import value="java.util.*" />

<import value="net.sf.jasperreports.engine.*" />

<import value="net.sf.jasperreports.engine.data.*" />

<parameter name="DOCUMENT_TITLE" isForPrompting="false" class="java.lang.String">

<parameterDescription><![CDATA[Title of Document]]></parameterDescription>

<defaultValueExpression ><![CDATA["Form Server 2 - Contest User Details"]]></defaultValueExpression>

</parameter>

<parameter name="DOCUMENT_VERSION" isForPrompting="false" class="java.lang.String">

<parameterDescription><![CDATA[Version of this Document]]></parameterDescription>

<defaultValueExpression ><![CDATA["1.0"]]></defaultValueExpression>

</parameter>

<parameter name="DOCUMENT_PREPARED_BY" isForPrompting="false" class="java.lang.String">

<parameterDescription><![CDATA[Author of this document]]></parameterDescription>

<defaultValueExpression ><![CDATA["LWL"]]></defaultValueExpression>

</parameter>

<parameter name="DOCUMENT_CREATED_DATE" isForPrompting="false" class="java.util.Date">

<parameterDescription><![CDATA[Time which this document is created]]></parameterDescription>

<defaultValueExpression ><![CDATA[new Date()]]></defaultValueExpression>

</parameter>

<parameter name="FORM_ID" isForPrompting="false" class="java.lang.String"/>

<parameter name="USER_ID" isForPrompting="false" class="java.lang.String"/>

<queryString><![CDATA[sELECT fi.FormId, fi.Name, pi.PortalID, pi.PortalName, ua.Answer ,ua.UserID, q.Question,

q.ModelAnswer, q.QuestionID, q.QuestionOrder, q.ModelAnswer,q.Score,

(select sum(score) from QuestionInfo po where po.QuestionId=ua.QuestionId and ua.Answer=po.ModelAnswer and ua.Answer<>"") as TotalScore FROM FormInfo fi, PortalInfo pi,

UserAnswers ua, QuestionInfo q WHERE fi.FormID="$P!{FORM_ID}"

$P!{USER_ID} and fi.FormId=ua.FormId and

pi.PortalId=ua.PortalId and ua.QuestionID=q.QuestionID ORDER BY fi.FormId, ua.Portalid,

ua.UserID, q.QuestionOrder, q.QuestionID ASC]]></queryString>

<field name="FormId" class="java.lang.String"/>

<field name="Name" class="java.lang.String"/>

<field name="PortalID" class="java.lang.String"/>

<field name="PortalName" class="java.lang.String"/>

<field name="Answer" class="java.lang.String"/>

<field name="UserID" class="java.lang.String"/>

<field name="Question" class="java.lang.String"/>

<field name="ModelAnswer" class="java.lang.String"/>

<field name="QuestionID" class="java.lang.String"/>

<field name="QuestionOrder" class="java.lang.Short"/>

<field name="Score" class="java.lang.Short"/>

<field name="TotalScore" class="java.lang.Double"/>

<group name="FormId" isStartNewColumn="false" isStartNewPage="true" isResetPageNumber="false" isReprintHeaderOnEachPage="false" minHeightToStartNewPage="0" >

<groupExpression><![CDATA[$F{FormId}]]></groupExpression>

<groupHeader>

<band height="89" isSplitAllowed="true" >

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="7"

y="37"

width="513"

height="43"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField-8"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[" Portal Id : " + $F{PortalID} + "nn" +

" Portal Name : " + $F{PortalName}]]></textFieldExpression>

</textField>

<staticText>

<reportElement

mode="Transparent"

x="3"

y="14"

width="529"

height="24"

forecolor="#000000"

backcolor="#FFFFFF"

key="staticText-3"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="14" isBold="true" isItalic="false" isUnderline="true" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<text><![CDATA[RESULT DETAILS]]></text>

</staticText>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="7"

y="86"

width="528"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

key="line-3"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" />

</line>

</band>

</groupHeader>

<groupFooter>

<band height="1" isSplitAllowed="true" >

</band>

</groupFooter>

</group>

<group name="PortalId" isStartNewColumn="false" isStartNewPage="true" isResetPageNumber="false" isReprintHeaderOnEachPage="false" minHeightToStartNewPage="0" >

<groupExpression><![CDATA[$F{PortalID}]]></groupExpression>

<groupHeader>

<band height="3" isSplitAllowed="true" >

</band>

</groupHeader>

<groupFooter>

<band height="1" isSplitAllowed="true" >

</band>

</groupFooter>

</group>

<group name="UserId" isStartNewColumn="false" isStartNewPage="false" isResetPageNumber="false" isReprintHeaderOnEachPage="false" minHeightToStartNewPage="0" >

<groupExpression><![CDATA[$F{UserID}]]></groupExpression>

<groupHeader>

<band height="64" isSplitAllowed="true" >

<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="17"

y="16"

width="465"

height="18"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA["User Id: " + $F{UserID}]]></textFieldExpression>

</textField>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="6"

y="7"

width="528"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

key="line-1"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" />

</line>

<staticText>

<reportElement

mode="Transparent"

x="20"

y="42"

width="29"

height="22"

forecolor="#000000"

backcolor="#FFFFFF"

key="staticText-4"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="true" isItalic="false" isUnderline="true" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<text><![CDATA[s/N]]></text>

</staticText>

<staticText>

<reportElement

mode="Transparent"

x="51"

y="43"

width="213"

height="21"

forecolor="#000000"

backcolor="#FFFFFF"

key="staticText-5"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="true" isItalic="false" isUnderline="true" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<text><![CDATA[QUESTION]]></text>

</staticText>

<staticText>

<reportElement

mode="Transparent"

x="281"

y="43"

width="162"

height="20"

forecolor="#000000"

backcolor="#FFFFFF"

key="staticText-6"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="true" isItalic="false" isUnderline="true" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<text><![CDATA[ANSWER]]></text>

</staticText>

<staticText>

<reportElement

mode="Transparent"

x="457"

y="44"

width="74"

height="20"

forecolor="#000000"

backcolor="#FFFFFF"

key="staticText-7"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false">

<printWhenExpression><![CDATA[new Boolean(!"".equals($F{ModelAnswer}))]]></printWhenExpression>

</reportElement>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="true" isItalic="false" isUnderline="true" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<text><![CDATA[sCORE]]></text>

</staticText>

</band>

</groupHeader>

<groupFooter>

<band height="26" isSplitAllowed="true" >

<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="458"

y="6"

width="73"

height="18"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField-15"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false">

<printWhenExpression><![CDATA[new Boolean(!"".equals($F{ModelAnswer}))]]></printWhenExpression>

</reportElement>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[string.valueOf($F{TotalScore}).equals("null")?"0":String.valueOf($F{TotalScore})]]></textFieldExpression>

</textField>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="393"

y="4"

width="135"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

key="line-5"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false">

<printWhenExpression><![CDATA[new Boolean(!"".equals($F{ModelAnswer}))]]></printWhenExpression>

</reportElement>

<graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" />

</line>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="394"

y="24"

width="135"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

key="line-6"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false">

<printWhenExpression><![CDATA[new Boolean(!"".equals($F{ModelAnswer}))]]></printWhenExpression>

</reportElement>

<graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" />

</line>

<staticText>

<reportElement

mode="Transparent"

x="397"

y="6"

width="55"

height="17"

forecolor="#000000"

backcolor="#FFFFFF"

key="staticText-8"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false">

<printWhenExpression><![CDATA[new Boolean(!"".equals($F{ModelAnswer}))]]></printWhenExpression>

</reportElement>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<text><![CDATA[Total Score:]]></text>

</staticText>

</band>

</groupFooter>

</group>

<background>

<band height="0" isSplitAllowed="true" >

</band>

</background>

<title>

<band height="318" isSplitAllowed="true" >

<image scaleImage="FillFrame" vAlign="Top" hAlign="Left" isUsingCache="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Opaque"

x="368"

y="5"

width="163"

height="46"

forecolor="#000000"

backcolor="#FFFFFF"

key="image-2"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<graphicElement stretchType="NoStretch" pen="None" fill="Solid" />

<imageExpression class="java.awt.Image"><![CDATA[]]></imageExpression> </image>

<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="85"

y="117"

width="367"

height="183"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField-7"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="1Point" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[" Document Title : " + $P{DOCUMENT_TITLE} + "nn" +

" Version : " + $P{DOCUMENT_VERSION} + "nn" +

" Prepared By : " + $P{DOCUMENT_PREPARED_BY} + "nn" +

" Date Created : " + $P{DOCUMENT_CREATED_DATE} + "nn" +

" Form Id : " + $F{FormId} + "nn" +

" Form Name : " + $F{Name}]]></textFieldExpression>

</textField>

</band>

</title>

<pageHeader>

<band height="24" isSplitAllowed="true" >

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="2"

y="3"

width="388"

height="18"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField-1"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$P{DOCUMENT_TITLE}]]></textFieldExpression>

</textField>

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="396"

y="3"

width="136"

height="18"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField-2"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$P{DOCUMENT_VERSION}]]></textFieldExpression>

</textField>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="4"

y="22"

width="530"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

key="line-2"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" />

</line>

</band>

</pageHeader>

<columnHeader>

<band height="3" isSplitAllowed="true" >

</band>

</columnHeader>

<detail>

<band height="27" isSplitAllowed="true" >

<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="50"

y="6"

width="214"

height="20"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{Question}]]></textFieldExpression>

</textField>

<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="281"

y="8"

width="163"

height="18"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{Answer}]]></textFieldExpression>

</textField>

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="19"

y="8"

width="29"

height="18"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$V{UserId_COUNT} + "."]]></textFieldExpression>

</textField>

<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="458"

y="8"

width="70"

height="18"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField-10"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false">

<printWhenExpression><![CDATA[new Boolean(!"".equals($F{ModelAnswer}))]]></printWhenExpression>

</reportElement>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[($F{Answer}.equals($F{ModelAnswer}))?String.valueOf($F{Score}):"0"]]></textFieldExpression>

</textField>

</band>

</detail>

<columnFooter>

<band height="2" isSplitAllowed="true" >

</band>

</columnFooter>

<pageFooter>

<band height="30" isSplitAllowed="true" >

<staticText>

<reportElement

mode="Transparent"

x="2"

y="11"

width="196"

height="17"

forecolor="#000000"

backcolor="#FFFFFF"

key="staticText-2"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />

</textElement>

<text><![CDATA[Copyright © GDIS, 2005. All Rights Reserved.]]></text>

</staticText>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="2"

y="6"

width="531"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

key="line-4"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" />

</line>

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="322"

y="10"

width="174"

height="19"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField-13"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Helvetica" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of "]]></textFieldExpression>

</textField>

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None" hyperlinkTarget="Self" >

<reportElement

mode="Transparent"

x="496"

y="10"

width="36"

height="19"

forecolor="#000000"

backcolor="#FFFFFF"

key="textField-14"

stretchType="NoStretch"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">

<font fontName="Helvetica" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>

</textField>

</band>

</pageFooter>

<lastPageFooter>

<band height="4" isSplitAllowed="true" >

</band>

</lastPageFooter>

<summary>

<band height="3" isSplitAllowed="true" >

</band>

</summary>

</jasperReport>

 

 

 

 

 

By: Wi Li Lim - kidearth

RE: Digester Error on Sun App 8

2005-09-07 03:03

ok.. solved it.

 

 

 

 

By: Luc Feys - telenko

RE: Digester Error on Sun App 8

2005-09-12 00:55

Hi,

 

I just upgraded from Jasperreports 0.6.8 to 1.0.2 and I am getting the same exceptiont when trying to compile my reports. Could you tell me what you have done to solve the problem?

 

Thanks a lot.

 

Luc

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...