Mojo

NPE due to SAXParseException with CPD parsing

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: dashboard
  • Labels:
    None
  • Environment:
    Maven 2.0.7, windows server 2003
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

NullPointerException with getCpdReport method.

This NPE occurs when a SAXParseException is thrown.

This occurs when the source code has specific characters which are not recognized by UTF-8 encoding (encoding used by cpd xml file).

[ERROR] DashBoardUtils getDocument() SAXException :
org.xml.sax.SAXParseException: An entity determined to be in a certain encoding must not contain sequences illegal in that encoding.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDocument(DashBoardUtils.java:792)
at org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getCpdReport(DashBoardUtils.java:479)
at org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDashBoardMavenProject(DashBoardUtils.java:276)
at org.codehaus.mojo.dashboard.report.plugin.DashBoardReportMojo.executeReport(DashBoardReportMojo.java:263)

Activity

Hide
David Vicente added a comment -

released this day, September 7th 2007 as 1.0-SNAPSHOT : dashboard-maven-plugin-1.0-20070907.172709-15.jar

Show
David Vicente added a comment - released this day, September 7th 2007 as 1.0-SNAPSHOT : dashboard-maven-plugin-1.0-20070907.172709-15.jar

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: