美文网首页
MQ:URISyntaxException: Illegal c

MQ:URISyntaxException: Illegal c

作者: TeaR0502 | 来源:发表于2018-07-12 11:59 被阅读0次

报错:Failed to start Apache ActiveMQ (localhost, ID:TeaR_Work_Cp-50147-1531367638117-0:1)
jvm 1 | java.net.URISyntaxException: Illegal character in hostname at index 9: ws://TeaR_Work_Cp:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600

解决办法:

修改activemq.xml (在conf目录下)的以下内容:
<transportConnectors>

<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
</transportConnectors>

中的0.0.0.0替换为相对应IP >> 127.0.0.1

相关文章

网友评论

      本文标题:MQ:URISyntaxException: Illegal c

      本文链接:https://www.haomeiwen.com/subject/hvwlpftx.html