horseman Posted May 24, 2012 Posted May 24, 2012 Hi everybody,I have recently installed ireport 4.6.0 and imported reports built with previous version. I modified it and when i published the updated report to my jasperserver, it crashed with the following error. com.jaspersoft.jasperserver.api.JSExceptionWrapper: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'uuid' is not allowed to appear in element 'jasperReport'.I opened the xml file generated by the 4.6.0 and i noticed an uuid porpertie on each element, whereas this porpertie wasn't there in the xml generated with ireport 4.1.3I looked for an option to disable insertion of uuid propertie in my reports but i haven't find one.Is there a way to get rid of the uuid propertie ?Thanx for your help
horseman Posted May 28, 2012 Author Posted May 28, 2012 It seems to be a 4.6.0 new feature that is not yet supported by the xml parser of 4.5.0 server. I have uninstalled ireport 4.6.0 and installed ireport 4.5.1, no more uuid
samelis Posted May 28, 2012 Posted May 28, 2012 The same thing happened to me. Does anyone have a solution?
arthur156 Posted May 29, 2012 Posted May 29, 2012 You can always set the compability to an older version...It worked for me...Tools > Options > iReport > General > Compability I would like to find a perminant solution, but this is a fix for now...
horseman Posted May 30, 2012 Author Posted May 30, 2012 Hi arthur, I gave a try to your worakaround but unfortunately it didn't work. I tried with 4.5.0 and 4.0.1 compatibility but uuid are still generated as shown in the code above. <?xml version="1.0" encoding="UTF-8"?><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report3" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2be51b2c-016e-4887-9bf7-3ce9f77929e3"> <background> <band splitType="Stretch"/> </background> <title> <band height="79" splitType="Stretch"/> </title> <pageHeader> <band height="35" splitType="Stretch"> <textField> <reportElement uuid="9464be3b-a5cc-4d8f-95ce-a06f48656bcc" x="74" y="15" width="100" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{field}]]></textFieldExpression> </textField> </band> </pageHeader> I keep ireport 4.5.1, wihch doesn't generate uuid. Thanx for your help.
brenthale Posted June 6, 2012 Posted June 6, 2012 I just installed 4.6.0 for the first time and just trying to build and run a simple report...my first. I too get this error. This is not a legacy report...It a brand new one created in 4.6.0 to an Oracle database. It doesn't appear to be working out of the box.
brenthale Posted June 7, 2012 Posted June 7, 2012 I did find that if I delete the 'uuid' attribute while in XML mode I could then compile and run it.
shuckins Posted June 7, 2012 Posted June 7, 2012 I tried the same thing using iReport 4.6.0: set compatibility to 4.0.1 (options are that or 4.5), opened a report that works on JasperReports 4.1.1, added a few characters to a text field, saved and diffed the file with a copy of the original. Not only did it add the UUID business, it also made many other changes throughout the report, removing classes, changing tags, etc.I reverted to iReport 4.5.1, set compatibility to latest. Then upon save no UUID was added and the report ran fine on 4.1.1.-Sam
federico.cattozzi Posted June 12, 2012 Posted June 12, 2012 I think that it is not a new feature but a bug. Compatibility mode doesn't work for me.I opened an issue on the tracker.Post Edited by helyair at 06/12/2012 09:31
lpsalgueiro Posted June 30, 2012 Posted June 30, 2012 Open XML text on a best editor (it can be Sublime Text Editor) Use this regular expression to replace (remove) uuid tag:uuid="w*-w*-w*-w*-w*"And be happy.Post Edited by lpsalgueiro at 06/30/2012 15:19
shaunw Posted August 22, 2012 Posted August 22, 2012 Thi matched them for me in the find replace:uuid="\w*-\w*-\w*-\w*-\w*"
shaunw Posted August 22, 2012 Posted August 22, 2012 This expression found them for me in the Find and Replaceuuid="\w*-\w*-\w*-\w*-\w*"
abresci Posted August 24, 2012 Posted August 24, 2012 All,FYI, the regular expression I used in numerous affected reports was uuid="[^"]*", which worked just fine. I used Textpad, hit F8 and did a global replace.To be clear, iReport 4.6.0 was intended for use with JR Server 4.7.0... But unfortunately, iR 4.6 was released earlier (JR Server 4.7.0 community edition is now available, however).... This caused some confusion for users who began using iR 4.6 with JR Server 4.5... As someone else mentioned, compatibility mode in iR 4.6 does not suppress the UUID attribute, and that should be considered a bug... But the workaround of removing the uuid in the XML (like I did using regular expressions), THEN switching to iReport 4.5 (to match the version of JR Server) should also work.
ganeshn Posted October 4, 2012 Posted October 4, 2012 I guess we need to update jasper reports library that is used in projectAdd following dependancy in pom.xml if you are using maven, otherwise get latest jar (4.7.0)<dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>4.7.0</version> </dependency> The designer obviously comes with latest library hence report gets compiled without error in desinger, but when we use this report in our project which is using old library (jar with version 4.5 or older) it throws errorI hope this helps.
nestoru Posted October 9, 2012 Posted October 9, 2012 Hello,We faced this issue *only* in Windows after an installation + settings import. As I explained in http://thinkinginsoftware.blogspot.com/2012/10/ireport-attribute-uuid-is-not-allowed.html you can go around the issue if you ignore importing settings (or if you work from OSX or Linux you should not see the issue at least in our case going from 4.1.3 to 4.7.1.I hope it helps somebody out there.Cheers,-Nestor
dablick Posted January 17, 2013 Posted January 17, 2013 Jaspersoft needs to update the XSD that you pubosh to the web http://jasperreports.sourceforge.net/xsd/jasperreport.xsd In fact, if you did that, it would solve my problem which is that when I load a .jrxml file with an editor that does validation, I get validation errors because of the uuids. I'd appreciate some sort of notification when this is done.
ampersanta Posted November 12, 2013 Posted November 12, 2013 Hi everyone.Had just recently downloaded 5.5.0 of iReport (used 4.5.1 before) and ran into the same issue - the uuid was automatically generated but later when i was opening this jrxml - the iReport was complaining with the parser error.All I had to do is to wipe all the old versions of iReport presented in my system (i use ubuntu, so had to drop all the old version which were somehow identified by the new 5.5.0).Suspect that fixing the CLASSPATH in Tools -> iReport -> Classpath by moving the 5.5.0 libraries up in the tree or by removing the old ones completely would help too.Now, openning the new reports with uuid already in there doesn't cause any issues.Also, setting the Compatibility to 4.5.0 the iReport doesn't generate this uuid anymore.Hope this helps.Regards.
samuel_carlo77 Posted January 13, 2014 Posted January 13, 2014 I DID WHAT YOU SAIS, I UPDATE THE CLASS PATH, BUR I DELETE EVERY CLASSPATH OF OLD VERSIONS AND ADD THIS C:Archivos de programaJaspersoftiReport-5.5.0ireportmodulesext, AND IRERPORT RUNS VERY WELL.
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