Webhook task NullPointerException when on WebhookQueueConsumer.getAuthorizationFor(webhook)
bas.kuis Apr 18, 2014 4:57 AMOur instance isn't able to send web-hook activity
2014-04-17 16:27:30,669 [TaskEngineWorker-pool-1] [::] ERROR com.jivesoftware.base.taskmanager.impl.LocalExecutor - Failed to execute task
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.jivesoftware.base.taskmanager.impl.BeanTaskRunnable.run(BeanTaskRunnable.java:49)
at com.jivesoftware.base.taskmanager.impl.TaskQueue$2.run(TaskQueue.java:489)
at com.jivesoftware.base.taskmanager.impl.LocalExecutor$3.call(LocalExecutor.java:143)
at com.jivesoftware.community.aaa.authz.SystemExecutor.executeCallable(SystemExecutor.java:42)
at com.jivesoftware.base.taskmanager.impl.LocalExecutor.runInSystemContext(LocalExecutor.java:139)
at com.jivesoftware.base.taskmanager.impl.LocalExecutor.access$2(LocalExecutor.java:126)
at com.jivesoftware.base.taskmanager.impl.LocalExecutor$1.run(LocalExecutor.java:92)
at com.jivesoftware.util.task.TaskEngineRunnable.run(TaskEngineRunnable.java:57)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor1526.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.jivesoftware.base.taskmanager.impl.BeanTaskRunnable.run(BeanTaskRunnable.java:46)
... 12 more
Caused by: java.lang.NullPointerException
at com.jivesoftware.community.webhooks.impl.WebhookQueueConsumer.getAuthorizationFor(WebhookQueueConsumer.java:289)
at com.jivesoftware.community.webhooks.impl.WebhookQueueConsumer.sendBatchNotification(WebhookQueueConsumer.java:250)
at com.jivesoftware.community.webhooks.impl.WebhookQueueConsumer.consumeBuggyWebhooks(WebhookQueueConsumer.java:198)
at com.jivesoftware.community.webhooks.impl.WebhookBuggyQueueConsumerTask.run(WebhookBuggyQueueConsumerTask.java:25)
... 16 more
What could be causing a null pointer at: (WebhookQueueConsumer.java:289)
JiveOAuth2Client client = oAuth2ClientManager.get(webhook.getJiveOAuth2Code().getOAuthClientID());
Does anybody have some insight into why this might be happening? This issue only exists on Jive hosted.