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

Mitigate NPE in paging log statement

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      From the user's mailing list:

      ...when we remove the limit, as it was too less for our case, we got null pointer exception in logs so we are currently forced to use less page limit. Since the error here tries to convert to longValue...

      [org.apache.activemq.artemis.core.server] AMQ222225: Sending unexpected exception to the client java.lang.NullPointerException: Cannot invoke "java.lang.Long.longValue()" because "this.pageLimitBytes" is null
        at org.apache.activemq.artemis.core.paging.impl.PagingStoreImpl.checkNumberOfPages(PagingStoreImpl.java:324) ~[artemis-server-2.28.0.jar:2.28.0]

      Attachments

        Activity

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

          People

            jbertram Justin Bertram
            jbertram Justin Bertram
            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 - 1h
                1h

                Slack

                  Issue deployment