Jump to content
JasperReports Library 7.0 is now available ×

Jasper Charts Themes Exception


thangalin

Recommended Posts

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

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

jasperreports-chart-themes-03_06_02.jar

jasperreports-fonts-03_07_00.jar

jcommon-01_00_16.jar

jfreechart-01_00_13.jar

iText-02_01_06.jar

castor-01_02_00.jar

I 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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Hi.

I have updated the libraries to the following:

jfreechart-01_00_12.jar

jcommon-01_00_16.jar

jasperreports-fonts-03_07_00.jar

jasperreports-chart-themes-03_06_02.jar

jasperreports-03_07_00.jar

iText-02_01_06.jar

castor-01_02_00.jar

Same 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

  • 2 weeks later...

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