[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16322422#comment-16322422
 ] 

ASF subversion and git services commented on ARTEMIS-1576:
--

Commit efec2d3464ef57c50c1104c7c980d2511a3858ee in activemq-artemis's branch 
refs/heads/master from [~tabish121]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=efec2d3 ]

ARTEMIS-1576 Fix test that was broken with changes on this issue

The test is using the wrong indices for the destinations it uses so they
don't match the one's created in the test support class.  Because the
code is now using the default routing type the test fails when it tries
to send a message on a JMS Queue when the auto created address default
to the multicast routing type.

> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan Stenberg
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-11 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16322423#comment-16322423
 ] 

ASF GitHub Bot commented on ARTEMIS-1576:
-

Github user asfgit closed the pull request at:

https://github.com/apache/activemq-artemis/pull/1769


> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan Stenberg
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-11 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16322048#comment-16322048
 ] 

ASF GitHub Bot commented on ARTEMIS-1576:
-

Github user asfgit closed the pull request at:

https://github.com/apache/activemq-artemis/pull/1754


> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan Stenberg
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16322047#comment-16322047
 ] 

ASF subversion and git services commented on ARTEMIS-1576:
--

Commit 2afe08126b4aaf97920954e18ec971cd13e3abb4 in activemq-artemis's branch 
refs/heads/master from [~jbertram]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=2afe081 ]

ARTEMIS-1576 couple more tests for good measure


> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan Stenberg
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16321161#comment-16321161
 ] 

ASF GitHub Bot commented on ARTEMIS-1576:
-

GitHub user tabish121 opened a pull request:

https://github.com/apache/activemq-artemis/pull/1769

ARTEMIS-1576 Fix test that was broken with changes on this issue

The test is using the wrong indices for the destinations it uses so they
don't match the one's created in the test support class.  Because the
code is now using the default routing type the test fails when it tries
to send a message on a JMS Queue when the auto created address default
to the multicast routing type.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/tabish121/activemq-artemis ARTEMIS-1576

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/activemq-artemis/pull/1769.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 #1769


commit 8bba8dcea3428eb043213146f1bcdcc460930693
Author: Timothy Bish 
Date:   2018-01-10T21:44:25Z

ARTEMIS-1576 Fix test that was broken with changes on this issue

The test is using the wrong indices for the destinations it uses so they
don't match the one's created in the test support class.  Because the
code is now using the default routing type the test fails when it tries
to send a message on a JMS Queue when the auto created address default
to the multicast routing type.




> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan Stenberg
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-09 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16318915#comment-16318915
 ] 

ASF GitHub Bot commented on ARTEMIS-1576:
-

Github user jbertram commented on the issue:

https://github.com/apache/activemq-artemis/pull/1754
  
I ran the PR build myself and it succeeded.  It's been so long since the 
failure that the artifacts have been removed so I can't see why it failed 
originally.


> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan Stenberg
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-05 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16313901#comment-16313901
 ] 

ASF GitHub Bot commented on ARTEMIS-1576:
-

GitHub user jbertram opened a pull request:

https://github.com/apache/activemq-artemis/pull/1754

ARTEMIS-1576 couple more tests for good measure

I wrote these when investigating ARTEMIS-1582 not realizing I'd already 
fixed the issue. I don't see any reason I should throw them away so sending a 
PR with them now.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/jbertram/activemq-artemis ARTEMIS-1576

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/activemq-artemis/pull/1754.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 #1754


commit 5c9bc4fbe7abb6615cc86ddc8a54cfb1512a8d7c
Author: Justin Bertram 
Date:   2018-01-05T21:15:33Z

ARTEMIS-1576 couple more tests for good measure




> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan Stenberg
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-05 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16313044#comment-16313044
 ] 

ASF GitHub Bot commented on ARTEMIS-1576:
-

Github user asfgit closed the pull request at:

https://github.com/apache/activemq-artemis/pull/1748


> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan Stenberg
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-05 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16313043#comment-16313043
 ] 

ASF subversion and git services commented on ARTEMIS-1576:
--

Commit 758cad413ef6843bd1a3a618ea09f4c1880e9f1e in activemq-artemis's branch 
refs/heads/master from [~michael.andre.pearce]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=758cad4 ]

This closes #1748 ARTEMIS-1576 anon AMQP producer creates address w/wrong 
routing-type


> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan Stenberg
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-05 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16313042#comment-16313042
 ] 

ASF subversion and git services commented on ARTEMIS-1576:
--

Commit 14d6c30852ce08ca6a737a48a3aa5c7845b5770a in activemq-artemis's branch 
refs/heads/master from [~jbertram]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=14d6c30 ]

ARTEMIS-1576 anon AMQP producer creates address w/wrong routing-type


> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan Stenberg
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-04 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311992#comment-16311992
 ] 

ASF GitHub Bot commented on ARTEMIS-1576:
-

Github user michaelandrepearce commented on the issue:

https://github.com/apache/activemq-artemis/pull/1748
  
Nice find. LGTM. 


> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-04 Thread Johan (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16311101#comment-16311101
 ] 

Johan commented on ARTEMIS-1576:


I can confirm that https://github.com/apache/activemq-artemis/pull/1748 fixes 
the issue in our setup. Thanks!

> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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


[jira] [Commented] (ARTEMIS-1576) Anonymous producer with AMQP auto-creates address with wrong routing-type

2018-01-03 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/ARTEMIS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16309885#comment-16309885
 ] 

ASF GitHub Bot commented on ARTEMIS-1576:
-

GitHub user jbertram opened a pull request:

https://github.com/apache/activemq-artemis/pull/1748

ARTEMIS-1576 anon AMQP producer creates address w/wrong routing-type



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/jbertram/activemq-artemis ARTEMIS-1576

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/activemq-artemis/pull/1748.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 #1748


commit 19cb0ef2798ab503128cb0bf9c140975c413263c
Author: Justin Bertram 
Date:   2018-01-03T16:03:50Z

ARTEMIS-1576 anon AMQP producer creates address w/wrong routing-type




> Anonymous producer with AMQP auto-creates address with wrong routing-type
> -
>
> Key: ARTEMIS-1576
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1576
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: AMQP
>Affects Versions: 2.4.0
>Reporter: Johan
>Assignee: Justin Bertram
> Fix For: 2.5.0
>
> Attachments: ArtemisTest.java, pom.xml
>
>
> When publishing a message to an autocreated multicast address where no 
> consumer is subscribed to yet, an anycast address is created. Resulting in 
> "Address XYZ is not configured for topic support"
> I tested this with the latest QPID JMS Client 0.2.8 and the latest Artemis 
> 2.5.0-SNAPSHOT.
> I attached a test class that reproduces the issue.
> {noformat}
> Exception in thread "main" javax.jms.JMSRuntimeException: Address 
> topics.myTopic is not configured for topic support [condition = 
> amqp:illegal-state]
>   at 
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.createRuntimeException(JmsExceptionSupport.java:207)
>   at org.apache.qpid.jms.JmsContext.createConsumer(JmsContext.java:314)
>   at ArtemisTest.main(ArtemisTest.java:93)
> Caused by: javax.jms.JMSException: Address topics.myTopic is not configured 
> for topic support [condition = amqp:illegal-state]
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:164)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:117)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.handleClosed(AmqpResourceBuilder.java:185)
>   at 
> org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder.processRemoteClose(AmqpResourceBuilder.java:129)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:906)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:102)
>   at 
> org.apache.qpid.jms.provider.amqp.AmqpProvider$17.run(AmqpProvider.java:792)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>   at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>   at java.lang.Thread.run(Thread.java:748)
> {noformat}



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