Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Connect-SOAP throws UnknownHostException

SA-2621

Summary


 
User has three source systems as 'A','B' & 'C' and each of these system hosts the web-service. User has reported inconsistent results on Rule-Connect-SOAP when trying to connect to these external web-services using the EndPoint URL. User has Data instance mapped to a Declare_Page that holds the information for each source system.
 

Error Messages


 
UserID - Unable to sendViaPost to url[https://hostname.domain.com:443/WebService/services/YYYYYY]
java.net.UnknownHostException:
hostname.domain.com
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:519)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:550)
    at com.pega.apache.commons.pega.PegaSSLProtocolSocketFactory.createSocket(PegaSSLProtocolSocketFactory.java:407)
    at com.pega.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at com.pega.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1322)
    at com.pega.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    at com.pega.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at com.pega.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at com.pega.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:347)
    at com.pega.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:565)
    at com.pega.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)
    at com.pega.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
    at com.pega.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
    at com.pega.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:224)
    at com.pega.apache.axis2.engine.AxisEngine.send(AxisEngine.java:440)
    at com.pega.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
    at com.pega.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
    at com.pega.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
    at com.pegarules.generated.activity.ra_action_invokeaxis2_7085a8222e313309ee4c4642bb83bcde.step14_circum0(ra_action_invokeaxis2_7085a8222e313309ee4c4642bb83bcde.java:3405)
    at com.pegarules.generated.activity.ra_action_invokeaxis2_7085a8222e313309ee4c4642bb83bcde.perform(ra_action_invokeaxis2_7085a8222e313309ee4c4642bb83bcde.java:294)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3018)
    at com.pegarules.generated.activity.ra_action_invoke_d7dd9a2f387cb620a38d17a76368e747.step8_circum0(ra_action_invoke_d7dd9a2f387cb620a38d17a76368e747.java:1090)
    at com.pegarules.generated.activity.ra_action_invoke_d7dd9a2f387cb620a38d17a76368e747.perform(ra_action_invoke_d7dd9a2f387cb620a38d17a76368e747.java:192)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3018)
 

Steps to Reproduce


 
N/A
 

Root Cause


 
The service end point URL 
https://hostname.domain.com:443/WebService/services/YYYYYY belonging to System ‘A’ does not work consistently due to network/DNS configuration issues.
 

Resolution


 
Using IP address in the service end point URL instead of using hostname+domain name has helped resolve the issue.
 

 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us