【问题标题】:Wildfly Failed to create netty connectionWildfly 无法创建网络连接
【发布时间】:2015-11-21 20:47:52
【问题描述】:

我在我的树莓派 2 上安装了 Wildfly AS,我使用这个 cmd 添加了一个 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 在我重新启动时崩溃了,所以我删除了我添加的设置。

我的问题是设置遥控器造成的吗?可以解决吗?

【问题讨论】:

    标签: java jboss netty wildfly


    【解决方案1】:

    我解决了这个购买设置:

    <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}"/>
    

    【讨论】:

    • 谢谢。如果包含 jboss.bind.address,它对我不起作用,但使用机器的 ip 地址可以正常工作。
    猜你喜欢
    • 1970-01-01
    • 2016-08-26
    • 2016-04-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-23
    相关资源
    最近更新 更多