WebHooks Plugin cannot be Enabled during Jira Startup
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
WebHooks Plugin cannot be enabled during JIRA startup due to some failed dependencies. The following Failed Plugin Report can be found in atlassian-jira.log
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
___ FAILED PLUGIN REPORT _____________________
3 plugins failed to load during JIRA startup.
'com.atlassian.httpclient.atlassian-httpclient-plugin' - 'Atlassian HTTP Client, Apache HTTP components impl' failed to load.
Error creating bean with name 'httpClientService': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpClient' defined in URL [bundle://41.0:0/META-INF/spring/httpclient-components.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient]: Constructor threw exception; nested exception is java.lang.NumberFormatException: null
Error creating bean with name 'httpClient' defined in URL [bundle://41.0:0/META-INF/spring/httpclient-components.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient]: Constructor threw exception; nested exception is java.lang.NumberFormatException: null
Could not instantiate bean class [com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient]: Constructor threw exception; nested exception is java.lang.NumberFormatException: null
null
It was loaded from /Users/xxxx/workspace/deployments/jira6312/atlassian-jira/WEB-INF/atlassian-bundled-plugins/atlassian-httpclient-plugin-0.17.3.jar
'com.atlassian.jira.plugins.webhooks.jira-webhooks-plugin' - 'JIRA WebHooks Plugin' failed to load.
The plugin has been disabled. A likely cause is that it timed out during initialisation
It has the following missing service dependencies :
&webHookListenerService of type (objectClass=com.atlassian.webhooks.api.provider.WebHookListenerService)
It was loaded from /Users/xxxx/workspace/deployments/jira6312/atlassian-jira/WEB-INF/atlassian-bundled-plugins/jira-webhooks-plugin-1.2.6.jar
'com.atlassian.webhooks.atlassian-webhooks-plugin' - 'Atlassian WebHooks Plugin' failed to load.
Application context initialization for 'com.atlassian.webhooks.atlassian-webhooks-plugin' has timed out
It has the following missing service dependencies :
&httpClient of type (objectClass=com.atlassian.httpclient.api.HttpClient)
It was loaded from /Users/xxxx/workspace/deployments/jira6312/atlassian-jira/WEB-INF/atlassian-bundled-plugins/atlassian-webhooks-plugin-0.17.6.jar
OR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
___ FAILED PLUGIN REPORT _____________________
3 plugins failed to load during JIRA startup.
'com.atlassian.httpclient.atlassian-httpclient-plugin' - 'Atlassian HTTP Client, Apache HTTP components impl' failed to load.
Error creating bean with name 'httpClientService': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpClient' defined in URL [bundle://40.0:0/META-INF/spring/httpclient-components.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient]: Constructor threw exception; nested exception is java.lang.NumberFormatException: For input string: "10068 "
Error creating bean with name 'httpClient' defined in URL [bundle://40.0:0/META-INF/spring/httpclient-components.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient]: Constructor threw exception; nested exception is java.lang.NumberFormatException: For input string: "10068 "
Failed to instantiate [com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient]: Constructor threw exception; nested exception is java.lang.NumberFormatException: For input string: "10068 "
For input string: "10068 "
It was loaded from F:\Apps\JIRA\atlassian-jira\WEB-INF\atlassian-bundled-plugins\atlassian-httpclient-plugin-1.0.1.jar
'com.atlassian.jira.plugins.webhooks.jira-webhooks-plugin' - 'Atlassian JIRA - Plugins - WebHooks Plugin' failed to load.
Application context initialization for 'com.atlassian.jira.plugins.webhooks.jira-webhooks-plugin' has timed out waiting for (objectClass=com.atlassian.webhooks.api.register.listener.WebHookListenerService)
It has the following missing service dependencies :
&webHookListenerService of type (objectClass=com.atlassian.webhooks.api.register.listener.WebHookListenerService)
It was loaded from F:\Apps\JIRA\atlassian-jira\WEB-INF\atlassian-bundled-plugins\jira-webhooks-plugin-7.9.2.jar
'com.atlassian.webhooks.atlassian-webhooks-plugin' - 'Atlassian WebHooks Plugin' failed to load.
Application context initialization for 'com.atlassian.webhooks.atlassian-webhooks-plugin' has timed out waiting for (&(objectClass=com.atlassian.httpclient.api.HttpClient)(objectClass=com.atlassian.httpclient.api.HttpClient))
It has the following missing service dependencies :
&httpClient of type (&(objectClass=com.atlassian.httpclient.api.HttpClient)(objectClass=com.atlassian.httpclient.api.HttpClient))
It was loaded from F:\Apps\JIRA\atlassian-jira\WEB-INF\atlassian-bundled-plugins\atlassian-webhooks-plugin-3.2.3.jar
Environment
Jira Data Center
Cause
Following How to Configure an Outbound HTTP and HTTPS Proxy for JIRA applications, one or more of the JVM parameters are not configured properly, causing the HTTP Client plugin to fail to parse the values and thus fail to load. Since WebHooks depends on HTTP Client, it fails to load too.
In case of this error:
1
Could not instantiate bean class [com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient]: Constructor threw exception; nested exception is java.lang.NumberFormatException: null
In case of this error:
1
Failed to instantiate [com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient]: Constructor threw exception; nested exception is java.lang.NumberFormatException: For input string: "10068 "
→ It's caused by the trailing blank space after the port number.
Resolution
Double check the JVM parameters and ensure that there's no duplicate parameter or trailing blank space in the values.
Was this helpful?