You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/11/17 21:23:00 UTC
[jira] [Commented] (ARTEMIS-2997) artemis-jms-client: NPE on
toString(), ActiveMQQueue/ActiveMQTopic
[ https://issues.apache.org/jira/browse/ARTEMIS-2997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17233994#comment-17233994 ]
ASF subversion and git services commented on ARTEMIS-2997:
----------------------------------------------------------
Commit 2c0b192e8156afe8272fe7723759d935b3ced6d1 in activemq-artemis's branch refs/heads/master from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=2c0b192 ]
ARTEMIS-2997 NPE with JMS queue/topic toString()
> artemis-jms-client: NPE on toString(), ActiveMQQueue/ActiveMQTopic
> ------------------------------------------------------------------
>
> Key: ARTEMIS-2997
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2997
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: API
> Affects Versions: 2.16.0
> Reporter: Ingemar Allqvist
> Assignee: Justin Bertram
> Priority: Major
> Time Spent: 2h
> Remaining Estimate: 0h
>
> 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().
--
This message was sent by Atlassian Jira
(v8.3.4#803005)