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

artemis-jms-client: NPE on toString(), ActiveMQQueue/ActiveMQTopic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.16.0
    • 2.17.0
    • API
    • None

    Description

      artemis-jms-client

      If an ActiveMQQueue or an ActiveMQTopic is intantiated with the default constructor, a call to the toString-method will fail with an NPE (since the field simpleAddress is null).

      Actually, all of toString(), getName() and getAddress() will fail.

      This is fatal when defining a queue or a topic as a JCA admin-object in a Resource Adapter in Weblogic Server, since it attempts to "serialize" the object using the toString()-method - before it sets the Address through the property definitions. I don't know how well it "plays" with other app servers.

      Anyway, I consider it a bug if an object created by a public constructor can't evaluate toString().

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              kfm_ingo Ingemar Allqvist
              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 - 2h 10m
                  2h 10m