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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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

                Slack

                  Issue deployment