Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

javax.jms.InvalidClientIDException for durable subscription on broker restart

$
0
0
Hi,

I am seeing a weird issue:

when I restart the ActiveMQ broker a *durable subscriber client* is not able
to connect to the broker showing "InvalidClientIDException".
*Exception:
*Failed to add Connection ID:gbo5.nyc.xyz.com-36751-1407746385464-11:6
javax.jms.InvalidClientIDException: Broker: mqbrokerprod - Client: GLOCLIENT
already connected from tcp://gbo5.nyc.xyz.com:32985

When I debugged it further I found that only one instance of client is
trying to connect to the broker, there is no other instance running on
gbo5.nyc.xyz.com.

It looks to me that when broker stopped, at that time broker was not able to
remove the client ID and somehow it is store in broker. Now when broker
comes up and client tries to connect to the broker: it gets the
"InvalidClientIDException" exception.

Please note that my client is a durable subscriber.

Ideally broker should remove the client ID at the time of restart. OR should
I need to do anything else for durable subscribers at the time of
disconnection ? Please help me here...

Viewing all articles
Browse latest Browse all 5648

Trending Articles