rptman Posted November 10, 2006 Share Posted November 10, 2006 hi, I am using version 1.2.5. during filling of barchart, I got this error:java.lang.NullPointerException ÂÂÂÂatÂnet.sf.jasperreports.charts.fill.JRFillCategoryDataset.customIncrement(JRFillCategoryDataset.java:136) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRFillElementDataset.increment(JRFillElementDataset.java:169) but I didn't get the error if I lower the band height and chart height. attached are jrxml file for both conditions. It looks like the JRFillCategorySeries.evaluate it is not called during fillPageBreak. Anyway to workaround for this? [file name=test_error.jrxml size=6127]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/test_error.jrxml[/file] Link to comment Share on other sites More sharing options...
rptman Posted November 10, 2006 Author Share Posted November 10, 2006 and this is the jrxml if I lower the band height and chart height and it is working. [file name=test_error_working.jrxml size=6135]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/test_error_working.jrxml[/file] Link to comment Share on other sites More sharing options...
lucianc Posted November 10, 2006 Share Posted November 10, 2006 The chart in the AllGroup header has CountryGroup as evaluation group. Are you sure this is what you want? It doesn't make much sense.. HTH,Lucian Link to comment Share on other sites More sharing options...
rptman Posted November 11, 2006 Author Share Posted November 11, 2006 AllGroup is created so it will only display one chart.as the requirement is to display summary of all country in the chart. is there any other way to it? What makes me wonders is if I reduce the band height and chart height, the report can run correctly. and it fails if I increase the band height and chart height. is it problem with the way I design the report? Link to comment Share on other sites More sharing options...
rptman Posted November 11, 2006 Author Share Posted November 11, 2006 I follow most of the report design from the sample chart barchart example. Link to comment Share on other sites More sharing options...
lucianc Posted November 14, 2006 Share Posted November 14, 2006 Have you tried to set AllGroup as evaluation group for the chart placed on the AllGroup header? This is what I was suggesting in my previous post.. The fact that the report works when you change some band height is due only to chance (it happens that a CountryGroup gets rendered on the same page as the AllGroup header). HTH,Lucian Link to comment Share on other sites More sharing options...
rptman Posted November 14, 2006 Author Share Posted November 14, 2006 yes you are right. it works. Thanks for your help. 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