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

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

問題

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)

診断

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

原因

A null number was encountered while getting the proxy configuration from system properties. we are missing the http.proxyPort value

ソリューション

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

 

最終更新日 2016 年 8 月 16 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.