Jump to content
Changes to the Jaspersoft community edition download ×

NullPointerException when increasing band height


Recommended Posts



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

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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




Link to comment
Share on other sites

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