6 Replies Latest reply on Mar 15, 2017 10:29 AM by Justin Bertram

    Wildfly10 Failed to create netty connection JMS

    Ehsan Shahbakhti Newbie

      I'm have Wildfly AS setup on my Server A and I need Jms connection from Server B (Server B -> Server A)

       

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

      The output I get is:

       

      Got initial Context: javax.naming.InitialContext@6500df86

      2016-08-16 19:19:43 ERROR org.apache.activemq.artemis.core.client     - AMQ214016: Failed to create netty connection

      java.nio.channels.UnresolvedAddressException

        at sun.nio.ch.Net.checkAddress(Net.java:121)

        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:617)

        at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:209)

        at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:207)

        at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1097)

        at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:481)

        at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:466)

        at io.netty.channel.ChannelOutboundHandlerAdapter.connect(ChannelOutboundHandlerAdapter.java:47)

        at io.netty.channel.CombinedChannelDuplexHandler.connect(CombinedChannelDuplexHandler.java:167)

        at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:481)

        at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:466)

        at io.netty.channel.ChannelDuplexHandler.connect(ChannelDuplexHandler.java:50)

        at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:481)

        at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:466)

        at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:448)

        at io.netty.channel.DefaultChannelPipeline.connect(DefaultChannelPipeline.java:908)

        at io.netty.channel.AbstractChannel.connect(AbstractChannel.java:203)

        at io.netty.bootstrap.Bootstrap$2.run(Bootstrap.java:166)

        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)

        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)

        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)

        at java.lang.Thread.run(Thread.java:745)

      Exception in thread "main" javax.jms.JMSException: Failed to create session factory

       

       

      i need connect from server B to server A:

      public final static String WILDFLY_REMOTING_URL="http-remoting://136.240.163.72:8080";// server A jms address

      props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.remote.client.InitialContextFactory");

      props.put(Context.PROVIDER_URL, WILDFLY_REMOTING_URL);  // NOTICE: "http-remoting://136.240.163.72:8080" and port "8080"
      props.put(Context.SECURITY_PRINCIPAL, JMS_USERNAME);

      props.put(Context.SECURITY_CREDENTIALS, JMS_PASSWORD);

       

      my standalone-full:

      <interfaces>

              <interface name="management">

                  <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>

              </interface>

        <interface name="public">

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

        </interface>

              <interface name="unsecure">

                  <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>

              </interface>

          </interfaces>

       

      run :

      standalone.bat -b 0.0.0.0 -bmanagement 0.0.0.0 --server-config=standalone-full.xml  -Djboss.node.name=Receiver

       

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