[
https://issues.apache.org/jira/browse/AMQ-8120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17291102#comment-17291102
]
Matt Pavlovich commented on AMQ-8120:
-------------------------------------
This looks to be referencing 'Artemis'-- candidate for moving the issue to
Artemis JIRA?
{noformat}
QueueConnectionFactory factory = (QueueConnectionFactory)
context.lookup("java:/jms/artemisConnectionFactory");
{noformat}
> UnknownHostException when connecting to remote queue on Wildfly 20.0.1 and
> OpenJDK
> ----------------------------------------------------------------------------------
>
> Key: AMQ-8120
> URL: https://issues.apache.org/jira/browse/AMQ-8120
> Project: ActiveMQ
> Issue Type: Bug
> Components: JMS client
> Environment: #JVM version
> OpenJDK only - AdoptOpenJDK 8 and Zulu OpenJDK 11.43.55
> No issues with Oracle JDK 1.8.0_172
> #OS version
> tested on Linux and Windows 10
> Reporter: Leszek Ekiert
> Priority: Major
>
> #Expected behavior
> Remote connection to the queue should work in OpenJDK in the same way as in
> Oracle JDK
> #Actual behavior
> A remote connection to external queue fails with UnknownHostException
> 2021-01-11 06:52:19,801 ERROR [org.apache.activemq.artemis.core.client]
> (default task-19)- AMQ214016: Failed to create netty connection:
> java.net.UnknownHostException: wer74009 at
> java.base/java.net.InetAddress$CachedAddresses.get(Unknown Source) at
> java.base/java.net.InetAddress.getAllByName0(Unknown Source) at
> java.base/java.net.InetAddress.getAllByName(Unknown Source) at
> java.base/java.net.InetAddress.getAllByName(Unknown Source) at
> java.base/java.net.InetAddress.getByName(Unknown Source) at
> [email protected]//io.netty.util.internal.SocketUtils$8.run(SocketUtils.java:156)
> at
> [email protected]//io.netty.util.internal.SocketUtils$8.run(SocketUtils.java:153)
> at java.base/java.security.AccessController.doPrivileged(Native Method) at
> [email protected]//io.netty.util.internal.SocketUtils.addressByName(SocketUtils.java:153)
> at
> [email protected]//io.netty.resolver.DefaultNameResolver.doResolve(DefaultNameResolver.java:41)
> at
> [email protected]//io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:61)
> at
> [email protected]//io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:53)
> at
> [email protected]//io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:55)
> at
> [email protected]//io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:31)
> at
> [email protected]//io.netty.resolver.AbstractAddressResolver.resolve(AbstractAddressResolver.java:106)
> at
> [email protected]//io.netty.bootstrap.Bootstrap.doResolveAndConnect0(Bootstrap.java:206)
> at
> [email protected]//io.netty.bootstrap.Bootstrap.access$000(Bootstrap.java:46)
> at
> [email protected]//io.netty.bootstrap.Bootstrap$1.operationComplete(Bootstrap.java:180)
> at
> [email protected]//io.netty.bootstrap.Bootstrap$1.operationComplete(Bootstrap.java:166)
> at
> [email protected]//io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:577)
> at
> [email protected]//io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:551)
> at
> [email protected]//io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:490)
> at
> [email protected]//io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:615)
> at
> [email protected]//io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:604)
> at
> [email protected]//io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:104)
> at
> [email protected]//io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:84)
> at
> [email protected]//io.netty.channel.AbstractChannel$AbstractUnsafe.safeSetSuccess(AbstractChannel.java:984)
> at
> [email protected]//io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:504)
> at
> [email protected]//io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:417)
> at
> [email protected]//io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:474)
> at
> [email protected]//io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
> at
> [email protected]//io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
> at
> [email protected]//io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:384)
> at
> [email protected]//io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
> at
> [email protected]//io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
> at
> org.apache.activemq.artemis.journal//org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)
> #Steps to reproduce
> Hashtable<String, String> env = new Hashtable<>();
> env.put(Context.INITIAL_CONTEXT_FACTORY,
> "org.wildfly.naming.client.WildFlyInitialContextFactory");
> env.put(Context.PROVIDER_URL,
> "http-remoting://wer74009.XXXX.YYYYY.com:8080");
> env.put(Context.SECURITY_PRINCIPAL, JMS_USER_NAME);
> env.put(Context.SECURITY_CREDENTIALS, JMS_PASSWORD);
> InitialContext context = new InitialContext(env);
> QueueConnectionFactory factory = (QueueConnectionFactory)
> context.lookup("java:/jms/artemisConnectionFactory");
> return factory.createQueueConnection();
--
This message was sent by Atlassian Jira
(v8.3.4#803005)