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

Message deletion via web console causes NullPointerException if log level >= INFO

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.18.0
    • 2.19.0
    • JMX, Web Console
    • None
    • Embedded Apache Artemis 2.18.0

      Windows Server 2016 Standard (10.0.14393)

      Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
      Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)

    Description

      When deleting a message from a queue using the web console a NullPointerException is thrown on the server side when committing the transaction.

      This only happens in case logger.level=INFO or higher is used because the Exception occurs when trying to log the acknowledge for the deleted message.

      The reason is that the ServerConsumer used to determine the session is null at this point as it is not provided by the caller.

      The attached stack trace shows the exact location.

      Attachments

        1. full_stack.txt
          9 kB
          Christian Danner

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              perdurabo Christian Danner
              Votes:
              0 Vote for this issue
              Watchers:
              4 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