[#996] - NoSuchMethodError in Filling report

Category:
Bug report
Priority:
Low
Status:
Assigned
Project: Severity:
Trivial
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

Original issue: http://sourceforge.net/tracker/index.php?func=detail&aid=1328543&group_i...

[ 1328543 ] NoSuchMethodError in Filling report

Submitted By: idan - idanam
Date Submitted: 2005-10-17 03:30
Last Updated By: gt78 - Comment added
Date Last Updated: 2006-04-05 14:38
Number of Comments: 5
Number of Attachments: 0

Assigned To: Giulio Toffoli
Priority: 5

Summary:
NoSuchMethodError in Filling report
After I created a chart (3D pie) and compiled it when I tried to execute my report I got an error message .

The Error I got:
Filling report... Using report virtualizer... Size:
100000 Cache directory: . Error filling print...
java.lang.NoSuchMethodError: org.jfree.chart.JFreeChart.getLegend()Lorg/jfree/chart/title/LegendTitle;
at net.sf.jasperreports.renderers.JCommonDrawableRenderer.<init>(JCommonDrawableRenderer.java:77)
at net.sf.jasperreports.engine.fill.JRFillChart.evaluateImage(JRFillChart.java:597)
at net.sf.jasperreports.engine.fill.JRFillChart.evaluate(JRFillChart.java:529)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:353)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummarySamePage(JRVerticalFiller.java:789)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:740)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:257)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:136)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:953)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:780)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:163)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:625)
at java.lang.Thread.run(Thread.java:534)
Print not filled. Try to use an EmptyDataSource..

Thanks

Comments

Date: 2006-04-05 14:38
Sender: gt78SourceForge.net SubscriberProject Admin
Logged In: YES
user_id=616744

Are you still experiencing this problem? I was not able to reproduce it.

Giulio

Date: 2005-10-19 02:18
Sender: idanam
Logged In: YES
user_id=1347890

I don't have any files in my classpath and I didn't installed older version of iReport on my computer,I didn't mention it before but I have linux (red hat 9).

Thanks again
and another thing :
1)every time I add a static text field to my report and I compile it I get this error message:

---CUT---
Error compiling the report java source!
it.businesslogic.ireport.ReportClassLoader@f0761a
- Body event threw error
java.lang.IllegalAccessError: tried to access field
org.apache.commons.digester.Digester.log from class
org.apache.commons.digester.SetNestedPropertiesRule$AnyChildRule
at
org.apache.commons.digester.SetNestedPropertiesRule$AnyChildRule.body(SetNestedPropertiesRule.java:393)
at org.apache.commons.digester.Rule.body(Rule.java:240)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1034)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1720)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
at
org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at
org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:236)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:223)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:211)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:165)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:149)
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)
java.lang.IllegalAccessError: tried to access field
org.apache.commons.digester.Digester.log from class
org.apache.commons.digester.SetNestedPropertiesRule$AnyChildRule
at
org.apache.commons.digester.SetNestedPropertiesRule$AnyChildRule.body(SetNestedPropertiesRule.java:393)
at org.apache.commons.digester.Rule.body(Rule.java:240)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1034)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1720)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at
org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
at
org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at
org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:236)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:223)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:211)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:165)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:149)
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)

----CUT---
but if I use the "Transform in Text Field " before I compile it's o.k is it suppose to work only in this way?

2)I had some problems using the Jasper XML Datasource Feature. I used the sample file in the site named addressbook.xml as my datasource and i defiend the select expression to be /addressbook/category/person and defined a field to be /addressbook/category/person/LASTNAME and i got in my report the first person lastname only (repated several times) and not all the lastnames in the XML document.

Did I do something wrong?

Thanks
Idan

Date: 2005-10-19 01:06
Sender: gt78SourceForge.net SubscriberProject Admin
Logged In: YES
user_id=616744

Check your classpath, I'm pretty sure that an old version of JFreeChart is found before the 1.0.0-rc1. This can happen if you have installed iReport over an old
installation.

Giulio

Date: 2005-10-19 00:25
Sender: idanam
Logged In: YES
user_id=1347890

I have the newest version in my lib directory (jfreechart-1.0.0-rc1).

Tahnks ,anyway.

Date: 2005-10-17 03:38
Sender: gt78SourceForge.net SubscriberProject Admin
Logged In: YES
user_id=616744

Perhaps you still have an old JFreeChart in your lib directory

tcloonan's picture
633
Joined: Dec 22 2006 - 1:13am
Last seen: 12 years 4 months ago
Feedback
randomness