Wildfly无法建立网络连接 [英] Wildfly Failed to create netty connection

查看:444
本文介绍了Wildfly无法建立网络连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在树莓派2上安装了Wildfly AS,我使用此cmd添加了HornetQ:

I'm have Wildfly AS setup on my raspberry pi 2, I added a HornetQ using this cmd:

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

我正在IntelliJ中另一台计算机上调试发件人应用程序.

I'm debugging a sender app on a different machine in IntelliJ.

我正在使用standalone-full.xml配置,并已按照此 a>启用远程连接的指南

I'm using the standalone-full.xml config and have edited it following this guide to enable remote connection

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

My application fails when it reaches : 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)

在阅读了类似的问题之后

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

I think my problem might be the same, I tried to add a new outbound socket-binding entry but Wildfly crashed when I rebooted it so I removed the settings I'd added.

我的问题是由设置遥控器引起的吗?

Is my problem caused by setting up remote and can it be solved?

推荐答案

我解决了此购买设置:

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

这篇关于Wildfly无法建立网络连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆