7 Replies Latest reply on Sep 18, 2017 3:28 PM by panj01

    Webhook task NullPointerException when on WebhookQueueConsumer.getAuthorizationFor(webhook)

    bas.kuis

      Our 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.

        • Re: Webhook task NullPointerException when on WebhookQueueConsumer.getAuthorizationFor(webhook)
          Ryan Rutan

          I know this  is related to your other question in the community, most of Jive is on PTO today ... But I'm going to try and dig a bit today to see if I can find an answer to help you meet your go-live.

           

          For clarifications have you uninstalled your addon, and tried reinstalling it?  Is your addon signed?

            • Re: Webhook task NullPointerException when on WebhookQueueConsumer.getAuthorizationFor(webhook)
              bas.kuis

              Thanks Ryan! We uninstalled and reinstalled the add-on.

               

              Are you referring to this:

              ee690Z4.png

              when you say the is the add-on signed?

               

              We're able to interact currently with the api using the oauth key and secret to register webhooks.

                • Re: Webhook task NullPointerException when on WebhookQueueConsumer.getAuthorizationFor(webhook)
                  Ryan Rutan

                  Yes, that is what I was referring to.  Also, can you DM the instance URL so I can take a look, or get someone to do that?

                    • Re: Webhook task NullPointerException when on WebhookQueueConsumer.getAuthorizationFor(webhook)
                      bas.kuis

                      When registering a webhook should the url be:

                       

                      https://xxxxxxxx-xxxxxxxxxxx.rhcloud.com/XXIntegration/update

                      or

                      https://xxxxxxxx-xxxxxxxxxxx.rhcloud.com:443/XXIntegration/update

                      ?

                      Jive doesn't seem to like the second one ..

                      ====

                      2014-04-18 11:26:55,373 [TaskEngineWorker-pool-1] [::] ERROR com.jivesoftware.community.webhooks.impl.WebhookQueueConsumer - Error sending webhook callback for URL: https://xxxxxxxx-xxxxxxxx.rhcloud.com:443/XXIntegration/update

                      java.lang.RuntimeException: java.lang.RuntimeException: An error occurred executing webhook endpoint (status=408 Request Timeout)

                          at com.jivesoftware.community.webhooks.impl.WebhookClient.send(WebhookClient.java:44)

                          at com.jivesoftware.community.webhooks.impl.WebhookQueueConsumer.sendBatchNotification(WebhookQueueConsumer.java:259)

                          at com.jivesoftware.community.webhooks.impl.WebhookQueueConsumer.consumeBuggyWebhooks(WebhookQueueConsumer.java:198)

                          at com.jivesoftware.community.webhooks.impl.WebhookBuggyQueueConsumerTask.run(WebhookBuggyQueueConsumerTask.java:25)

                          at sun.reflect.GeneratedMethodAccessor1508.invoke(Unknown Source)

                        • Re: Webhook task NullPointerException when on WebhookQueueConsumer.getAuthorizationFor(webhook)
                          bas.kuis

                          We keep seeing this when jive attempt to send along the activity to a configured webhook:

                           

                          2014-04-18 12:06:08,714 [http-nio-0.0.0.0-9200-exec-13] [dufum42L6b9az2dopLpQKLE34TTKYk74:ANONYMOUS:REGULAR] ERROR com.jivesoftware.community.JiveContainerManagerImpl - Not a registered type: 1357701410

                          2014-04-18 12:06:41,919 [http-nio-0.0.0.0-9200-exec-3] [rQeMqvLDdoceie8i412DBt6ARGW36sDU:ANONYMOUS:REGULAR] ERROR com.jivesoftware.community.JiveContainerManagerImpl - Not a registered type: 1357701410

                          2014-04-18 12:09:14,876 [http-nio-0.0.0.0-9200-exec-9] [8Ko8gPHM1G69t7Vuz10bumzE2kI7n7i6:ANONYMOUS:REGULAR] ERROR com.jivesoftware.community.JiveContainerManagerImpl - Not a registered type: 1357701410

                          2014-04-18 12:12:50,442 [http-nio-0.0.0.0-9200-exec-14] [1:admin:REGULAR] ERROR com.jivesoftware.community.JiveContainerManagerImpl - Not a registered type: 1357701410

                          2014-04-18 12:15:42,360 [http-nio-0.0.0.0-9200-exec-15] [1:admin:REGULAR] ERROR com.jivesoftware.community.JiveContainerManagerImpl - Not a registered type: 1357701410

                          2014-04-18 12:19:03,083 [http-nio-0.0.0.0-9200-exec-3] [1:admin:REGULAR] ERROR com.jivesoftware.community.JiveContainerManagerImpl - Not a registered type: 1357701410

                          2014-04-18 12:21:25,506 [http-nio-0.0.0.0-9200-exec-3] [3KSBAouLED2Jd0vQLk3o9Xx7N6V52GEH:ANONYMOUS:REGULAR] ERROR com.jivesoftware.community.JiveContainerManagerImpl - Not a registered type: 1357701410

                          2014-04-18 12:21:46,986 [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.GeneratedMethodAccessor1508.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