java.lang.NullPointerException

null

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

Stack trace

  • java.lang.NullPointerException: null at io.moquette.spi.impl.ProtocolProcessor.route2Subscribers(ProtocolProcessor.java:460)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.moquette.spi.impl.ProtocolProcessor.processPublish(ProtocolProcessor.java:310)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.moquette.server.netty.NettyMQTTHandler.channelRead(NettyMQTTHandler.java:61)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.moquette.server.netty.metrics.MessageMetricsHandler.channelRead(MessageMetricsHandler.java:46)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.moquette.server.netty.metrics.BytesMetricsHandler.channelRead(BytesMetricsHandler.java:47)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[mycontroller-dist-standalone-0.0.3.Final-SNAPSHOT-single.jar:0.0.3.Final-SNAPSHOT] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_101]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

We couldn't find other users who have seen this exception.