[ 
https://issues.apache.org/jira/browse/ARTEMIS-3728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17616705#comment-17616705
 ] 

Stephen Baker commented on ARTEMIS-3728:
----------------------------------------

I produced a somewhat similar error in 2.25:
{code:java}
artemis-test-artemis-1-m-1   | 2022-10-12 22:02:13,468 ERROR 
[org.apache.activemq.artemis.core.server] AMQ224041: Failed to deliver: 
java.lang.IllegalStateException: this method requires to be called within the 
handler, use the executor
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.requireHandler(ProtonHandler.java:210)
 [artemis-amqp-protocol-2.25.0.jar:2.25.0]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.requireInHandler(AMQPConnectionContext.java:197)
 [artemis-amqp-protocol-2.25.0.jar:2.25.0]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.protocol.amqp.proton.ProtonAbstractReceiver.settle(ProtonAbstractReceiver.java:185)
 [artemis-amqp-protocol-2.25.0.jar:2.25.0]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget$ACKMessageOperation.run(AMQPMirrorControllerTarget.java:125)
 [artemis-amqp-protocol-2.25.0.jar:2.25.0]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.performAck(AMQPMirrorControllerTarget.java:388)
 [artemis-amqp-protocol-2.25.0.jar:2.25.0]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.lambda$performAck$2(AMQPMirrorControllerTarget.java:377)
 [artemis-amqp-protocol-2.25.0.jar:2.25.0]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.core.server.impl.QueueImpl$2.skipDelivery(QueueImpl.java:1203)
 [artemis-server-2.25.0.jar:2.25.0]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.core.server.impl.QueueImpl.doInternalPoll(QueueImpl.java:2932)
 [artemis-server-2.25.0.jar:2.25.0]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.core.server.impl.QueueImpl.deliver(QueueImpl.java:2991)
 [artemis-server-2.25.0.jar:2.25.0]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.core.server.impl.QueueImpl$DeliverRunner.run(QueueImpl.java:4250)
 [artemis-server-2.25.0.jar:2.25.0]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:56)
 [artemis-commons-2.25.0.jar:]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31)
 [artemis-commons-2.25.0.jar:]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:67)
 [artemis-commons-2.25.0.jar:]
artemis-test-artemis-1-m-1   |     at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
 [java.base:]
artemis-test-artemis-1-m-1   |     at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
 [java.base:]
artemis-test-artemis-1-m-1   |     at 
org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)
 [artemis-commons-2.25.0.jar:]
artemis-test-artemis-1-m-1   |{code}
Again this was on the live instance of the mirror, not the instance I was 
producing/consuming from. Except that both are in deliver on the mirror queue 
though I'm not sure they're related. Will open a separate issue if you think it 
warrants it.

 

> Failed to deliver: java.lang.NullPointerException
> -------------------------------------------------
>
>                 Key: ARTEMIS-3728
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3728
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.20.0
>         Environment: centos 7
> Corretto JDK 11
> Artemis 2.20.0 (with epoll module)
>  
>            Reporter: Stephen Baker
>            Priority: Minor
>         Attachments: artemis-1.profile-artms1, broker-1.xml-artms1
>
>
> Seeing the following error in the logs on one of our artemis servers 
> repeatedly since last night:
> {noformat}
> 2022-03-17 00:02:20,434 ERROR [org.apache.activemq.artemis.core.server] 
> AMQ224041: Failed to deliver: java.lang.NullPointerException
>       at 
> org.apache.activemq.artemis.utils.collections.LinkedListImpl.addTail(LinkedListImpl.java:141)
>  [artemis-commons-2.20.0.jar:]
>       at 
> org.apache.activemq.artemis.utils.collections.PriorityLinkedListImpl.addTail(PriorityLinkedListImpl.java:84)
>  [artemis-commons-2.20.0.jar:]
>       at 
> org.apache.activemq.artemis.core.server.impl.QueueImpl.internalAddTail(QueueImpl.java:2877)
>  [artemis-server-2.20.0.jar:2.20.0]
>       at 
> org.apache.activemq.artemis.core.server.impl.QueueImpl.doInternalPoll(QueueImpl.java:2938)
>  [artemis-server-2.20.0.jar:2.20.0]
>       at 
> org.apache.activemq.artemis.core.server.impl.QueueImpl.deliver(QueueImpl.java:2963)
>  [artemis-server-2.20.0.jar:2.20.0]
>       at 
> org.apache.activemq.artemis.core.server.impl.QueueImpl$DeliverRunner.run(QueueImpl.java:4205)
>  [artemis-server-2.20.0.jar:2.20.0]
>       at 
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42)
>  [artemis-commons-2.20.0.jar:]
>       at 
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31)
>  [artemis-commons-2.20.0.jar:]
>       at 
> org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65)
>  [artemis-commons-2.20.0.jar:]
>       at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>  [java.base:]
>       at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>  [java.base:]
>       at 
> org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)
>  [artemis-commons-2.20.0.jar:]{noformat}
> I don't know how it started or how to reproduce, but I can say that we 
> switched to dual mirroring last night per the [current 
> documentation|https://activemq.apache.org/components/artemis/documentation/latest/amqp-broker-connections.html].
> In the process we renamed our mirrors (before they had the same name on each 
> side), and deleted the old mirror queues through the management console after 
> all of the servers were up. We did this on 4 other pairs (all separate 
> clusters) without running into this issue.
> These errors are coming only from the live server on the disaster recovery 
> site, which has no consumers except the mirror connection.
> Prior to these errors we did have:
> {noformat}
> 2022-03-16 23:52:29,482 WARN 
> [org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget]
>  Queue $ACTIVEMQ_ARTEMIS_MIRROR_Mirror not found on mirror target, ignoring 
> ack for queue=$ACTIVEMQ_ARTEMIS_MIRROR_Mirror, messageID=63165878649, 
> nodeID=dea32b83-efd5-11eb-b5b1-0050568fe3b2{noformat}
> in our logs, where that mirror name is the old shared mirror name (not part 
> of the current broker.xml).
> Error does not appear to have come back on a restart of the server.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to