Gaby38 Posted July 21, 2009 Share Posted July 21, 2009 Hello,I tried to use the List component in a report. No problem : I defined the datalist properties with the right dataset but when trying to run the report under iReport (preview) I got an error :1 - org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'jr:list'. One of '{"http://jasperreports.sourceforge.net/jasperreports":component}' is expected. java.lang.Exception: 1 - org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'jr:list'. One of '{"http://jasperreports.sourceforge.net/jasperreports":component}' is expected. at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:403) at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:320) at com.jaspersoft.ireport.jasperserver.ReportRunner.run(ReportRunner.java:70) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)I am not a specialist of xml : I looked at http://jasperreports.sourceforge.net/xsd/jaspereport.xsd file and I saw that the "jr:list" component is not defined. Am I wrong?? How to have the list component working ??I used iReport 3.5.1 and 3.5.2 : same problemThanks for suggestions Code: Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted July 21, 2009 Share Posted July 21, 2009 You are not using JasperReports 3.5.2. Probably you have copied iR 3.5.2 over a 3.5.1 installation, or the installation is not clean or simply you have JasperReport < 3.5.2 in the classpath.List works only with JasperReports 3.5.2 and later versions.Giulio Link to comment Share on other sites More sharing options...
Gaby38 Posted July 21, 2009 Author Share Posted July 21, 2009 Thanks Giulio for your suggestion : you were right! But in fact it was my jasperserver (3.5.1) that had a 3.5.0 jar for jasperreport. So I had to overwrite it with the 3.5.2 jasperreport jar delivered with iReport 3.5.2.A question : when iReport has a jasperreport version more recent than jasperserver, are we obliged to do the update manually?? I don't remember having seen something about that. (My ireport and my jasperserver are on distinct machines) Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted July 21, 2009 Share Posted July 21, 2009 iReport 3.5.2 allows to set the compatibility version of the produces JRXML, so you can be sure that the jrxml produced by iReport will be compatible with your server version (Tools->Options->General [tab] -> Compatibility [tab]).Of course you will not be able to use the last improvements of JasperReports if not supported in older versions, but you will not break the old reports as well.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