iReport 4.6.0及其之後的版本在保存的時候會自動添加uuid。保存後,重新打開jrxml文件的時候會報以下錯誤:
Error loading the report template
Message:
net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 441; cvc-complex-type.3.2.2: Attribute 'uuid' is not allowed to appear in element 'jasperReport'.
解決方法:
選擇一個iReport 4.6.0之前的舊版本進行保存,配置如下所示:
Tools > Options > iReport > General > Compability>選擇JasperReports4.5.0