编译错误:ireport with java;属性'uuid'不允许出现在元素'jasperReport'中 [英] compilation error: ireport with java;Attribute 'uuid' is not allowed to appear in element 'jasperReport'

查看:101
本文介绍了编译错误:ireport with java;属性'uuid'不允许出现在元素'jasperReport'中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ireport但是当我尝试使用类java编译它时会出现错误。

i'm working with ireport but when i try to compile it with a class java a error appear.

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)

感谢您的帮助:)

推荐答案

这是ireport中的兼容性问题。当你打算在旧版本的ireport中打开.jrxml时,你就会在你得到这个错误之前创建它。
要修复它,只需删除uuid属性并在ireport中再次打开它。

It is Compatibility issue in the ireport. when you are going to open .jrxml in older version of ireport then the version you have created it before you wil get this error. To fix it just strip out the uuid attribute and open it again in the ireport.

这篇关于编译错误:ireport with java;属性'uuid'不允许出现在元素'jasperReport'中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆