Webhook test connection error due to null error

Jasper Hsieh September 19, 2024

Hi there,

I need all the help the community can give me with this issue.

I am using webhook to trigger CI server (Jenkins) automation build. The Jenkins server uses generic webhook trigger plugin to receive command from bitbucket.

However, whenever I configure a new webhook and click the "Test Connection" button, I consistently receive an error.

The log indicates that null error, but when I use another way, e.g. `curl` command to test connection, everything goes well.

Has anyone faced a similar issue or have any recommendations for troubleshooting?

Thanks for all the help in advance!

 

Log:

```

2024-09-19 14:43:29,199 WARN  [http-nio-7990-exec-16133] cy_liu @1JFEEYYx883x281483x11 2a9gqj 192.168.7.227 "POST /rest/api/latest/projects/CUPOLA360/repos/sdk/webhooks/test HTTP/1.1" c.a.w.i.rest.WebhooksResourceHelper Request to http://192.168.0.53:8090/generic-webhook-trigger/invoke?token=imrx_trigger resulted in an error: null
2024-09-19 14:43:29,906 ERROR [ForkJoinPool.commonPool-worker-2465]  c.a.w.i.p.DefaultWebhookDispatcher Webhook invocation [1a28d4f0-b9d8-48a7-a1cd-637136245342] to [http://192.168.0.53:8090/generic-webhook-trigger/invoke?token=imrx_trigger] failed with an error
java.lang.IllegalThreadStateException: null
        at java.base/java.lang.ThreadGroup.addUnstarted(Unknown Source)
        at java.base/java.lang.Thread.<init>(Unknown Source)
        at java.base/java.lang.Thread.<init>(Unknown Source)
        at io.atlassian.util.concurrent.ThreadFactories$Default.newThread(ThreadFactories.java:162)
        at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
        at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateExecutor.execute(SettableFuturePromiseHttpPromiseAsyncClient.java:130)
        at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$1.doFailed(SettableFuturePromiseHttpPromiseAsyncClient.java:48)
        at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalContextAwareFutureCallback.lambda$failed$1(SettableFuturePromiseHttpPromiseAsyncClient.java:111)
        at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient.runInContext(SettableFuturePromiseHttpPromiseAsyncClient.java:80)
        at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalContextAwareFutureCallback.failed(SettableFuturePromiseHttpPromiseAsyncClient.java:111)
        at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:137)
        at org.apache.http.impl.client.cache.ChainedFutureCallback.failed(ChainedFutureCallback.java:47)
        at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:137)
        at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.executionFailed(DefaultClientExchangeHandlerImpl.java:101)

```

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events