On 16 March 2010 18:50, Gordon Sim <[email protected]> wrote: > On 03/15/2010 10:33 PM, Joan Bellver Faus wrote: > >> Exception in thread "Thread-3" org.apache.qpid.console.ConsoleException: >> org.apache.qpid.transport.SessionException: ch=0 id=0 >> ExecutionException(errorCode=NOT_ALLOWED, commandId=10, classCode=7, >> commandCode=1, fieldIndex=0, description=not-allowed: Exchange declared >> to be of type management-topic, requested management >> (qpid/broker/SessionAdapter.cpp:121), errorInfo={}) >> at org.apache.qpid.console.Broker.tryToConnect(Broker.java:421) >> at org.apache.qpid.console.Broker.<init>(Broker.java:87) >> at org.apache.qpid.console.Session.addBroker(Session.java:70) >> at MMS_Example.MMS.execute(MMS.java:39) >> at es.upv.dsic.gti_ia.core.BaseAgent.run(BaseAgent.java:290) >> at java.lang.Thread.run(Thread.java:619) >> > > [snip] > > any idea that happens? >> > > The type of the management exchange has been changed[1] and the java based > QMF support needs to be updated.
Why has the type been changed? Have I missed the discussion that must have occurred before such a change was made... this change would seem to have implications both for clients (as demonstrated here) and for others implementing management exchanges (for instance the Java Broker). -- Rob > I am not an expert in this area but it looks to me like the string used for > topicName in org.apache.qpid.console.Broker.tryToConnect() should be > altered[2]. (Perhaps this should even be configurable in some way?) > > [1] http://svn.apache.org/viewvc?view=revision&revision=920189 > > [2] i.e. > >> Index: >> management/console/src/main/java/org/apache/qpid/console/Broker.java >> =================================================================== >> --- management/console/src/main/java/org/apache/qpid/console/Broker.java >> (revision 921956) >> +++ management/console/src/main/java/org/apache/qpid/console/Broker.java >> (working copy) >> @@ -403,7 +403,7 @@ >> brokerId); >> topicName = String >> .format( >> - >> "management://qpid.management//topic-%s?exclusive='True'&autodelete='True'", >> + >> >> "management-topic://qpid.management//topic-%s?exclusive='True'&autodelete='True'", >> brokerId); >> reply = session.createQueue(replyName); >> MessageConsumer cons = session.createConsumer(reply); >> > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:[email protected] > >
