thangalin Posted January 14, 2010 Share Posted January 14, 2010 I have looked at these pages: http://jasperforge.org/public.php http://sourceforge.net/projects/jasperreports/files/1.jasperreports/ And inside: jasperreports-3.7.0-project.zipBut I cannot find the source to the Charts extensions library (jasperreports-chart-themes-3.6.2.jar).I have encountered the following error:Caused by: java.lang.NoSuchMethodError: net.sf.jasperreports.charts.JRLinePlot.getCategoryAxisVerticalTickLabels()Ljava/lang/Boolean; at net.sf.jasperreports.chartthemes.simple.SimpleChartTheme.createXyLineChart(SimpleChartTheme.java:1494) at net.sf.jasperreports.chartthemes.simple.SimpleChartTheme.createChart(SimpleChartTheme.java:399) at net.sf.jasperreports.engine.fill.JRFillChart.evaluateChart(JRFillChart.java:1287)And cannot resolve it.Am using:jasperreports-03_07_00.jarjasperreports-chart-themes-03_06_02.jarjasperreports-fonts-03_07_00.jarjcommon-01_00_16.jarjfreechart-01_00_13.jariText-02_01_06.jarcastor-01_02_00.jarI am curious as to why the SimpleChartTheme is being referenced when I am using a custom theme. Inheritance?Thanks!Post Edited by thangalin at 01/15/2010 18:12 Link to comment Share on other sites More sharing options...
lucianc Posted January 19, 2010 Share Posted January 19, 2010 The source of the chart themes can be found under demo/samples/chartthemes/src. The error is probably caused by an unsupported JFreeChart version, try to use the one shipped with JasperReports.Regards,Lucian Link to comment Share on other sites More sharing options...
thangalin Posted January 21, 2010 Author Share Posted January 21, 2010 Hi.I have updated the libraries to the following:jfreechart-01_00_12.jarjcommon-01_00_16.jarjasperreports-fonts-03_07_00.jarjasperreports-chart-themes-03_06_02.jarjasperreports-03_07_00.jariText-02_01_06.jarcastor-01_02_00.jarSame error:Caused by: java.lang.NoSuchMethodError: net.sf.jasperreports.charts.JRLinePlot.getCategoryAxisVerticalTickLabels()Ljava/lang/Boolean; at net.sf.jasperreports.chartthemes.simple.SimpleChartTheme.createXyLineChart(SimpleChartTheme.java:1494)I think it happens because the instance of JRLinePlot created using the factory does not implement getCategoryAxisVerticalTickLabels.Further, I have removed all instances of jfreechart-01_00_13.jar from the system.Strange. If I figure it out, I'll post a reply. More ideas are appreciated. Link to comment Share on other sites More sharing options...
lucianc Posted January 29, 2010 Share Posted January 29, 2010 My bad, I misread the error.The probable cause is an older (than 3.6.2) JR jar somewhere on your classpath. Could you check that?Regards,Lucian 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