ashwini Posted July 15, 2009 Share Posted July 15, 2009 Hi This is Amit.I am using iReport and Jasper.I have created a customizer class and it compiles fine.But while running the report it gives error as Error filling print... Could not create chart customizer instance. net.sf.jasperreports.engine.JRRuntimeException: Could not create chart customizer instance. at net.sf.jasperreports.engine.fill.JRFillChart.<init>(JRFillChart.java:326) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getChart(JRFillObjectFactory.java:582) at net.sf.jasperreports.engine.base.JRBaseChart.getCopy(JRBaseChart.java:552) 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:83) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:385) at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:432) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:59) 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) Caused by: java.lang.ClassNotFoundException: test at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.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.loadClassForRealName(JRClassLoader.java:132) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:72) at net.sf.jasperreports.engine.fill.JRFillChart.<init>(JRFillChart.java:323) ... 15 more Can u tell me how to give path of the Customizer class in the chart tool properties (Customizer Class) or in jrxmlPlease reply urgently.Thanks in Advance.Amit Post Edited by amitj1 at 07/15/2009 12:28 Link to comment Share on other sites More sharing options...
dnvsrikanth Posted July 15, 2009 Share Posted July 15, 2009 Hi Amit,Just mention the customizer class in the chart properties. Prepare a jar file with the customizer class and add the jar file to the classpath of iReport.DNV Srikanth. Link to comment Share on other sites More sharing options...
ashwini Posted July 15, 2009 Author Share Posted July 15, 2009 Hi Shrikanth, Thanks for the reply. Can u tell me the detail procesure to do this. Do i need to make jar of .class file and put it in classpath? Also should i mention the custmoizer class name like test.jar in the chart properties Please help. Thanks. Amit Link to comment Share on other sites More sharing options...
dnvsrikanth Posted July 15, 2009 Share Posted July 15, 2009 yes....exactly Link to comment Share on other sites More sharing options...
ashwini Posted July 16, 2009 Author Share Posted July 16, 2009 I have created test.jar file of the customizer class. i have placed it in clsspath of ireport and specified the customizer class proerty to 'test'. but still it giving me class not found error. i.e. Error filling print... Could not create chart customizer instance. Plaese suggest somthing. Link to comment Share on other sites More sharing options...
rsreejithnair Posted July 16, 2009 Share Posted July 16, 2009 Hi Amit, Without adding Customizer class in tools properties, how did u get the error message you have mentioned at the start? I am getting the same error message while generating the report. Please update the thread if you get any solution for the said error message. thanks, Sreejith Link to comment Share on other sites More sharing options...
ashwini Posted July 16, 2009 Author Share Posted July 16, 2009 I have added the customizer class in tools properties but it is not peaking up. Link to comment Share on other sites More sharing options...
dnvsrikanth Posted July 17, 2009 Share Posted July 17, 2009 Hi Check whether the jar file is included in classpath or not or check whether you have given any package for the costomiser class. Thanks,DNV SrikanthPost Edited by dnvsrikanth at 07/17/2009 15:56 Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted July 17, 2009 Share Posted July 17, 2009 Is the class really called test?java.lang.ClassNotFoundException: test Put the class in a package and put all in a jar.Giulio 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