System add-ons are not enabled during startup because of missing Forward proxy parameters
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
Summary
Problem
Some system add-ons are not enabled after startup.
The following appears in the atlassian-confluence.log
1
2
3
4
5
6
7
8
9
10
2016-08-03 12:19:03,109 ERROR [ThreadPoolAsyncTaskExecutor::Thread 28] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.atlassian.httpclient.atlassian-httpclient-plugin'
org.springframework.beans.factory.BeanCreationException: 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://147.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: null
...
Caused by: java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at com.atlassian.httpclient.apache.httpcomponents.proxy.SystemPropertiesProxyConfig.getProxy(SystemPropertiesProxyConfig.java:60)
at com.atlassian.httpclient.apache.httpcomponents.proxy.SystemPropertiesProxyConfig.access$000(SystemPropertiesProxyConfig.java:22)
at com.atlassian.httpclient.apache.httpcomponents.proxy.SystemPropertiesProxyConfig$1.apply(SystemPropertiesProxyConfig.java:34)
at com.atlassian.httpclient.apache.httpcomponents.proxy.SystemPropertiesProxyConfig$1.apply(SystemPropertiesProxyConfig.java:30)
Diagnosis
We have added system properties in the file setenv.sh/setenv.bat . In our case the system properties which are added are the forward proxy parameters . eg:
-Dhttp.proxyHost=xyz
-Dhttps.proxyHost=xyz
-Dhttps.proxyPort=3128
-Dhttp.nonProxyHosts = xyz
Cause
A null number was encountered while getting the proxy configuration from system properties. we are missing the http.proxyPort value
Solution
Resolution
We are missing the -Dhttp.proxyPort value , so we will need to add the missing proxy parameter to setenv.sh
Was this helpful?