Hi, thanks for your response, I tried to put the argument -Dqpid.declare_exchanges=false but I get this new error:


<Exception in thread "Thread-3" org.apache.qpid.console.ConsoleException: javax.jms.JMSException: Exception when sending message
        at org.apache.qpid.console.Broker.send(Broker.java:343)
        at org.apache.qpid.console.Broker.send(Broker.java:316)
        at org.apache.qpid.console.Broker.send(Broker.java:306)
        at org.apache.qpid.console.Broker.tryToConnect(Broker.java:426)
        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)
Caused by: javax.jms.JMSException: Exception when sending message
at org.apache.qpid.client.BasicMessageProducer_0_10.sendMessage(BasicMessageProducer_0_10.java:217) at org.apache.qpid.client.BasicMessageProducer.sendImpl(BasicMessageProducer.java:490) at org.apache.qpid.client.BasicMessageProducer.sendImpl(BasicMessageProducer.java:445) at org.apache.qpid.client.BasicMessageProducer.send(BasicMessageProducer.java:325)
        at org.apache.qpid.console.Broker.send(Broker.java:340)
        ... 8 more
Caused by: org.apache.qpid.transport.SessionException: ch=0 id=0 ExecutionException(errorCode=NOT_ALLOWED, commandId=21, 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.transport.Session.invoke(Session.java:570)
        at org.apache.qpid.transport.Session.invoke(Session.java:518)
at org.apache.qpid.transport.SessionInvoker.messageTransfer(SessionInvoker.java:96) at org.apache.qpid.client.BasicMessageProducer_0_10.sendMessage(BasicMessageProducer_0_10.java:203)
        ... 12 more



If i change the code of the libraries according to the attached file I get these new errors,



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)
Caused by: 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.transport.Session.invoke(Session.java:570)
        at org.apache.qpid.transport.Session.invoke(Session.java:518)
at org.apache.qpid.transport.SessionInvoker.executionSync(SessionInvoker.java:84)
        at org.apache.qpid.transport.Session.sync(Session.java:724)
        at org.apache.qpid.transport.Session.sync(Session.java:712)
at org.apache.qpid.client.AMQSession_0_10.sendExchangeDeclare(AMQSession_0_10.java:656) at org.apache.qpid.client.AMQSession_0_10.sendExchangeDeclare(AMQSession_0_10.java:638)
        at org.apache.qpid.client.AMQSession$8.execute(AMQSession.java:2394)
at org.apache.qpid.client.failover.FailoverNoopSupport.execute(FailoverNoopSupport.java:67)
        at 
org.apache.qpid.client.AMQSession.declareExchange(AMQSession.java:2390)
        at 
org.apache.qpid.client.AMQSession.declareExchange(AMQSession.java:2344)
        at 
org.apache.qpid.client.AMQSession.registerConsumer(AMQSession.java:2573)
        at org.apache.qpid.client.AMQSession.access$500(AMQSession.java:93)
        at org.apache.qpid.client.AMQSession$4.execute(AMQSession.java:1778)
        at org.apache.qpid.client.AMQSession$4.execute(AMQSession.java:1744)
at org.apache.qpid.client.AMQConnectionDelegate_0_10.executeRetrySupport(AMQConnectionDelegate_0_10.java:313) at org.apache.qpid.client.AMQConnection.executeRetrySupport(AMQConnection.java:765) at org.apache.qpid.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102)
        at 
org.apache.qpid.client.AMQSession.createConsumerImpl(AMQSession.java:1742)
        at org.apache.qpid.client.AMQSession.createConsumer(AMQSession.java:911)
        at org.apache.qpid.console.Broker.tryToConnect(Broker.java:414)
        ... 5 more


any idea that happens?



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to