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 GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/05 11:02:32 UTC
[jira] [Commented] (ARTEMIS-1017) Wrong error message when default
destination for producer is not specified
[ https://issues.apache.org/jira/browse/ARTEMIS-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15896180#comment-15896180 ]
ASF GitHub Bot commented on ARTEMIS-1017:
-----------------------------------------
GitHub user jdanekrh opened a pull request:
https://github.com/apache/activemq-artemis/pull/1063
ARTEMIS-1017 reword error message when default destination for produc…
…er is not specified
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jdanekrh/activemq-artemis jd_artemis-1017
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/1063.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1063
----
commit e205e8612fe316bf177edf9a2d855037375b62e2
Author: Jiri Danek <jd...@redhat.com>
Date: 2017-03-04T17:08:15Z
ARTEMIS-1017 reword error message when default destination for producer is not specified
----
> 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
> Priority: Minor
>
> 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.3.15#6346)