Jump to content

Pb with List component


Gaby38

Recommended Posts

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 problem

Thanks for suggestions

 

Code:
 
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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

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