DTM integration proxy settings | Community
Skip to main content
Veera_kandregul
Level 2
April 21, 2017
Solved

DTM integration proxy settings

  • April 21, 2017
  • 6 replies
  • 12516 views

Hi,

We are trying to integrate DTM with AEM 6.2 (service pack 1) but we are getting timeout issues.

We got the proxy settings configuration under com.day.commons.httpclient and am able to connect to analytics server. So, we are assuming there are no issues with proxy settings. 

We debugged bit more, and found that the DTM is using org.apache.http.impl.client.CloseableHttpClient to get client connection. In earlier releases, it is using org.apache.commons.httpclient.HttpClient.

(please check http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__o1px-hi_there_wearetry.html  to verify that earlier versions are using  org.apache.commons.httpclient.HttpClient)

We added proxy details under org.apache.http.proxyconfigurator (Apache HTTP Components Proxy Configuration) as well with no luck.

Below is the error we are getting when trying to connect to DTM.   

21.04.2017 14:22:36.655 *ERROR* [0:0:0:0:0:0:0:1 [1492748514233] POST /etc/cloudservices/dynamictagmanagement/ret/jcr:content.companies.json HTTP/1.1] com.adobe.cq.dtm.impl.util.DTMConfigurationUtil Failed to obtain a response from the DTM API Server.
org.apache.http.conn.HttpHostConnectException: Connect to api.omniture.com:443 [api.omniture.com/192.243.232.77] failed: Connection timed out: connect
        at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:140)
        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
        at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
        at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
        at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
        at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
        at com.adobe.cq.dtm.impl.util.DTMConfigurationUtil.callDTMApi(DTMConfigurationUtil.java:212)
        at com.adobe.cq.dtm.impl.servlets.DTMCompaniesServlet.doPost(DTMCompaniesServlet.java:62)
        at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:149)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Veera_kandregul

Hi Guys,

If you are looking for solution for above issue, we need to use new org.apache.http.proxyconfigurator configuration for DTM.

Below is the response from DTM development team.

Note that between AEM 6.1 and AEM 6.2, the DTM code-base has been updated to use the new Apache HttpComponents instead of the legacy Apache Commons HttpClient which is EOL.

This change requires an additional Proxy Configuration under /system/console/org.apache.http.proxyconfigurator.

6 replies

Veera_kandregul
Level 2
May 4, 2017

Any help here is much appreciated. :)

Veera_kandregul
Level 2
May 4, 2017

Hi Prince,

yeah, i followed those links but no luck, we are getting same exception. Have you integrated DTM with AEM 6.2 over proxy?

Veera_kandregul
Veera_kandregulAuthorAccepted solution
Level 2
June 1, 2017

Hi Guys,

If you are looking for solution for above issue, we need to use new org.apache.http.proxyconfigurator configuration for DTM.

Below is the response from DTM development team.

Note that between AEM 6.1 and AEM 6.2, the DTM code-base has been updated to use the new Apache HttpComponents instead of the legacy Apache Commons HttpClient which is EOL.

This change requires an additional Proxy Configuration under /system/console/org.apache.http.proxyconfigurator.

July 25, 2017

Make changes to "Apache HTTP Components Proxy configuration" and it should work.

peterp18579053
June 28, 2018

kautuksahniVeera.kandregula Please mark as correct.