我正在使用ireport,但是当我尝试使用java类编译时出现错误。编译错误:ireport与java;属性'uuid'不允许出现在元素'jasperReport'
Exception in thread "main" net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'uuid' is not allowed to appear in element 'jasperReport'.
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:247)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:230)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:218)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:172)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:156)
感谢您的帮助:)
[cvc-complex-type.3.2.2属性'uuid'不允许在元素'jasperreport']中出现可能的重复(http://stackoverflow.com/questions/11467874/cvc-complex-type- 3-2-2-attribute-uuid-is-not-allowed-to-in-element-jas) – 2013-05-09 09:12:15
您正在使用* JR *库的错误版本。 *** uuid ***属性是在最新版本的* JasperReports *库中引入的。检查你的* JR *库的版本 – 2013-05-09 09:13:54
thks夫人亚历克斯:) – 2013-05-09 11:26:05