ireport中报错

使用Ireport报表工具,修改已经存在的报表,修改前和修改中都是完全正常的,当保存退出后,再次打开时,报错

Error loading the report template:
org.xml.sax.SAXParseException:

cvc-enumeration-valid:

Value 'null' is not facet-valid with respect to enumeration '[Stretch, Prevent, Immediate]'.

It must be a value from the enumeration.

具体原因不明

关闭错误提示框后,以xml形式打开,将下列字段中的null改为Stretch保存,一切正常

<background>
  <band splitType="null"/>
</background>
<title>
  <band height="842" splitType="null">

不知道为什么,在修改之前应该是没问题的,不知道为什么splitType字段的值会自己变为null,但是手动改回来以后,以后不会再出现类似问题

原文地址:https://www.cnblogs.com/langzi93/p/3770564.html