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

wildfly-10.1.0.Final integration for MQTT not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.1.0, 1.5.5
    • None
    • Broker, MQTT
    • None
    • java8, artemis-110 embedded in wildfly-10.1.0

    Description

      When connecting a mqtt-client to wildfly-10.1.0.Final (which has artemis-1.1.0), I hit a nullpointerexception.

      2017-09-21 15:58:26,244 WARNING [io.netty.channel.DefaultChannelPipeline] (Thread-1 (activemq-netty-threads-1317507622)) An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.: io.netty.handler.codec.DecoderException: java.lang.NullPointerException
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:391)
      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)
      	at org.apache.activemq.artemis.core.protocol.ProtocolHandler$ProtocolDecoder.channelRead(ProtocolHandler.java:118)
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
      	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
      	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
      	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
      	at org.apache.activemq.artemis.core.protocol.ProtocolHandler$ProtocolDecoder.decode(ProtocolHandler.java:171)
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:360)
      	... 12 more
      

      I filedd this issue in the wildfly-jira: https://issues.jboss.org/browse/WFLY-9372
      At the suggestion of the wildfly-forum I bring this to your attention too by filing it here as well: It is not clear if the problem originates in artemis, or in the integration of artemis in wildfly, or both.

      see also http://activemq.2283324.n4.nabble.com/wildfly-10-1-0-Final-integration-for-MQTT-not-working-td4730581.html

      The stacktrace looks a lot like the issue reported in https://issues.jboss.org/browse/ENTMQBR-728

      The steps to reproduce are described in https://issues.jboss.org/browse/WFLY-9372

      Attachments

        Activity

          People

            Unassigned Unassigned
            thoutekier Thomas Houtekier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: