jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Sonar
  • SONAR-129

Encoding error with PMD

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.2
  • Fix Version/s: 1.1
  • Component/s: None
  • Labels:
    None

Description

The PMD rule 'Avoid Duplicate Literals' induces error while parsing the file pmd.xml. The java file seems to have the EUR symbol (€) directly in the source.

pmd.xml :

<violation line="164" rule="AvoidDuplicateLiterals" ruleset="String and StringBuffer Rules" package="xxxxxx" class="xxxxx" method="exportToPDF" externalInfoUrl="http://pmd.sourceforge.net/rules/strings.html#AvoidDuplicateLiterals" priority="3">
The String literal " &u20ac; TTC\n" appears 3 times in this file; the first occurrence is on line 164
</violation>

[Fatal Error] pmd.xml:117:34: The entity "u20ac" was referenced, but not declared.

[ERROR] Cannot execute the command org.codehaus.sonar:sonar-core-maven-plugin::collect

ch.hortis.sonar.mvn.mc.XmlParserException: can not parse the file .....\trunk\target\pmd.xml

at ch.hortis.sonar.mvn.mc.XmlReportParser.parse(XmlReportParser.java:72)

at ch.hortis.sonar.mvn.mc.PMDCollector.initialize(PMDCollector.java:47)

at ch.hortis.sonar.mvn.mc.BaseMeasuresCollector.initialize(BaseMeasuresCollector.java:58)

at ch.hortis.sonar.mvn.CollectMojo.collectAndPersist(CollectMojo.java:269)

at ch.hortis.sonar.mvn.CollectMojo.collect(CollectMojo.java:321)

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Simon Brandhof added a comment - 15/Jan/08 3:24 PM

Should be fixed with the PMD 4.1 upgrade. See http://jira.codehaus.org/browse/SONAR-64

Show
Simon Brandhof added a comment - 15/Jan/08 3:24 PM Should be fixed with the PMD 4.1 upgrade. See http://jira.codehaus.org/browse/SONAR-64

People

  • Assignee:
    Julien Lancelot
    Reporter:
    Simon Brandhof
Vote (0)
Watch (0)

Dates

  • Created:
    04/Jan/08 7:00 AM
    Updated:
    23/Jan/08 6:32 AM
    Resolved:
    22/Jan/08 8:42 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.