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
In my case I just removed uuid="63f04b11-4b7e-4cf1-99b5-a5ec6db799d6"
I generated a sample report for testing it worked perfectly
So you can try by removing uuid=" "
Strictly speaking this fix is only for Jaspersoft Studio, however this question is the first result when searching for the attribute 'uuid' is not allowed
error.
For Jasper Server version <= 4.5.0 and Jaspersoft Studio 6.11:
The second step is important if you are using Jaspersoft Studio to publish to the server.
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.
I have a good easy solution.
I am supporting reports on Jasper Server 4.5, with Jasper Studio 5.5
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..
I just suggested my coworker who also run into the problem this:
sed -i 's/ uuid="[^"]*"//g' $(find * -name \*.jrxml)
I don’t normally use sed(1)-i
but she’s on GNU/Linux so it wasn’t a problem here. The more professional Unix way of solving this is:
find * -name \*.jrxml -print0 | while IFS= read -d '' -r file; do
ed -s "$file" <<-'EOF'
1,$g/ uuid="[^"]*"/s///g
w
q
EOF
done
(These four spaces are tabs, otherwise it won’t work, and you need mksh(1) or another shell that can read NUL-separated input.)
You could also use Perl:
find * -name \*.jrxml -print0 | xargs -0 perl -pi -e 's/ uuid="[^"]*"//g'
Or something like that, anyway, depending on your needs, your xargs(1), etc. ;-)