Hi. I am experiencing some unexpected behavior and I was wondering if anyone
here can shed some light on it. I have a sample application that can show
what I'm talking about. It can be accessed at this github repo
<https://github.com/hildo/azureSamples/tree/multipleTopics> (the
multipleTopics branch)
I have a Spring Boot application (app1 in the file structure) that listeners
to two Topics in Azure Service Bus: mytopic and myothertopc. Both topics
have a single subscription called TopicReceiver. So, there are two
Subscriptions over all and they share the same name, but for different
Topics. So, there is mytopic:TopicReceiver and myothertopic:TopicReceiver
When I attempt to listen to these subscriptions, only one listener
successfully connects. The other receives repeating error messages....
2018-06-23 13:47:00.120 INFO 24556 --- [windows.net:-1]]
org.apache.qpid.jms.JmsConnection : Connection
ID:fdf7a327-9378-4d30-836e-35f3da5d48fb:1 connected to remote Broker:
amqps://azuresamples-hillmep.servicebus.windows.net?amqp.idleTimeout=3600000
2018-06-23 13:47:00.120 INFO 24556 --- [ main]
o.s.j.c.CachingConnectionFactory : Established shared JMS
Connection: org.apache.qpid.jms.JmsConnection@129bc99
2018-06-23 13:47:00.176 INFO 24556 --- [ main]
o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080
(http) with context path ''
2018-06-23 13:47:00.182 INFO 24556 --- [ main]
azure.example.app1.Application : Started Application in 9.22
seconds (JVM running for 15.104)
2018-06-23 13:47:01.429 WARN 24556 --- [windows.net:-1]]
o.a.q.j.p.a.b.AmqpResourceBuilder : Open of
resource:(JmsConsumerInfo: { ID:fdf7a327-9378-4d30-836e-35f3da5d48fb:1:1:1,
destination = myothertopic }) failed: Cannot open a Topic client for entity
type Subscriber. TrackingId:720e7137-67c6-44fb-9b4d-e419be664544_B14,
SystemTracker:azuresamples-hillmep:topic:myothertopic~15|TopicReceiver,
Timestamp:6/23/2018 3:47:00 AM
TrackingId:8946c6d0ff674853ba2079b07f520046_G41, SystemTracker:gateway7,
Timestamp:6/23/2018 3:47:00 AM [condition = amqp:not-allowed]
2018-06-23 13:47:05.581 WARN 24556 --- [enerContainer-1]
o.s.j.l.DefaultMessageListenerContainer : Setup of JMS message listener
invoker failed for destination 'mytopic' - trying to recover. Cause: A
non-shared durable subscription is already active with name 'TopicReceiver'
2018-06-23 13:47:05.585 INFO 24556 --- [enerContainer-1]
o.s.j.l.DefaultMessageListenerContainer : Successfully refreshed JMS
Connection
2018-06-23 13:47:06.654 WARN 24556 --- [enerContainer-1]
o.s.j.l.DefaultMessageListenerContainer : Setup of JMS message listener
invoker failed for destination 'myothertopic' - trying to recover. Cause:
Cannot open a Topic client for entity type Subscriber.
TrackingId:720e7137-67c6-44fb-9b4d-e419be664544_B14,
SystemTracker:azuresamples-hillmep:topic:myothertopic~15|TopicReceiver,
Timestamp:6/23/2018 3:47:00 AM
TrackingId:8946c6d0ff674853ba2079b07f520046_G41, SystemTracker:gateway7,
Timestamp:6/23/2018 3:47:00 AM [condition = amqp:not-allowed]
2018-06-23 13:47:06.654 INFO 24556 --- [enerContainer-1]
o.s.j.l.DefaultMessageListenerContainer : Successfully refreshed JMS
Connection
2018-06-23 13:47:11.979 WARN 24556 --- [enerContainer-2]
o.s.j.l.DefaultMessageListenerContainer : Setup of JMS message listener
invoker failed for destination 'myothertopic' - trying to recover. Cause: A
non-shared durable subscription is already active with name 'TopicReceiver'
2018-06-23 13:47:11.980 INFO 24556 --- [enerContainer-2]
o.s.j.l.DefaultMessageListenerContainer : Successfully refreshed JMS
Connection
2018-06-23 13:47:16.995 WARN 24556 --- [enerContainer-3]
o.s.j.l.DefaultMessageListenerContainer : Setup of JMS message listener
invoker failed for destination 'myothertopic' - trying to recover. Cause: A
non-shared durable subscription is already active with name 'TopicReceiver'
2018-06-23 13:47:16.996 INFO 24556 --- [enerContainer-3]
o.s.j.l.DefaultMessageListenerContainer : Successfully refreshed JMS
Connection
^C2018-06-23 13:47:18.278 INFO 24556 --- [ Thread-4]
ConfigServletWebServerApplicationContext : Closing
org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@dc8451:
startup date [Sat Jun 23 13:46:51 AEST 2018]; root of context hierarchy
2
If I change either of the subscription names to something else, it all works
correctly. But it behaves like subscription names have to be unique
regardless of the topic against which have been created. If I only have the
single listener in the app, I don't see any error either.
This behavior didn't occur in 0.11.0 of the JMS library. It started at
0.20.0 and continues to the current version.
Is this a bug or is this expected behavior? Thanks for any info
Ed
--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]