[
https://issues.apache.org/jira/browse/ARTEMIS-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15897999#comment-15897999
]
ASF subversion and git services commented on ARTEMIS-1017:
----------------------------------------------------------
Commit 84dfa24e38557093ee81b6f6551e029ec4d52a35 in activemq-artemis's branch
refs/heads/master from [~jdanek]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=84dfa24 ]
ARTEMIS-1017 reword error message
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)