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

How to solve this problem when mqtt using tls ?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • 2.17.0
    • None
    • Broker, MQTT
    • None

    Description

      "Thread-8 (activemq-netty-threads)" #92 daemon prio=5 os_prio=0 tid=0x00007f4170431000 nid=0x36a6 waiting for monitor entry [0x00007f410447f000]
         java.lang.Thread.State: BLOCKED (on object monitor)
          at org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor.getSslHandler(NettyAcceptor.java:531)
          - waiting to lock <0x00000007b3d43400> (a org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor)
          at org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor$4.initChannel(NettyAcceptor.java:413)
          at io.netty.channel.ChannelInitializer.initChannel(ChannelInitializer.java:129)
          at io.netty.channel.ChannelInitializer.handlerAdded(ChannelInitializer.java:112)
          at io.netty.channel.AbstractChannelHandlerContext.callHandlerAdded(AbstractChannelHandlerContext.java:938)
          at io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:609)
          at io.netty.channel.DefaultChannelPipeline.access$100(DefaultChannelPipeline.java:46)
          at io.netty.channel.DefaultChannelPipeline$PendingHandlerAddedTask.execute(DefaultChannelPipeline.java:1463)
          at io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers(DefaultChannelPipeline.java:1115)
          at io.netty.channel.DefaultChannelPipeline.invokeHandlerAddedIfNeeded(DefaultChannelPipeline.java:650)
          at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:502)
          at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:417)
          at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:474)
          at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
          at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
          at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:384)
          at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
          at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
          at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)
      
      "Thread-7 (activemq-netty-threads)" #91 daemon prio=5 os_prio=0 tid=0x00007f417042f800 nid=0x36a5 waiting for monitor entry [0x00007f4104500000]
         java.lang.Thread.State: BLOCKED (on object monitor)
          at org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor.getSslHandler(NettyAcceptor.java:531)
          - waiting to lock <0x00000007b3d43400> (a org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor)
          at org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor$4.initChannel(NettyAcceptor.java:413)
          at io.netty.channel.ChannelInitializer.initChannel(ChannelInitializer.java:129)
          at io.netty.channel.ChannelInitializer.handlerAdded(ChannelInitializer.java:112)
          at io.netty.channel.AbstractChannelHandlerContext.callHandlerAdded(AbstractChannelHandlerContext.java:938)
          at io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:609)
          at io.netty.channel.DefaultChannelPipeline.access$100(DefaultChannelPipeline.java:46)
          at io.netty.channel.DefaultChannelPipeline$PendingHandlerAddedTask.execute(DefaultChannelPipeline.java:1463)
          at io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers(DefaultChannelPipeline.java:1115)
          at io.netty.channel.DefaultChannelPipeline.invokeHandlerAddedIfNeeded(DefaultChannelPipeline.java:650)
          at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:502)
          at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:417)
          at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:474)
          at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
          at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
          at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:384)
          at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
          at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
          at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)

      broker.xml:

      <acceptor name="mqtttls">tcp://0.0.0.0:1883?sslEnabled=true;sslProvider=OPENSSL;keyStorePath=/data/mqtt_ssl/mqtt_broker.keystore;keyStorePassword=12345;trustStorePath=/data/mqtt_ssl/mqtt_broker.truststore;trustStorePassword=12345;needClientAuth=true;tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=MQTT;useEpoll=true;producerMaxRate=5;handshake-timeout=120</acceptor>

       

      Attachments

        Activity

          People

            jbertram Justin Bertram
            windynet windy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: