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

QueueImpl::NPE on holder.iter == null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.29.0
    • None
    • None

    Description

      I had an user reporting the following NPE on a test:

      java.lang.NullPointerException: Cannot invoke “org.apache.activemq.artemis.utils.collections.LinkedListIterator.repeat()” because “holder.iter” is null
              at org.apache.activemq.artemis.core.server.impl.QueueImpl.deliver(QueueImpl.java:3176) ~[artemis-server-2.29.0-SNAPSHOT.jar:2.29.0-SNAPSHOT]
              at org.apache.activemq.artemis.core.server.impl.QueueImpl$DeliverRunner.run(QueueImpl.java:4331) ~[artemis-server-2.29.0-SNAPSHOT.jar:2.29.0-SNAPSHOT]
              at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:57) ~[artemis-commons-2.29.0-SNAPSHOT.jar:?]
              at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:32) ~[artemis-commons-2.29.0-SNAPSHOT.jar:?]
              at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:68) ~[artemis-commons-2.29.0-SNAPSHOT.jar:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]

      I am adding final variables so it's validated in compile time instead to avoid this particular issue.

      Attachments

        Issue Links

          Activity

            People

              clebertsuconic Clebert Suconic
              clebertsuconic Clebert Suconic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m