Heartbeat is broken

Steps to reproduce

The Heartbeat runnable job JobProducerHeartbeat starts once and then throws an Exception (not reported in the logs) and is never seen again, as subsequent execution is suppressed by ScheduledThreadPoolExecutor.

Adding a try/catch block around it with exception logging reveals:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2018-03-03 15:21:59,661 | WARN | pool-57-thread-1 | (ServiceRegistryJpaImpl$JobProducerHeartbeat:3345) - Error while checking for unresponsive services java.lang.NullPointerException at org.opencastproject.security.urlsigning.provider.impl.AbstractUrlSigningProvider.accepts(AbstractUrlSigningProvider.java:232)[165:matterhorn-urlsigning-service-impl:4.0.0.SNAPSHOT] at org.opencastproject.security.urlsigning.service.impl.UrlSigningServiceImpl.accepts(UrlSigningServiceImpl.java:63)[165:matterhorn-urlsigning-service-impl:4.0.0.SNAPSHOT] at org.opencastproject.kernel.security.TrustedHttpClientImpl.getSignedUrl(TrustedHttpClientImpl.java:431)[106:matterhorn-kernel:4.0.0.SNAPSHOT] at org.opencastproject.kernel.security.TrustedHttpClientImpl.execute(TrustedHttpClientImpl.java:377)[106:matterhorn-kernel:4.0.0.SNAPSHOT] at org.opencastproject.kernel.security.TrustedHttpClientImpl.execute(TrustedHttpClientImpl.java:345)[106:matterhorn-kernel:4.0.0.SNAPSHOT] at org.opencastproject.serviceregistry.impl.ServiceRegistryJpaImpl$JobProducerHeartbeat.run(ServiceRegistryJpaImpl.java:3296)[140:matterhorn-serviceregistry:4.0.0.SNAPSHOT] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_121] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_121] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_121] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_121] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121] at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]

Status

Assignee

Unassigned

Reporter

Stephen Marquard

Severity

Incorrectly Functioning Without Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

4.1

Priority

Major