Hi,

I'm trying to run HttpTransportExample behind a http proxy.
I've set -Dhttp.proxyHost and -Dhttp.proxyPort plus added an default 
Autehnticator with my username and password.
But I'm unable to connect to the Artemis server.

Netty transport is configured on the server and from a client without proxy the 
http transport works.

That's the stack trace:

Exception in thread "main" javax.jms.JMSException: Failed to create session 
factory
            at 
org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:836)
            at 
org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:281)
            at 
org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:276)
            at 
org.apache.activemq.artemis.jms.example.HttpTransportExample.main(HttpTransportExample.java:58)
Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED 
message=AMQ119007: Cannot connect to server(s). Tried with all available 
servers.]
            at 
org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:797)
            at 
org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:834)
            ... 3 more

Thanks a lot
Simon

Reply via email to