teamireport Posted October 12, 2009 Share Posted October 12, 2009 HI Folks,I'm facing Array IndexOutOfBoundsException when MySQL returns more than 7 rows. This is only occuring in i-report 3.5.0 version and above.It allows 'n' number of results (ie rows) to genrate a chart in i-report 3.0.0 version. Is this a way the i-report 3.5.0 and above version implemented or else its and bug ?can anyone please let know. i would like to use latest version for other cool features. for this only i'm struggling. here the error log as follows Compilation running time: 578! Filling report... Locale: English (United States) Time zone: DefaultError filling print... Index: 7, Size: 7 java.lang.IndexOutOfBoundsException: Index: 7, Size: 7 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at net.sf.jasperreports.chartthemes.spring.EyeCandySixtiesChartTheme.createBarChart(EyeCandySixtiesChartTheme.java:315) at net.sf.jasperreports.chartthemes.spring.GenericChartTheme.createChart(GenericChartTheme.java:264) at net.sf.jasperreports.engine.fill.JRFillChart.evaluateChart(JRFillChart.java:1289) at net.sf.jasperreports.engine.fill.JRFillChart.evaluateRenderer(JRFillChart.java:1256) at net.sf.jasperreports.engine.fill.JRFillChart.evaluate(JRFillChart.java:1245) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:426) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummarySamePage(JRVerticalFiller.java:920) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:854) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:286) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:120) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:899) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:802) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:421) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:251) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:896) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) Print not filled. Try to use an EmptyDataSource... Post Edited by teamireport at 10/12/2009 17:23 Link to comment Share on other sites More sharing options...
mdahlman Posted October 12, 2009 Share Posted October 12, 2009 teamireport,That's strange. The error seems to indicate that the problem is in the chart theme. Try using a different chart theme (or no chart theme) to see if that solves it.If so, then it's a bug in the EyeCandy chart theme.Regards,Matt Link to comment Share on other sites More sharing options...
teamireport Posted October 13, 2009 Author Share Posted October 13, 2009 Yes ,Matt you are right , the problem is with chart theme that i used.I 've changed chart theme as default in the i-report verstion 3.5.0 & above version . Its allows 'n' number of rows.I'll file a bug in repesctive projects Link to comment Share on other sites More sharing options...
sasinuth Posted October 16, 2009 Share Posted October 16, 2009 I have filed a bug as well, problem is with the eye candy chart theme, will not take more than 7 rows, another problem I have is the eyecandy theme bar chart when exported to pdf displays transparent bars ( even when printed), dont know why? Other themes are absolutely fine. Thanks in advance,Sasi. Link to comment Share on other sites More sharing options...
javamutu Posted September 23, 2014 Share Posted September 23, 2014 Here is sure solutionhttp://stackoverflow.com/questions/25973080/why-jasper-chart-theme-throw-java-lang-indexoutofboundsexception-index-7-size Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now