Issue Details (XML | Word | Printable)

Key: MOJO-891
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: David Vicente
Reporter: David Vicente
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Mojo

NPE due to SAXParseException with CPD parsing

Created: 17/Aug/07 07:15 AM   Updated: 07/Sep/07 12:36 PM
Component/s: dashboard
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Maven 2.0.7, windows server 2003

Complexity: Intermediate


 Description  « Hide
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)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
David Vicente added a comment - 07/Sep/07 12:36 PM
released this day, September 7th 2007 as 1.0-SNAPSHOT : dashboard-maven-plugin-1.0-20070907.172709-15.jar