kflows00 Posted June 26, 2009 Share Posted June 26, 2009 I'm trying to add a chart to a report, and I keep getting this error: Error filling print... Category series name is null. net.sf.jasperreports.engine.JRRuntimeException: Category series name is null. at net.sf.jasperreports.charts.fill.JRFillCategoryDataset.customIncrement(JRFillCategoryDataset.java:144) at net.sf.jasperreports.engine.fill.JRFillElementDataset.increment(JRFillElementDataset.java:169) at net.sf.jasperreports.engine.fill.JRCalculator.calculateVariables(JRCalculator.java:152) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:652) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:232) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:113) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:767) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:690) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:517) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:893) at java.lang.Thread.run(Unknown Source) What does "Category series name is null" mean? What is the category series? I've been trying to make this one work for a little while and I just can't seem to figure it out. I get the same error whether I run with an empty datasource or with real data. Any help would be appreciated. Link to comment Share on other sites More sharing options...
Gaby38 Posted June 26, 2009 Share Posted June 26, 2009 In general you have three "objects" to configure in your chart and to map to the result fields of your Query :- one Category parameter- one Serie parameter- one Value parameterIn your case one or more of these seem to be null. Check your query outside iReport to verify that you don't get null values Link to comment Share on other sites More sharing options...
kflows00 Posted June 26, 2009 Author Share Posted June 26, 2009 I have verified that the SQL query used to fill the report does not contain any null data, but still having this error. I had assumed that the error does not have anything to do with the data itself, though, because I get the same error when running the report with an empty datasource. Is that a bad assumption to make? Link to comment Share on other sites More sharing options...
Gaby38 Posted June 27, 2009 Share Posted June 27, 2009 I think that your assumption is right . In this case, it would mean that the input data for your chart are not those returned by the query. Perhaps a problem in the mapping of these data?It's difficult to say : if you post your jrxml file on the forum, perhaps other people or me could see what is wrong. Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted June 29, 2009 Share Posted June 29, 2009 Category series name is null is for sure a problem with the chart dataset, be sure you have not put the chart in the title with evaluation time now. In that case change the evaluation time to Report.Giulio Link to comment Share on other sites More sharing options...
kflows00 Posted July 2, 2009 Author Share Posted July 2, 2009 Link to comment Share on other sites More sharing options...
kflows00 Posted July 6, 2009 Author Share Posted July 6, 2009 I have also verified again that none of the data being pulled by the stored procedure is null. Link to comment Share on other sites More sharing options...
dnvsrikanth Posted July 7, 2009 Share Posted July 7, 2009 Hi, Make sure that the data is being correctly passed to the chart, otherwise you will get this type of error. DNV Srikanth. Link to comment Share on other sites More sharing options...
kflows00 Posted July 7, 2009 Author Share Posted July 7, 2009 As far as I can tell the data is being passed correctly...its being passed the same way as it is on other reports, and when I run the stored procedure directly in SQL Management Studio the data looks just fine. Link to comment Share on other sites More sharing options...
Gaby38 Posted July 8, 2009 Share Posted July 8, 2009 As I used a lot of charts without problems about data, except from my own, I am convinced that, if the chart says "null serie value", it is why it receives a null value.To be sure that it cannot receive null values from the query, I would do the following :replace each field in the query ("SELECT Field1 from ......) by an expression : SELECT case when Field1 is not null then Field1 else 0 end from ......( or SELECT case when Field1 is not null then Field1 else 'AAA' end from ...... if Field1 is a string)If you still get the same error it's an error in the mapping of input data or a bug in the chart Link to comment Share on other sites More sharing options...
lvernovsky Posted October 6, 2010 Share Posted October 6, 2010 I am having an issue with Time Series Chart. I am getting the following error:net.sf.jasperreports.engine.JRRuntimeException: Time series name is null.My chart is a subreport that sits in Summary band.I don't understand what it means that the name is null. What sii the "name"? 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