cvc-complex-type.3.2.2 attribute 'uuid' is not allowed to appear in element 'jasperreport'

后端 未结 11 932
盖世英雄少女心
盖世英雄少女心 2020-12-02 23:57

Downloaded iReport-4.6.0 for Linux and when creating a new report via the File->New... menu, the new report is not shown in the preview, but the error message cvc-comp

相关标签:
11条回答
  • 2020-12-03 00:41

    You can always set the Compability to an older version, It worked for me.

    Tools > Options > iReport > General > Compability

    After this go to xaml and change any thing and save again then run report to remove all uuid .

    0 讨论(0)
  • 2020-12-03 00:42

    This problem occurred in my case because of duplicated class path entries, more specifically entries from older versions of jasperreports-core-renderer.jar and jasperreports-extensions.jar (in Options -> Classpath).

    These duplicated entries appeared after importing settings during an upgrade of iReport. Apparently this is due to a bug in iReport due to which old versions are not removed from the classpath.

    So either avoid the import of settings from previous versions or manually remove outdated .jars.

    0 讨论(0)
  • 2020-12-03 00:47

    In iReport Designer, in the options window you can change compatibility mode to the version you prefer. For me if I put compatibility to jasperreport 3.5.1, when I save the report again, the uuid are all removed.

    Regards

    0 讨论(0)
  • 2020-12-03 00:47

    I do not use Linux .But you create report use iReport Designer-xx. You add Same version jasperreport(jasperreport-XX) jar in your project.

    0 讨论(0)
  • 2020-12-03 00:47

    If you're using ireport 4.6 or greater, the best way to solve the issue with uuid is, use the similar ireport 4.6 or greater, as the uuid attribute is newly introduce from version 4.6. otherwise If you remove the uuid manually from the jrxml file, the uuid will again be placed in corresponding tags on the next compilation...

    0 讨论(0)
提交回复
热议问题