Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3590

JMSException: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: java.nio.channels.UnresolvedAddressException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • 2.18.0
    • 2.18.0
    • AMQP, Broker
    • None

    Description

      Need your help ASAP. We have a critical application which is reporting the below error which creates revenue impact. We have around 200+ application services. Out of that only 1 service is getting below error. Please let us know on what scenario this issue occur and what is the solution.

      Stacktrace:

      org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: java.nio.channels.UnresolvedAddressException
      	at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316) ~[spring-jms-4.3.9.RELEASE.jar!/:4.3.9.RELEASE]
      	at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:169) ~[spring-jms-4.3.9.RELEASE.jar!/:4.3.9.RELEASE]
      	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:487) ~[spring-jms-4.3.9.RELEASE.jar!/:4.3.9.RELEASE]
      	at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:484) ~[camel-jms-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:440) ~[camel-jms-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.jms.JmsProducer.processInOnly(JmsProducer.java:394) ~[camel-jms-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:157) ~[camel-jms-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.impl.DefaultAsyncProducer.process(DefaultAsyncProducer.java:37) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.impl.DeferProducer.process(DeferProducer.java:72) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.AbstractCamelInvocationHandler$1.call(AbstractCamelInvocationHandler.java:192) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_252]
      	at org.apache.camel.component.bean.AbstractCamelInvocationHandler.doInvoke(AbstractCamelInvocationHandler.java:210) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.AbstractCamelInvocationHandler.invokeProxy(AbstractCamelInvocationHandler.java:172) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.CamelInvocationHandler.doInvokeProxy(CamelInvocationHandler.java:51) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.AbstractCamelInvocationHandler.invoke(AbstractCamelInvocationHandler.java:89) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at com.sun.proxy.$Proxy141.sendDispatch(Unknown Source) ~[na:na]
      	at com.od.eai.framework.core.dispatch.processor.ReportDispatch.sendDispatch(ReportDispatch.java:25) ~[eai-fw-core-2.4.0.jar!/:na]
      	at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_252]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_252]
      	at org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:472) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.MethodInfo$1.doProceed(MethodInfo.java:291) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:264) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:178) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:110) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:541) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198) [camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:120) [camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198) [camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:298) [camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:207) [camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:154) [camel-core-2.19.1.jar!/:2.19.1]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_252]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_252]
      	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_252]
      Caused by: javax.jms.JMSException: Error while attempting to add new Connection to the pool
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createJmsException(PooledConnectionFactory.java:266) ~[activemq-jms-pool-5.14.5.jar!/:5.14.5]
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:225) ~[activemq-jms-pool-5.14.5.jar!/:5.14.5]
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:204) ~[activemq-jms-pool-5.14.5.jar!/:5.14.5]
      	at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180) ~[spring-jms-4.3.9.RELEASE.jar!/:4.3.9.RELEASE]
      	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474) ~[spring-jms-4.3.9.RELEASE.jar!/:4.3.9.RELEASE]
      	... 34 common frames omitted
      Caused by: javax.jms.JMSException: java.nio.channels.UnresolvedAddressException
      	at org.apache.qpid.jms.exceptions.JmsExceptionSupport.create(JmsExceptionSupport.java:86) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.qpid.jms.exceptions.JmsExceptionSupport.create(JmsExceptionSupport.java:108) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.qpid.jms.JmsConnection.connect(JmsConnection.java:172) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.qpid.jms.JmsConnectionFactory.createConnection(JmsConnectionFactory.java:204) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.qpid.jms.JmsConnectionFactory.createConnection(JmsConnectionFactory.java:191) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:275) ~[activemq-jms-pool-5.14.5.jar!/:5.14.5]
      	at org.apache.activemq.jms.pool.PooledConnectionFactory$1.makeObject(PooledConnectionFactory.java:95) ~[activemq-jms-pool-5.14.5.jar!/:5.14.5]
      	at org.apache.activemq.jms.pool.PooledConnectionFactory$1.makeObject(PooledConnectionFactory.java:92) ~[activemq-jms-pool-5.14.5.jar!/:5.14.5]
      	at org.apache.commons.pool2.impl.GenericKeyedObjectPool.create(GenericKeyedObjectPool.java:1041) ~[commons-pool2-2.4.2.jar!/:2.4.2]
      	at org.apache.commons.pool2.impl.GenericKeyedObjectPool.addObject(GenericKeyedObjectPool.java:1221) ~[commons-pool2-2.4.2.jar!/:2.4.2]
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:221) ~[activemq-jms-pool-5.14.5.jar!/:5.14.5]
      	... 37 common frames omitted
      Caused by: java.io.IOException: java.nio.channels.UnresolvedAddressException
      	at org.apache.qpid.jms.util.IOExceptionSupport.create(IOExceptionSupport.java:45) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.qpid.jms.transports.netty.NettyTcpTransport$2.operationComplete(NettyTcpTransport.java:173) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.qpid.jms.transports.netty.NettyTcpTransport$2.operationComplete(NettyTcpTransport.java:168) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:680) ~[netty-common-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:567) ~[netty-common-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:424) ~[netty-common-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:235) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1089) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:543) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:528) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.handler.ssl.SslHandler.connect(SslHandler.java:415) ~[netty-handler-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:543) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:528) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:510) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.channel.DefaultChannelPipeline.connect(DefaultChannelPipeline.java:909) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.channel.AbstractChannel.connect(AbstractChannel.java:203) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.bootstrap.Bootstrap$2.run(Bootstrap.java:165) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357) ~[netty-common-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) ~[netty-common-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) ~[netty-common-4.0.27.Final.jar!/:4.0.27.Final]
      	... 1 common frames omitted
      Caused by: java.nio.channels.UnresolvedAddressException: null
      	at sun.nio.ch.Net.checkAddress(Net.java:101) ~[na:1.8.0_252]
      	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:619) ~[na:1.8.0_252]
      	at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:209) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:199) ~[netty-transport-4.0.27.Final.jar!/:4.0.27.Final]
      	... 15 common frames omitted
      2021-11-26 21:43:21.044  WARN 1 --- [#0 - vm://audit] o.apache.camel.component.vm.VmConsumer   : Error processing exchange. Exchange[]. Caused by: [org.springframework.jms.UncategorizedJmsException - Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: java.nio.channels.UnresolvedAddressException]
      org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: java.nio.channels.UnresolvedAddressException
      	at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316) ~[spring-jms-4.3.9.RELEASE.jar!/:4.3.9.RELEASE]
      	at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:169) ~[spring-jms-4.3.9.RELEASE.jar!/:4.3.9.RELEASE]
      	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:487) ~[spring-jms-4.3.9.RELEASE.jar!/:4.3.9.RELEASE]
      	at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:484) ~[camel-jms-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:440) ~[camel-jms-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.jms.JmsProducer.processInOnly(JmsProducer.java:394) ~[camel-jms-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:157) ~[camel-jms-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.impl.DefaultAsyncProducer.process(DefaultAsyncProducer.java:37) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.impl.DeferProducer.process(DeferProducer.java:72) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.AbstractCamelInvocationHandler$1.call(AbstractCamelInvocationHandler.java:192) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_252]
      	at org.apache.camel.component.bean.AbstractCamelInvocationHandler.doInvoke(AbstractCamelInvocationHandler.java:210) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.AbstractCamelInvocationHandler.invokeProxy(AbstractCamelInvocationHandler.java:172) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.CamelInvocationHandler.doInvokeProxy(CamelInvocationHandler.java:51) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.AbstractCamelInvocationHandler.invoke(AbstractCamelInvocationHandler.java:89) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at com.sun.proxy.$Proxy141.sendDispatch(Unknown Source) ~[na:na]
      	at com.od.eai.framework.core.dispatch.processor.ReportDispatch.sendDispatch(ReportDispatch.java:25) ~[eai-fw-core-2.4.0.jar!/:na]
      	at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_252]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_252]
      	at org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:472) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.MethodInfo$1.doProceed(MethodInfo.java:291) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:264) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:178) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:110) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:541) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:120) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198) ~[camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:298) [camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:207) [camel-core-2.19.1.jar!/:2.19.1]
      	at org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:154) [camel-core-2.19.1.jar!/:2.19.1]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_252]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_252]
      	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_252]
      Caused by: javax.jms.JMSException: Error while attempting to add new Connection to the pool
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createJmsException(PooledConnectionFactory.java:266) ~[activemq-jms-pool-5.14.5.jar!/:5.14.5]
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:225) ~[activemq-jms-pool-5.14.5.jar!/:5.14.5]
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:204) ~[activemq-jms-pool-5.14.5.jar!/:5.14.5]
      	at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180) ~[spring-jms-4.3.9.RELEASE.jar!/:4.3.9.RELEASE]
      	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474) ~[spring-jms-4.3.9.RELEASE.jar!/:4.3.9.RELEASE]
      	... 34 common frames omitted
      Caused by: javax.jms.JMSException: java.nio.channels.UnresolvedAddressException
      	at org.apache.qpid.jms.exceptions.JmsExceptionSupport.create(JmsExceptionSupport.java:86) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.qpid.jms.exceptions.JmsExceptionSupport.create(JmsExceptionSupport.java:108) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.qpid.jms.JmsConnection.connect(JmsConnection.java:172) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.qpid.jms.JmsConnectionFactory.createConnection(JmsConnectionFactory.java:204) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.qpid.jms.JmsConnectionFactory.createConnection(JmsConnectionFactory.java:191) ~[qpid-jms-client-0.23.0.jar!/:na]
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:275)

      Attachments

        Activity

          People

            Unassigned Unassigned
            Rajeshh Raj_Sai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: