activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-2776) Connection refused when using shortname in activemqurl
Date Wed, 28 Jul 2010 08:01:52 GMT

    [ https://issues.apache.org/activemq/browse/AMQ-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60958#action_60958
] 

Eric commented on AMQ-2776:
---------------------------

With multicast discovery, I think I found the problem

My transport connector was in 5.3.0

      <transportConnector name="TestDeCharge-DEFAULT-IN"
                          uri="tcp://td0sib01s.priv.atos.fr:61616?useLocalHost=false"
                          discoveryUri="multicast://default?group=TestDeCharge-DEFAULT"/>

In 5.3.0, the corresponding multicast frame is

09:59:02.870809 IP td0sib01s.priv.atos.fr.6155 > 239.255.2.3.6155: UDP, length 102
        0x0000:  4500 0082 0000 4000 0111 959b 0a18 e7b5  E.....@.........
        0x0010:  efff 0203 180b 180b 006e e44f 5465 7374  .........n.OTest
        0x0020:  4465 4368 6172 6765 2d44 4546 4155 4c54  DeCharge-DEFAULT
        0x0030:  2e41 6374 6976 654d 512d 342e 616c 6976  .ActiveMQ-4.aliv
        0x0040:  652e 256c 6f63 616c 686f 7374 2574 6370  e.%localhost%tcp
        0x0050:  3a2f 2f74 6430 7369 6230 3173 2e70 7269  ://td0sib01s.pri
        0x0060:  762e 6174 6f73 2e66 723a 3631 3631 363f  v.atos.fr:61616?
        0x0070:  7573 654c 6f63 616c 486f 7374 3d66 616c  useLocalHost=fal
        0x0080:  7365                                     se

In 5.3.2, the corresponding multicast frame is

[root@td0sib01s ~]# tcpdump -s 200 -c 4 src host td0sib01s and ip multicast -X
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 200 bytes
09:51:30.818735 IP td0sib01s.priv.atos.fr.6155 > 239.255.2.3.6155: UDP, length 83
        0x0000:  4500 006f 0000 4000 0111 95ae 0a18 e7b5  E..o..@.........
        0x0010:  efff 0203 180b 180b 005b e43c 5465 7374  .........[.<Test
        0x0020:  4465 4368 6172 6765 2d44 4546 4155 4c54  DeCharge-DEFAULT
        0x0030:  2e41 6374 6976 654d 512d 342e 616c 6976  .ActiveMQ-4.aliv
        0x0040:  652e 256c 6f63 616c 686f 7374 2574 6370  e.%localhost%tcp
        0x0050:  3a2f 2f74 6430 7369 6230 3173 2e70 7269  ://td0sib01s.pri
        0x0060:  762e 6174 6f73 2e66 723a 3631 3631 36    v.atos.fr:61616

without "?useLocalHost=false"

A broker that is present on the same server wants to connect with useLocalHost=true =>
localhost and not "address".

it fails to connect.

Eric-AWL

> Connection refused when using shortname in activemqurl
> ------------------------------------------------------
>
>                 Key: AMQ-2776
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2776
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Connector
>    Affects Versions: 5.3.2, 5.4.0
>         Environment: Suse 10 Sp2
>            Reporter: vioa lu
>             Fix For: 5.4.0
>
>         Attachments: activemq-2776.patch
>
>
> 1. On server suse10sp268, start activemq , then run activemq-admin.bat browse --amqurl
tcp://suse10sp268:61616 TEST.FOO , got excecption Caused by: javax.jms.JMSException: Could
not connect to broker URL: tcp://suse10sp268:61616. Reason: java.net.ConnectException: Connection
refused: connect
> at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
> at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:286)
> at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:185)
> at org.apache.activemq.ra.ActiveMQConnectionSupport.makeConnection(ActiveMQConnectionSupport.java:79)
> at org.apache.activemq.ra.ActiveMQConnectionSupport.makeConnection(ActiveMQConnectionSupport.java:61)
> at org.apache.activemq.ra.ActiveMQManagedConnectionFactory.createManagedConnection(ActiveMQManagedConnectionFactory.java:169)
> ... 42 more
> Caused by: java.net.ConnectException: Connection refused: connect
> 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 org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:483)
> at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:446)
> at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
> at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
> at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:266)
> This  happened also when got error starting activemq-ra module in geronimo
> https://issues.apache.org/jira/browse/GERONIMO-5371

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message