Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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-complex-type.3.2.2 attribute 'uuid' is not allowed to appear in element 'jasperreport' instead.

The same error message happens even when choosing compatibility 4.5.0 in the options. The same error message happens also when opening a report file that was being produced by other users of iReport-4.6.0 (Windows).

The report files have their schema to http://jasperreports.sourceforge.net/xsd/jasperreport.xsd, but this schema file doesn't mention any uuid.

What could be the problem?

like image 256
Markus Pscheidt Avatar asked Jul 13 '12 09:07

Markus Pscheidt


3 Answers

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

like image 160
Marthym Avatar answered Nov 13 '22 00:11

Marthym


I found an answer:

I opened the JRXML file with notepad++ and did a "Search and Replace" of uuid="\w*-\w*-\w*-\w*-\w*", and selected REGULAR EXPRESSION, with empty string then all the occurrences of this wrong tag were removed.

Worked for me.

like image 24
Inca Avatar answered Nov 13 '22 00:11

Inca


Open report in the notpad++ and just only remove uuid and it's number.. After You will compile proper and generate report.... I have same problem and I solveby this way..

like image 3
Vishal Shah Avatar answered Nov 13 '22 00:11

Vishal Shah