Details
Description
Hi,
I have a coverage xml report file that the sonar PHP plugin does not seem to parse correctly. It consistently throws the following:
Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: Report file is invalid, plugin will stop.
Caused by: org.sonar.api.utils.SonarException: Report file is invalid, plugin will stop.
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: snapshot : snapshot
I suspect its saying it doesn't understand the first element in the coverage.xml file, but why would that be? Example:
<?xml version="1.0" encoding="UTF-8"?>
<snapshot methodcount="23" methodscovered="10" statementcount="67" statementscovered="67" totalcount="90" totalcovered="77">
<package name="default" methodcount="23" methodscovered="10" statementcount="67" statementscovered="67" totalcount="90" totalcovered="77">
<!-- ..more report.. -->
I'm not sure how to continue testing this. I'd appreciate any ideas about whats going on here. Thanks in advance.