Jump to content
Changes to the Jaspersoft community edition download ×

Chart sample online


2004 IR Help

Recommended Posts

By: Giulio Toffoli - gt78

Chart sample online

2004-11-03 15:10

 

http://ireport.sourceforge.net/cap8.html

 

Giulio

 

 

 

 

By: Ashok - k_s_ashok

RE: Chart sample online

2004-11-04 08:03

I tried your sample. But i got the following Exception :

*********************************

Filling report... Error filling print...

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0

at

java.util.Vector.get(Unknown Source) at

it.businesslogic.ireport.chart.DefaultChartFactory.drawChart(DefaultChartFac

tory.java:61) at chanew.evaluate(chanew.java:98) at

net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:420

) at

net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:356

) at

net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:

347) at

net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:330)

at

net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:383)

at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNewPage(JRVerti

calFiller.java:1060) at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFill

er.java:786) at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFi

ller.java:310) at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFille

r.java:193) at

net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:558)

at

net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:475)

at

net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:120)

at

net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.j

ava:222) at

net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.j

ava:162) at

it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:440)

at java.lang.Thread.run(Unknown Source) NESTED BY :

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0

at

java.util.Vector.get(Unknown Source) at

it.businesslogic.ireport.chart.DefaultChartFactory.drawChart(DefaultChartFac

tory.java:61) at chanew.evaluate(chanew.java:98) at

net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:420

) at

net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:356

) at

net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:

347) at

net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:330)

at

net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:383)

at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNewPage(JRVerti

calFiller.java:1060) at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFill

er.java:786) at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFi

ller.java:310) at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFille

r.java:193) at

net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:558)

at

net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:475)

at

net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:120)

at

net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.j

ava:222) at

net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.j

ava:162) at

it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:440)

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[]{"chartName=Pie3D","depthFactor=0.2","titlePosition=1","width=480","

plotBackground=[255,255,255]","serie1=SERIE_NAME","serie0=","chartBackground

=[255,255,255]","tooltips=false","foregroundAlpha=0.33","title=","subtitle="

,"legend=false","quality=2","height=169","antialias=true"},

(it.businesslogic.ireport.IReportScriptlet)$P{REPORT_SCRIPTLET}) at

net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:427

) at

net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:356

) at

net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:

347) at

net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:330)

at

net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:383)

at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNewPage(JRVerti

calFiller.java:1060) at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFill

er.java:786) at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFi

ller.java:310) at

net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFille

r.java:193) at

net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:558)

at

net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:475)

at

net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:120)

at

net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.j

ava:222) at

net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.j

ava:162) at

it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:440)

at java.lang.Thread.run(Unknown Source) Caused by:

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0

at

java.util.Vector.get(Unknown Source) at

it.businesslogic.ireport.chart.DefaultChartFactory.drawChart(DefaultChartFac

tory.java:61) at chanew.evaluate(chanew.java:98) at

net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:420

) ... 15 more Print not filled. Try to use an EmptyDataSource...!

***********************************

 

 

 

 

 

 

By: Ashok - k_s_ashok

RE: Chart sample online

2004-11-05 05:29

Hi Giulio,

 

Any update ?

 

 

 

 

By: Giulio Toffoli - gt78

RE: Chart sample online

2004-11-06 05:46

 

Ashok - k_s_ashok

 

It's a bit few to understand what's happen on your computer.

Be sure that all series have the same number of elements.

 

Giulio

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