Jump to content
Changes to the Jaspersoft community edition download ×

"customizerClass" and Charts ??


hingerl

Recommended Posts

Hi there,

 

anyone know what i am doing wrong??

 

I add a chart and set the customizerClass:

Code:

<chart hyperlinkTarget="Self" customizerClass="customizer" >

 

 

my customizer.class

Code:
[code]
import net.sf.jasperreports.engine.JRChartCustomizer;
import net.sf.jasperreports.engine.JRChartDataset;
import net.sf.jasperreports.engine.JRChartPlot;
import net.sf.jasperreports.engine.JRChart;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.renderer.category.BarRenderer;

import java.awt.*;


public class BarChartCustomizer implements JRChartCustomizer
{

public void customize(JFreeChart chart, JRChart jasperChart)
{
BarRenderer renderer = (BarRenderer) chart.getCategoryPlot().getRenderer();
renderer.setDrawBarOutline(false);


}
}

 

 

my errors :-)

Code:
[code]
FehlerÂbeimÂFüllen...Âjava.lang.ClassFormatError:ÂIncompatibleÂmagicÂvalueÂ1768779887ÂinÂclassÂfileÂcustomizerÂnull
java.lang.ClassFormatError:ÂIncompatibleÂmagicÂvalueÂ1768779887ÂinÂclassÂfileÂcustomizer ÂÂÂÂ
atÂjava.lang.ClassLoader.defineClass1(NativeÂMethod)Â ÂÂÂÂ
atÂjava.lang.ClassLoader.defineClass(UnknownÂSource)Â ÂÂÂÂ
atÂjava.lang.ClassLoader.defineClass(UnknownÂSource)Â ÂÂÂÂ
atÂit.businesslogic.ireport.ReportClassLoader.loadClassData(ReportClassLoader.java:424)Â ÂÂÂÂ
atÂit.businesslogic.ireport.ReportClassLoader.findClass(ReportClassLoader.java:379)Â ÂÂÂÂ
atÂjava.lang.ClassLoader.loadClass(UnknownÂSource)Â ÂÂÂÂ
atÂjava.lang.ClassLoader.loadClass(UnknownÂSource)Â ÂÂÂÂ
atÂjava.lang.ClassLoader.loadClass(UnknownÂSource)Â ÂÂÂÂ
atÂjava.lang.ClassLoader.loadClassInternal(UnknownÂSource)Â ÂÂÂÂ
atÂjava.lang.Class.forName0(NativeÂMethod)Â ÂÂÂÂ
atÂjava.lang.Class.forName(UnknownÂSource)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:72)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.fill.JRFillChart.<init>(JRFillChart.java:323)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.fill.JRFillObjectFactory.getChart(JRFillObjectFactory.java:582)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.base.JRBaseChart.getCopy(JRBaseChart.java:526)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.fill.JRFillElementGroup.<init>(JRFillElementGroup.java:88)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.fill.JRFillElementContainer.<init>(JRFillElementContainer.java:90)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.fill.JRFillBand.<init>(JRFillBand.java:77)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:385)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:421)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:73)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:55)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:57)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)Â ÂÂÂÂ
atÂnet.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234)Â ÂÂÂÂ
atÂit.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:934)Â ÂÂÂÂ
atÂjava.lang.Thread.run(UnknownÂSource)Â
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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