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

HTML Reporter throwing null pointer error (NPE) - Mac (Catlaina: 10.15.3) #122

Open
DSEyers opened this issue Mar 9, 2020 · 2 comments
Open

Comments

@DSEyers
Copy link

DSEyers commented Mar 9, 2020

Can you look at this issue please:
bmuschko/gradle-clover-plugin#146

Apparently the issue is with OpenCloser ;(

@JasonWThompson
Copy link

JasonWThompson commented Jun 3, 2020

I think it has to do with

Here the code is attempting to get a value out of ThreadLocal object. I suspect that for one reason or another, either initThreadLocals is not being called or resetThreadLocals is being called before RenderFileAction.call

In any case, it's super irritating and breaking my builds in Jenkins. Though my build seem to work on my local device.

[INFO] Writing HTML report to '/home/jenkins/jenkins/workspace/my-project/target/site/clover'
[WARNING] null
java.lang.NullPointerException
    at com.atlassian.clover.reporters.html.RenderFileAction.call (RenderFileAction.java:111)
    at com.atlassian.clover.util.CloverExecutors$LoggingCallable.call (CloverExecutors.java:91)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
    at java.lang.Thread.run (Thread.java:834)

@n-hebert
Copy link

n-hebert commented Aug 18, 2020

Hello,

We're also experiencing this issue breaking builds on our Jenkins due to OpenClover.
The bug is active for us on both 4.4.0 and 4.4.1.

e.g.

[ant:clover-report] null
java.lang.NullPointerException
	at com.atlassian.clover.reporters.html.RenderFileAction.call(RenderFileAction.java:111)
	at com.atlassian.clover.util.CloverExecutors$LoggingCallable.call(CloverExecutors.java:91)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

It only seems to occur if we run partial tests (skip certain folders, classes, etc.), but if I do I see it on Jenkins, locally, and in GitLab Pipelines. Ergo it occurs on any clean workspace.

Is this potentially due to OpenClover expecting all classes in sight to be executed as tests?

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

No branches or pull requests

3 participants