Outbound Proxy Issue with Appian

Solution In Progress - Updated -

Environment

  • JBoss Enterprise Application Platform (EAP)
  • Java

Issue

Our outbound connection from Appian 7.2 is failing. We have set the following proxy parameters in JBoss standalone.xml but it still fails with a connection timed out.

<system-properties> 
<property name="http.proxyHost" value="Our-Proxy-IP"/> 
<property name="http.proxyPort" value="Our-Proxy-Port"/> 
<property name="http.nonProxyHosts" value="*.xxxxx.com"/> 
</system-properties> 
java.net.ConnectException: Connection timed out: connect
    at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
    at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:451)
    at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:140)
    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.appiancorp.expression.custom.http.HttpGetTextExpression.httpGet(HttpGetTextExpression.java:45)

Resolution

Please contact Appian for instructions on how to configure proxy settings.

Root Cause

Something needs to configure the proxy settins on the socket, and this is normally done by either the system properties (when the default socket factory is used) or the code that creates the socket factory, which in this case is Apache Commons HTTPClient. This is created by Appian code, so the configuration should probably come from Appian.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.