activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j0llyr0g3r <timo.roess...@wincor-nixdorf.com>
Subject Re: Standard http-connector example not working?
Date Mon, 28 Apr 2008 15:07:10 GMT

Hi Joe,

i don't think that this is a firewall issue.

Before i start the two brokers

 netstat -tulpen | grep 6161

shows nothing.

After starting activemq netstat shows:

netstat -tulpen | grep 6161
tcp        0      0 :::61616                :::*                    LISTEN     
1011       70984032   1510/java           
tcp        0      0 127.0.0.1:61617         :::*                    LISTEN     
1011       70984056   1510/java 

Now i check if i can reach broker 2 via telnet from broker 1 on the exact
same port:

 telnet esf-proto-1 61617
Trying 172.18.154.26...
telnet: connect to address 172.18.154.26: Connection refused


So far, this would confirm your assumption, BUT if change http to tcp, the
exact same telnet request works:

 telnet esf-proto-1 61617
Trying 172.18.154.26...
Connected to esf-proto-1.
Escape character is '^]'.
�ActiveMQ�   CacheSize
                         
CacheEnabledSizePrefixDisabledTcpNoDelayEnabledMaxInactivityDurationu0TightEncodingEnabledStackTraceEnabled^]
Connection closed by foreign host.


Then i switched on the highest debug-level in the broker, but none of the
messages seem to be of any informative value:


INFO  DiscoveryNetworkConnector      - Establishing network connection
between from vm://localhost to http://esf-proto-2:61617
...........
WARN  DiscoveryNetworkConnector      - Could not start network bridge
between: vm://localhost and: http://esf-proto-2:61617 due to:
java.net.ConnectException: Connection refused
...........
Connection refused
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:180)
        at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:86)
        at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:651)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:628)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
        at
org.apache.activemq.transport.http.HttpClientTransport.doStart(HttpClientTransport.java:181)
        at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:48)
        at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:56)
        at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:56)
        at
org.apache.activemq.network.DemandForwardingBridgeSupport.start(DemandForwardingBridgeSupport.java:207)
        at
org.apache.activemq.network.DiscoveryNetworkConnector.onServiceAdd(DiscoveryNetworkConnector.java:101)
        at
org.apache.activemq.transport.discovery.simple.SimpleDiscoveryAgent$1.run(SimpleDiscoveryAgent.java:161)

Furthermore, i can exclude any kind of firewall between the two machines.


Any more ideas?
-- 
View this message in context: http://www.nabble.com/Standard-http-connector-example-not-working--tp16937377s2354p16940962.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message