Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during reading report 'jacoco.xml' (Size: 6.6KB): Object reference not set to an instance of an object. #300

Closed
amatkivskiy opened this issue Dec 12, 2019 · 3 comments
Labels

Comments

@amatkivskiy
Copy link

amatkivskiy commented Dec 12, 2019

Hi @danielpalme
Thanks for this project, really nice tool.

Unfortunately while using it in Azure Pipelines I found that ReportGenerator fails to generate html report for the jacoco xml report that I have (basically it generates empty html, where everything is 0).

So what I did:

ReportGenerator_4.3.6\net47>ReportGenerator.exe -reports:jacoco.xml -targetdir:html -reporttypes:HtmlInline_AzurePipelines  -verbosity:Verbose
  • get command log:

ReportGenerator_4.3.6\net47>ReportGenerator.exe -reports:jacoco.xml -targetdir:html -reporttypes:HtmlInline_AzurePipelines  -verbosity:Verbose
2019-12-12T07:04:53: Arguments
2019-12-12T07:04:53:  -reports:jacoco.xml
2019-12-12T07:04:53:  -targetdir:html
2019-12-12T07:04:53:  -reporttypes:HtmlInline_AzurePipelines
2019-12-12T07:04:53:  -verbosity:Verbose
2019-12-12T07:04:53: Executable: ReportGenerator_4.3.6\net47\ReportGenerator.Core.dll
2019-12-12T07:04:53: Working directory: ReportGenerator_4.3.6\net47
2019-12-12T07:04:53: Settings
2019-12-12T07:04:53:  { "NumberOfReportsParsedInParallel": 1, "NumberOfReportsMergedInParallel": 1, "MaximumNumberOfHistoricCoverageFiles": 100, "RenderPngFallBackImagesForHistoryCharts": false, "CachingDuringOfRemoteFilesInMinutes": 10080, "DisableRiskHotspots": false }
2019-12-12T07:04:53:  { "MetricThresholdForCyclomaticComplexity": 30, "MetricThresholdForCrapScore": 15, "MetricThresholdForNPathComplexity": 200 }
2019-12-12T07:04:53: Loading report 'ReportGenerator_4.3.6\net47\jacoco.xml' 1/1 in memory
2019-12-12T07:04:53:  Preprocessing report
2019-12-12T07:04:53:   No source directories supplied for 'JaCoCo' coverage file
2019-12-12T07:04:53:  Initiating parser for JaCoCo
2019-12-12T07:04:53:   Current Assembly: com/java/android/example/domain/model
2019-12-12T07:04:53:  Error during reading report 'ReportGenerator_4.3.6\net47\jacoco.xml' (Size: 6.6KB): Object reference not set to an instance of an object.
2019-12-12T07:04:53: Parsing of 1 files completed.
2019-12-12T07:04:53: Coverage report parsing took 0.1 seconds
2019-12-12T07:04:53: Initializing report builders for report types: HtmlInline_AzurePipelines
2019-12-12T07:04:53: Analyzing 0 classes
2019-12-12T07:04:53:  Creating summary
2019-12-12T07:04:53:   Writing report file 'html\index.htm'
2019-12-12T07:04:53: Report generation took 0.2 seconds

Files:
jacoco.xml

@danielpalme
Copy link
Owner

Will have look within the next days.

@danielpalme
Copy link
Owner

Please try again with new release 4.3.8

@amatkivskiy
Copy link
Author

@danielpalme Thanks for a quick fix. I confirm that this issue is not reproduced in release 4.3.8 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants