System add-ons are not enabled during startup because of missing Forward proxy parameters

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

Some system add-ons are not enabled after startup. 

The following appears in the atlassian-confluence.log

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

Resolution

We are missing the -Dhttp.proxyPort value , so we will need to add the missing proxy parameter to setenv.sh

 

Last modified on Aug 16, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.