Jump to content
Changes to the Jaspersoft community edition download ×

Chart generation problem


2005 IR Help

Recommended Posts

By: Nick - nick_75

Chart generation problem

2005-06-08 03:28

Hi all,

 

i'm trying to add a chart to my report. I defined the chart, a 3D Pie, the series and so on.

 

If i compile the report i don't get any error, but when I try to run the report on iReport i obtain the following error.

 

From what I learned in the past days, using iReport, i think that's the problem is related to version of some library or path error. Anyone can help me?

 

Thanks in advance, Nick.

 

----------ERROR----------

 

Filling report... Error filling print... java.lang.ClassCastException: net.sf.jasperreports.engine.JRDefaultScriptlet at fattura3.evaluate(fattura3:123) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:461) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:389) at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:349) at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:332) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummarySamePage(JRVerticalFiller.java:787) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:717) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:242) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:125) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76) 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:550) at java.lang.Thread.run(Unknown Source) NESTED BY : java.lang.ClassCastException: net.sf.jasperreports.engine.JRDefaultScriptlet at fattura3.evaluate(fattura3:123) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:461) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:389) at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:349) at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:332) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummarySamePage(JRVerticalFiller.java:787) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:717) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:242) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:125) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76) 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:550) at java.lang.Thread.run(Unknown Source) NESTED BY : net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : image_1 Source text : (java.awt.Image)it.businesslogic.ireport.chart.DefaultChartFactory.drawChart(new String[]{"antialias=true","tooltips=false","legend=false","chartName=Pie3D","plotOrientation=2","foregroundAlpha=0.33","valueLabel=Imponibili","subtitle=","plotBackground=[255,255,255]","quality=2","height=81","titlePosition=1","chartBackground=[255,255,255]","width=381","depthFactor=0.2","serie1=SERIE_Imponibili","serie0=SERIE_test","categoryLabel=ID Riga","title=Grafico Fattura"}, (it.businesslogic.ireport.IReportScriptlet)$P{REPORT_SCRIPTLET}) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:472) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:389) at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:349) at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:332) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummarySamePage(JRVerticalFiller.java:787) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:717) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:242) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:125) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76) 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:550) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassCastException: net.sf.jasperreports.engine.JRDefaultScriptlet at fattura3.evaluate(fattura3:123) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:461) ... 15 more Print not filled. Try to use an EmptyDataSource...!

 

 

 

 

 

 

 

By: Nick - nick_75

RE: Chart generation problem

2005-06-08 03:38

I forgot to specify that i'm using

 

iReport 0.5

jdk 1.5.0_3

jre 1.5.0_3

 

Thanks to who would help me :)

Nick

 

 

 

 

By: aioros - aioros_aioria

RE: Chart generation problem

2005-07-04 11:41

try, coping this jar file in your jdk

 

jfreechart-0.9.21.jar

 

you need this file to run a chart report.

 

I copy in ...jdk1.5.0_01jrelibext. it?s work for my.

Link to comment
Share on other sites

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