You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Stephen Baker <st...@rmssoftwareinc.com> on 2022/04/20 16:27:26 UTC

NPE in AMQPMirrorControllerTarget

I was purging ExpiryQueues and I noticed the following warning in our Artemis logs.

We have a dual mirror setup. It's marked as a WARN, I'm just wondering what the implications are, or if it should be filed as a bug (if so I'm not sure how to reproduce).

2022-04-20 11:47:16,131 WARN  [org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget] null: java.lang.NullPointerException
	at org.apache.activemq.artemis.utils.collections.LinkedListImpl.removeAfter(LinkedListImpl.java:270) [artemis-commons-2.20.0.jar:]
	at org.apache.activemq.artemis.utils.collections.LinkedListImpl.removeWithID(LinkedListImpl.java:116) [artemis-commons-2.20.0.jar:]
	at org.apache.activemq.artemis.utils.collections.PriorityLinkedListImpl.removeWithID(PriorityLinkedListImpl.java:110) [artemis-commons-2.20.0.jar:]
	at org.apache.activemq.artemis.core.server.impl.QueueImpl.removeWithSuppliedID(QueueImpl.java:3301) [artemis-server-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.performAck(AMQPMirrorControllerTarget.java:369) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.postAcknowledge(AMQPMirrorControllerTarget.java:354) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.actualDelivery(AMQPMirrorControllerTarget.java:237) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.protocol.amqp.proton.ProtonAbstractReceiver.onMessage(ProtonAbstractReceiver.java:269) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.onDelivery(AMQPConnectionContext.java:775) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.protocol.amqp.proton.handler.Events.dispatch(Events.java:92) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.dispatch(ProtonHandler.java:564) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.flush(ProtonHandler.java:359) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.inputBuffer(ProtonHandler.java:316) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.inputBuffer(AMQPConnectionContext.java:240) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection.bufferReceived(ActiveMQProtonRemotingConnection.java:149) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:682) [artemis-server-2.20.0.jar:2.20.0]
	at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:73) [artemis-core-client-2.20.0.jar:2.20.0]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:795) [netty-transport-classes-epoll-4.1.72.Final.jar:4.1.72.Final]
	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:480) [netty-transport-classes-epoll-4.1.72.Final.jar:4.1.72.Final]
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378) [netty-transport-classes-epoll-4.1.72.Final.jar:4.1.72.Final]
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [netty-common-4.1.72.Final.jar:4.1.72.Final]
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.72.Final.jar:4.1.72.Final]
	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.20.0.jar:]

Stephen E. Baker



Re: NPE in AMQPMirrorControllerTarget

Posted by Clebert Suconic <cl...@gmail.com>.
I think it was ignorable, but I'm dealing with it:

https://github.com/apache/activemq-artemis/pull/4049/commits/952bfde37d79701a02f6626c6345447d5fcd3e20


It should be part of the release this week

On Mon, Apr 25, 2022 at 11:17 AM Clebert Suconic
<cl...@gmail.com> wrote:
>
> it means the message was not found... probably a target came to remove
> it.. while the message itself was also being removed.
>
> On Wed, Apr 20, 2022 at 12:27 PM Stephen Baker
> <st...@rmssoftwareinc.com> wrote:
> >
> > I was purging ExpiryQueues and I noticed the following warning in our Artemis logs.
> >
> > We have a dual mirror setup. It's marked as a WARN, I'm just wondering what the implications are, or if it should be filed as a bug (if so I'm not sure how to reproduce).
> >
> > 2022-04-20 11:47:16,131 WARN  [org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget] null: java.lang.NullPointerException
> >         at org.apache.activemq.artemis.utils.collections.LinkedListImpl.removeAfter(LinkedListImpl.java:270) [artemis-commons-2.20.0.jar:]
> >         at org.apache.activemq.artemis.utils.collections.LinkedListImpl.removeWithID(LinkedListImpl.java:116) [artemis-commons-2.20.0.jar:]
> >         at org.apache.activemq.artemis.utils.collections.PriorityLinkedListImpl.removeWithID(PriorityLinkedListImpl.java:110) [artemis-commons-2.20.0.jar:]
> >         at org.apache.activemq.artemis.core.server.impl.QueueImpl.removeWithSuppliedID(QueueImpl.java:3301) [artemis-server-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.performAck(AMQPMirrorControllerTarget.java:369) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.postAcknowledge(AMQPMirrorControllerTarget.java:354) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.actualDelivery(AMQPMirrorControllerTarget.java:237) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.protocol.amqp.proton.ProtonAbstractReceiver.onMessage(ProtonAbstractReceiver.java:269) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.onDelivery(AMQPConnectionContext.java:775) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.protocol.amqp.proton.handler.Events.dispatch(Events.java:92) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.dispatch(ProtonHandler.java:564) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.flush(ProtonHandler.java:359) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.inputBuffer(ProtonHandler.java:316) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.inputBuffer(AMQPConnectionContext.java:240) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection.bufferReceived(ActiveMQProtonRemotingConnection.java:149) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:682) [artemis-server-2.20.0.jar:2.20.0]
> >         at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:73) [artemis-core-client-2.20.0.jar:2.20.0]
> >         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
> >         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
> >         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
> >         at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
> >         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
> >         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
> >         at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
> >         at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:795) [netty-transport-classes-epoll-4.1.72.Final.jar:4.1.72.Final]
> >         at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:480) [netty-transport-classes-epoll-4.1.72.Final.jar:4.1.72.Final]
> >         at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378) [netty-transport-classes-epoll-4.1.72.Final.jar:4.1.72.Final]
> >         at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [netty-common-4.1.72.Final.jar:4.1.72.Final]
> >         at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.72.Final.jar:4.1.72.Final]
> >         at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.20.0.jar:]
> >
> > Stephen E. Baker
> >
> >
>
>
> --
> Clebert Suconic



-- 
Clebert Suconic

Re: NPE in AMQPMirrorControllerTarget

Posted by Clebert Suconic <cl...@gmail.com>.
it means the message was not found... probably a target came to remove
it.. while the message itself was also being removed.

On Wed, Apr 20, 2022 at 12:27 PM Stephen Baker
<st...@rmssoftwareinc.com> wrote:
>
> I was purging ExpiryQueues and I noticed the following warning in our Artemis logs.
>
> We have a dual mirror setup. It's marked as a WARN, I'm just wondering what the implications are, or if it should be filed as a bug (if so I'm not sure how to reproduce).
>
> 2022-04-20 11:47:16,131 WARN  [org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget] null: java.lang.NullPointerException
>         at org.apache.activemq.artemis.utils.collections.LinkedListImpl.removeAfter(LinkedListImpl.java:270) [artemis-commons-2.20.0.jar:]
>         at org.apache.activemq.artemis.utils.collections.LinkedListImpl.removeWithID(LinkedListImpl.java:116) [artemis-commons-2.20.0.jar:]
>         at org.apache.activemq.artemis.utils.collections.PriorityLinkedListImpl.removeWithID(PriorityLinkedListImpl.java:110) [artemis-commons-2.20.0.jar:]
>         at org.apache.activemq.artemis.core.server.impl.QueueImpl.removeWithSuppliedID(QueueImpl.java:3301) [artemis-server-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.performAck(AMQPMirrorControllerTarget.java:369) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.postAcknowledge(AMQPMirrorControllerTarget.java:354) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.actualDelivery(AMQPMirrorControllerTarget.java:237) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.protocol.amqp.proton.ProtonAbstractReceiver.onMessage(ProtonAbstractReceiver.java:269) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.onDelivery(AMQPConnectionContext.java:775) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.protocol.amqp.proton.handler.Events.dispatch(Events.java:92) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.dispatch(ProtonHandler.java:564) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.flush(ProtonHandler.java:359) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.inputBuffer(ProtonHandler.java:316) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.inputBuffer(AMQPConnectionContext.java:240) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection.bufferReceived(ActiveMQProtonRemotingConnection.java:149) [artemis-amqp-protocol-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:682) [artemis-server-2.20.0.jar:2.20.0]
>         at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:73) [artemis-core-client-2.20.0.jar:2.20.0]
>         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
>         at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
>         at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.72.Final.jar:4.1.72.Final]
>         at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:795) [netty-transport-classes-epoll-4.1.72.Final.jar:4.1.72.Final]
>         at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:480) [netty-transport-classes-epoll-4.1.72.Final.jar:4.1.72.Final]
>         at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378) [netty-transport-classes-epoll-4.1.72.Final.jar:4.1.72.Final]
>         at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [netty-common-4.1.72.Final.jar:4.1.72.Final]
>         at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.72.Final.jar:4.1.72.Final]
>         at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.20.0.jar:]
>
> Stephen E. Baker
>
>


-- 
Clebert Suconic