wso2 / carbon-commons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connection refused when publishing to Google Analytics

tharikaGitHub opened this issue · comments

Description:
The reason for the connection refused problem is as follows.

Currently, we are using DefaultHttpClient() class to create the client object in GoogleAnalyticsDataPublisher class. In order to configure a proxy and a port, we need to use SystemDefaultHttpClient() class to create the client object inside the GoogleAnalyticsDataPublisher class. This class can read the system properties configured in the wso2server.sh file

Affected Product Version:
carbon-commons 4.6.21