pruts Posted December 3, 2009 Share Posted December 3, 2009 I’m traying some things and they don’t work how coms?Let me explane:I have created a report in Ireport and I can preview it in ireport.When I export it to my jasperserver (via Repository Navigator) and view it in the web interface I get an error“com.jaspersoft.jasperserver.api.JSExceptionWrapper: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'splitType' is not allowed to appear in element 'band'.”I get this error even if the report is empty (no fields entert)What dos this creptic (for me) message mean, and what am I doing wrong? Link to comment Share on other sites More sharing options...
jdevine Posted December 3, 2009 Share Posted December 3, 2009 I have seen this in cases where the iReport version did not match the JasperServer version. For example, I was seeing something similar when coding in iReport 3.6 and deploying to JasperServer 3.5.1.The message basically means that the jrxml file is not valid for the version of JasperServer that you are running it against. Link to comment Share on other sites More sharing options...
pruts Posted December 3, 2009 Author Share Posted December 3, 2009 Indeed I’m using ireport 3.6.1 and jasperserver 3.5.1.Is this taken care of in version ireport 3.6.2 or do I need jasperserver 3.7rcFor now both are of a recent fabrication, so what can I do? Link to comment Share on other sites More sharing options...
jdevine Posted December 3, 2009 Share Posted December 3, 2009 I believe you basically need to get iReport & JasperServer versions in sync.If upgrading jasperserver is an option, that may be the best way to go.The alternative would be to start using iReport 3.5. However, this would just mean that your code would also be broken in iReport. However, once the code is updated, you should see consistency when running the reports locally (iReport) and JasperServer. Link to comment Share on other sites More sharing options...
pruts Posted December 3, 2009 Author Share Posted December 3, 2009 Yes, indeed I have down graded to ireport 3.5.1 and it works. When I open the reports in the old 3.5.1 I get the same error as in jasperserver 3.5.1Thanks jdevine Link to comment Share on other sites More sharing options...
damo73 Posted December 22, 2009 Share Posted December 22, 2009 I too had this problem using JasperServer 3.5.0 and iReports 3.6.0 after upgrading from 3.1.2...To fix it in iReports - each band has a checkbox option in Band Properties called "Split allowed". I unchecked this to "false" and was able to run the report without seeing that error message.I've reproduced the error and attached the tomcat log...seems to happen when trying to upload the jrxml file.Should this be raised as a bug? CheersDamian Link to comment Share on other sites More sharing options...
Teodor Danciu Posted December 22, 2009 Share Posted December 22, 2009 Hi, What you need to understand is that when you use an iReport version that is much recent than the server version, you probably make use of new features (new attributes in JRXML), that the old JR inside your old JasperServer does not recognize.For instance, you could not use multi-band support from iReport 3.6.2 with JasperServer 3.5.0, which has absolutely no idea what's this all about and hence raise an error about the report not being valid. In your case, it is about the isSplitAllowed band attribute which is now deprecated and was replaced with the splitType attribute, which JS/JS 3.5.0 does not recognize. You either stay with iReport 3.5.0 which matches your server, or you upgrade JS to 3.7.0 RC or you save your reports in older formats using this capability of iReport. I hope this helps.Teodor 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