【发布时间】: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 在我重新启动时崩溃了,所以我删除了我添加的设置。
我的问题是设置遥控器造成的吗?可以解决吗?
【问题讨论】: