You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2016/05/19 13:25:12 UTC

[jira] [Closed] (AMQ-6295) ws transport problem with the host using underscores in the name

     [ https://issues.apache.org/jira/browse/AMQ-6295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish closed AMQ-6295.
-----------------------------
    Resolution: Not A Problem

See restrictions on valid hostnames:
https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names

> ws transport problem with the host using underscores in the name
> ----------------------------------------------------------------
>
>                 Key: AMQ-6295
>                 URL: https://issues.apache.org/jira/browse/AMQ-6295
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.13.3
>            Reporter: rafal
>            Priority: Minor
>
> Hi,
> I have a host where I have more than one IP per network interface:
> $ netstat -in |grep en1
> en1   1500  link#3      fa.4c.9f.38.3b.3 253607647     0 92736370     0     0
> en1   1500  10.2.6.32   10.2.6.38        253607647     0 92736370     0     0
> en1   1500  10.2.6.128  10.2.6.131       253607647     0 92736370     0     0
> $ netstat -i |grep en1
> en1   1500  link#3      fa.4c.9f.38.3b.3 253608453     0 92736670     0     0
> en1   1500  10.2.6.32   mido_prod_rg     253608453     0 92736670     0     0
> en1   1500  10.2.6.128  mido_prod_boot1  253608453     0 92736670     0     0
> I noticed that if interface name has underscore in it,  Activemq, specifically ws transport fails to start. Error message is following:
> {noformat}
> WARN | Existing Store uses a different OpenWire version[6] than the version configured[11] reverting to the version used by this store, some newer broker features may not workas expected.
>  INFO | PListStore:[/data/apache-activemq/localhost/tmp_storage] started
>  INFO | Apache ActiveMQ 5.13.3 (localhost, ID:mido_prod_rg-51154-1463582901365-0:1) is starting
>  INFO | Listening for connections at: tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>  INFO | Connector openwire started
>  INFO | Listening for connections at: amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>  INFO | Connector amqp started
>  INFO | Listening for connections at: stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>  INFO | Connector stomp started
>  INFO | Listening for connections at: mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>  INFO | Connector mqtt started
> ERROR | Failed to start Apache ActiveMQ ([localhost, ID:mido_prod_rg-51154-1463582901365-0:1], java.net.URISyntaxException: Illegal character in hostname at index 9: ws://mido_prod_rg:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600)
>  INFO | Apache ActiveMQ 5.13.3 (localhost, ID:mido_prod_rg-51154-1463582901365-0:1) is shutting down
>  INFO | Connector openwire stopped
>  INFO | Connector amqp stopped
>  INFO | Connector stomp stopped
>  INFO | Connector mqtt stopped
>  INFO | Connector ws stopped
>  INFO | socketQueue interrupted - stopping
> {noformat}
> And broker is not starting at all. As a workaround I can disable ws:// in the configuration (as I do not use it anyway) and then startup is executed successfully. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)