Expand my Community achievements bar.

SOLVED

API connection to DTM failing

Avatar

Former Community Member

Hi there, we are trying to connect to DTM using a newly generated API token, however we keep receiving the message 'Failed to obtain a response from the DTM server' from the DTM Cloud Services configuration screen.

 

The Chrome dev tools shows that there is a 500 server error when accessing:

http://localhost:4502/etc/cloudservices/dynamictagmanagement/test-dtm-config/jcr:content.companies.j...

 

Looking on the logs, I see this information.

org.apache.sling.event.impl.jobs.queues.ParallelJobQueue.<main queue> Starting job queue <main queue>
18.05.2015 13:28:39.001 *ERROR* [0:0:0:0:0:0:0:1 [1431919718969] POST /etc/cloudservices/dynamictagmanagement/test-dtm-config/jcr:content.companies.json HTTP/1.1] com.adobe.cq.dtm.impl.util.DTMConfigurationUtil Failed to obtain a response from the DTM API Server.
java.net.UnknownHostException: api.omniture.com
               at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
               at java.net.PlainSocketImpl.connect(Unknown Source)
               at java.net.SocksSocketImpl.connect(Unknown Source)
               at java.net.Socket.connect(Unknown Source)
               at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
               at sun.security.ssl.SSLSocketImpl.<init>(Unknown Source)
               at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
               at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
               at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
               at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
               at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
               at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
               at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
               at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
               at com.adobe.cq.dtm.impl.util.DTMConfigurationUtil.callDTMApi(DTMConfigurationUtil.java:206)
               at com.adobe.cq.dtm.impl.servlets.DTMCompaniesServlet.doPost(DTMCompaniesServlet.java:58)
               at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:148)
               at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:344)
               at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:375)
               at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:533)
               at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)
               at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
               at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java:96)
               at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)

Any help or suggestions would be greatly appreciated.

1 Accepted Solution

Avatar

Correct answer by
Employee

Please also make sure your servers are not behind a firewall. If they are you would need to configure the Proxy configuration - https://forums.adobe.com/thread/1117871

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

Please also make sure your servers are not behind a firewall. If they are you would need to configure the Proxy configuration - https://forums.adobe.com/thread/1117871

Avatar

Level 10

Hi there,

Thanks for reaching out.

Please go through the below DTM integration doc and see if it helps:

http://docs.adobe.com/docs/en/aem/6-0/administer/integration/marketing-cloud/dtm.html

Thanks!

Avatar

Level 3

If you are using newer version of AEM probably 6.2 onwards, there are some changes and you need to use a different OSGi configuration to set proxy.

Reference: Re: DTM integration proxy settings