Wildfly 无法创建 netty 连接

Wildfly Failed to create netty connection

我在 raspberry pi 2 上安装了 Wildfly AS,我使用此命令添加了一个 HornetQ:

jms-queue add --queue-address=demoQueue --entries=java:/jms/queue/demoQueue,java:jboss/exported/jms/queue/demoQueue
 

我正在另一台机器上使用 IntelliJ 调试发送器应用程序。

我正在使用 standalone-full.xml 配置并按照 this 指南进行编辑以启用远程连接

我的应用程序在到达时失败: connection = connectionFactory.createConnection(System.getProperty("username", DEFAULT_USERNAME), System.getProperty("password", DEFAULT_PASSWORD));

我得到的输出是:

    INFO: JBoss Remoting version 4.0.9.Final
    Nov 21, 2015 8:33:43 PM Sender main
    INFO: Attempting to acquire connection factory "jms/RemoteConnectionFactory"
    Nov 21, 2015 8:33:45 PM Sender main
    INFO: Found connection factory "jms/RemoteConnectionFactory" in JNDI
    Nov 21, 2015 8:33:45 PM Sender main
    INFO: Attempting to acquire destination "java:/jms/queue/demoQueue"
    Nov 21, 2015 8:33:45 PM Sender main
    INFO: Found destination "java:/jms/queue/demoQueue" in JNDI
    Nov 21, 2015 8:33:48 PM org.hornetq.core.remoting.impl.netty.NettyConnector createConnection
    ERROR: HQ214016: Failed to create netty connection
    java.nio.channels.UnresolvedAddressException
    at sun.nio.ch.Net.checkAddress(Net.java:101)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:622)

看完类似的issue

我想我的问题可能是一样的,我尝试添加一个新的出站套接字绑定条目,但是当我重新启动 Wildfly 时它崩溃了,所以我删除了我添加的设置。

我的问题是设置远程导致的吗,可以解决吗?

我解决了这个购买设置:

<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>

收件人:

<interface name="public">
<inet-address value="${jboss.bind.address:My-Host-Address}"/>