NPE due to SAXParseException with CPD parsing
---------------------------------------------
Key: MOJO-891
URL: http://jira.codehaus.org/browse/MOJO-891
Project: Mojo
Issue Type: Bug
Components: dashboard
Environment: Maven 2.0.7, windows server 2003
Reporter: David Vicente
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email