DevOptics 'RunEventLog' throws lots of 'NullPointerException'

Issue

  • Jenkins logs are growing, polluted with NullPointerExceptions like the following:
2019-01-14 22:23:56.051+0000 [id=15]	WARNING	hudson.model.Run#onLoad: failed to load {} from /var/jenkins_home/jobs/folder/jobs/multibranch/branches/master/builds/1/build.xml
java.lang.NullPointerException
	at com.cloudbees.devoptics.deliver.events.RunEventLog.close(RunEventLog.java:220)
	at com.cloudbees.devoptics.deliver.events.RunEventLog.onLoad(RunEventLog.java:201)
	at hudson.model.Run.onLoad(Run.java:364)
	at org.jenkinsci.plugins.workflow.job.WorkflowRun.onLoad(WorkflowRun.java:734)
	at hudson.model.RunMap.retrieve(RunMap.java:225)
	at hudson.model.RunMap.retrieve(RunMap.java:57)
	at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:499)
	at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:481)
	at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:379)
	at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:344)
	at jenkins.model.lazy.LazyBuildMixIn$RunMixIn.getPreviousBuild(LazyBuildMixIn.java:371)
	at org.jenkinsci.plugins.workflow.job.WorkflowRun.getPreviousBuild(WorkflowRun.java:267)
	at org.jenkinsci.plugins.workflow.job.WorkflowRun.getPreviousBuild(WorkflowRun.java:140)
	at hudson.model.RunMap$1.next(RunMap.java:110)
	at hudson.model.RunMap$1.next(RunMap.java:99)

Environment

Related Issue(s)

  • DEVOPTICS-610

Resolution

The problem is caused by the CloudBees DevOptics Plugin since version 1.1609 and due to a serialization issue. This could well impact Jenkins performances when it is under load since this exception happens whenever a Pipeline build is loaded.

Solution

Upgrade CloudBees DevOptics Plugin to 1.1617 or later

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.