I am trying to connect to a proxy through quickfix/j initiator. I have the below properties in the initiator settings:

[SESSION]
ConnectionType=initiator
TargetCompID=XXX
SocketConnectHost=<destination domain name>
SocketConnectPort=XXXX
SessionQualifier=xyz
ProxyType=socks
ProxyVersion=5
ProxyHost=<proxy domain name>
ProxyPort=1080

But, I am getting below exception while creating proxyRequest. Any leads will be greatly appreciated.

[NioProcessor-2] ERROR org.apache.mina.proxy.AbstractProxyLogicHandler - Unable to send Socks request:
java.lang.IllegalArgumentException: SocksProxyRequest object has no suitable endpoint information
    at org.apache.mina.proxy.handlers.socks.Socks5LogicHandler.encodeProxyRequestPacket(Socks5LogicHandler.java:137) ~[mina-core.jar:?]
    at org.apache.mina.proxy.handlers.socks.Socks5LogicHandler.writeRequest(Socks5LogicHandler.java:292) ~[mina-core.jar:?]
    at org.apache.mina.proxy.handlers.socks.Socks5LogicHandler.doHandshake(Socks5LogicHandler.java:88) ~[mina-core.jar:?]

Quick update:
The connection works if I replace the destination domain name with the IP. Any ideas how to make it work for the domain name?

5

for anyone passing this question in future, an open issue in Apache Mina requires local name resolution, while this would actually be the proxies task

https://issues.apache.org/jira/browse/DIRMINA-963

1