activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "clebert suconic (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (ARTEMIS-1017) Wrong error message when default destination for producer is not specified
Date Thu, 31 Aug 2017 19:12:23 GMT

     [ https://issues.apache.org/jira/browse/ARTEMIS-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

clebert suconic closed ARTEMIS-1017.
------------------------------------

> Wrong error message when default destination for producer is not specified
> --------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1017
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1017
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.0.0
>            Reporter: Jiri Danek
>            Assignee: clebert suconic
>            Priority: Minor
>             Fix For: 1.5.4, 2.0.0
>
>
> When producer is created without default destination {{roducer = session.createProducer(null)}}
and message is sent also without specifiing desination {{producer.send(message)}}, the following
exception is thrown
> {noformat}
>     Exception in thread "main" java.lang.UnsupportedOperationException: Cannot specify
destination if producer has a default destination
>             at org.apache.activemq.artemis.jms.client.ActiveMQMessageProducer.checkDefaultDestination(ActiveMQMessageProducer.java:339)
>             at org.apache.activemq.artemis.jms.client.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:190)
>             ...
> {noformat}
> The error message in the exception is clearly wrong.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message