Jump to content

Recommended Posts

Posted

By: LRK - ravikanth_l

Unable to compile any report using iReport

2005-11-13 23:12

Hi All,

 

I am new to JasperReports and iReport. Just downloaded both of them and followed the following steps :

 

1. Copied tools.jar to iReportlib

2. Started the iReport and created an empty report

3. Tried to compile using Build->compile menu option.

 

Getting the following exception:

?Compiling to file... D:tempuntitled_report_1.jasper -> D:InstallDiriReport-0.5.2untitled_report_1.java

Error compiling the report java source!

java.lang.NoSuchMethodError:?org.apache.commons.collections.ArrayStack:?method?<init>(I)V?not?found ????at?org.apache.commons.digester.Digester.<init>(Digester.java:151) ????at?net.sf.jasperreports.engine.xml.JRXmlDigester.<init>(JRXmlDigester.java:62) ????at?net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:786) ????at?net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:202) ????at?net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167) ????at?net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151) ????at?net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107) ????at?it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:461) ????at?java.lang.Thread.run(Thread.java:534)

 

I have the following jars in my iReport/lib folder:

barbecue-1.1.jar

bsh-1.3.0.jar

commons-beanutils-1.5.jar

commons-collections-2.1.jar

commons-digester-1.7.jar

commons-logging-1.0.2.jar

commons-logging-api-1.0.2.jar

groovy-all-1.0-beta-10.jar

hsqldb-1.61.jar

iReport.jar

itext-1.3.1.jar

jasperreports-1.1.0.jar

jcmdline-1.0.2.jar

jcommon-1.0.0-rc1.jar

jdt-compiler.jar

jfreechart-1.0.0-rc1.jar

jr-bsh-compiler.jar

jr-groovy-compiler.jar

log4j-1.2.8.jar

looks-1.2.2.jar

mysql-connector-java-3.1.11-bin.jar

pngencoder.jar

poi-2.0-final-20040126.jar

tinylaf.jar

tools.jar

xalan.jar

xercesImpl.jar

xml-apis.jar

 

And my created report using iReport is:

<?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="untitled_report_1"

 

language="groovy" 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="false"

isSummaryNewPage="false">

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

<property name="ireport.encoding" value="UTF-8" />

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

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

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

<background>

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

</band>

</background>

<title>

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

</band>

</title>

<pageHeader>

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

</band>

</pageHeader>

<columnHeader>

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

</band>

</columnHeader>

<detail>

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

</band>

</detail>

<columnFooter>

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

</band>

</columnFooter>

<pageFooter>

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

</band>

</pageFooter>

<lastPageFooter>

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

</band>

</lastPageFooter>

<summary>

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

</band>

</summary>

</jasperReport>

 

Can anyone please let me know what going wrong with this. Not able to compile any report. Getting the same exception

 

Any help will be appreciated.

 

With Regards,

Ravi

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...