How to resolve error "org.apache.commons.httpclient.NoHttpResponseException: The server *.workday.com failed to respond" occured while running Workday Plugin application

How to resolve error "org.apache.commons.httpclient.NoHttpResponseException: The server *.workday.com failed to respond" occured while running Workday Plugin application

book

Article ID: KB0082717

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Workday All

Description

Issue: While working with an application based on Workday plugin, the following error is thrown at runtime.

---Error Stack---

Caused by: org.apache.commons.httpclient.NoHttpResponseException: The server *.workday.com failed to respond
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
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.tibco.bw.sharedresource.http.client.primitive.HTTPClientTransportDriverImpl.super(HTTPClientTransportDriverImpl.java:479)

---Error Stack---

Cause: By default, due to security reasons, Workday rejects all requests coming from a non secured client (HTTP). If the Workday plugin application is configured to use a HTTP client, the error will be thrown at runtime and the application will fail to start.

Issue/Introduction

Error "org.apache.commons.httpclient.NoHttpResponseException: The server *.workday.com failed to respond" occured while running Workday Plugin application.

Resolution

To resolve this issue, configure the client to be secured (HTTPS). Perform the following steps to configure your client to use HTTPS instead of HTTP.

- Configure a  SSL client connection shared resource by importing the server side certificates in a JKS file.
- Go to HttpClientResource shared resource configuration.
- In the Security section, there is an option called "confidentiality".
- Check the confidentiality check box and upon doing that you will see an option which asks for an SSL client configuration.
- In the SSL client configuration, select the SSL client connection shared resource which you have configured in the first step.

Once the steps above are performed the client will be able to send request to the Workday server and receive a valid response.