Here is the ant eample output for such files. If the files or the directory is renamed and only ".webapp" is removed there, the error goes away
[echo] PMD is running on directory X:\DS\java\kreda
[pmd] X:\DS\java\kreda\kreda.abw\src\META-INF\plan.webapp.abnahmetest.ohne_sso.xml - Error while processing X:\DS\java\kreda\kreda.abw\src\META-INF\plan.webapp.abnahmetest.ohne_sso.xml
[pmd] X:\DS\java\kreda\kreda.webapp\src\META-INF\plan.abnahmetest.ohne_sso.xml - Error while processing X:\DS\java\kreda\kreda.webapp\src\META-INF\plan.abnahmetest.ohne_sso.xml
Hi Torsten,
I'm having difficulties reproducing the problem.
Could you please post:
-v
flag (e.g.ant -v pmd
)plan.abnahmetest.ohne_sso.xml
I don't think, it's a syntax error in the XML file, as this would result in an "Error while parsing...". Please note, that officially, there is only one rule for XML files: MistypedCDATASection.
Do you have maybe additional rules? "Error while processing" usually means, that something bad happend during rule execution...
Regards,
Andreas
Sorry for the delay, but I have stripped down a test case a little bit.
I attach all requested files.
Altova XML spy shows, that the xml file is valid, but ant verbose error shows a parse error in pmd xml parser.
We have additional rules, but the error is reproducable in this testcase with the standard rule.
Last edit: Torsten Kleiber 2016-11-09
Thanks for the files - I can reproduce it now.
For the records, this is the exception:
This bug will be fixed with PMD 5.4.4, 5.5.3 and later.