qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject [java]: broker fails due to duplicate channel ids on different sessions
Date Tue, 19 Sep 2006 11:43:01 GMT
I think it is a result of using the channel id as the name for the 
managed object. This will not be unique across sessions.

2006-09-19 12:26:26,044 ERROR [pool-2-thread-2] state.AMQStateManager 
(AMQStateManager.java:150) - State manager received error notification: 
org.apache.qpid.AMQException: Error registering managed object 
1[Channel]: javax.management.InstanceAlreadyExistsException: 
org.apache.qpid:type=Channel,name=1
org.apache.qpid.AMQException: Error registering managed object 
1[Channel]: javax.management.InstanceAlreadyExistsException: 
org.apache.qpid:type=Channel,name=1
         at 
org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:61)

        at org.apache.qpid.server.AMQChannel.<init>(AMQChannel.java:211)

Perhaps some session information should be passed into the AMQChannel 
constructor and this could be prepended to the channel id as the managed 
objects name? Or just use the object ref to create a unique name and 
have the channel id as a property?

Mime
View raw message