Ulf Lilleengen created ARTEMIS-1062:
---------------------------------------
Summary: UnsupportedOperationException when sending AMQP message
to topic with divert
Key: ARTEMIS-1062
URL: https://issues.apache.org/jira/browse/ARTEMIS-1062
Project: ActiveMQ Artemis
Issue Type: Bug
Reporter: Ulf Lilleengen
Attachments: broker.xml
I have a configuration with two topics, and a divert on one of the addresses.
When sending an AMQP message to the 'mytopic' topic, Artemis gives the error
below.
Steps to reproduce:
1. Create artemis instance
2. Replace the generated broker.xml with the one attached to this issue
3. Run the test client (gradle test):
http://people.redhat.com/~ulilleen/testclient.tar.gz
10:07:26,921 WARN
[org.apache.activemq.artemis.protocol.amqp.proton.ProtonServerReceiverContext]
null: java.lang.UnsupportedOperationException
at java.util.AbstractMap.put(AbstractMap.java:209) [rt.jar:1.8.0_66]
at
org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessage.putStringProperty(AMQPMessage.java:646)
[artemis-amqp-protocol-2.0.0.jar:]
at
org.apache.activemq.artemis.api.core.Message.referenceOriginalMessage(Message.java:381)
[artemis-core-client-2.0.0.jar:2.0.0]
at
org.apache.activemq.artemis.core.server.impl.DivertImpl.route(DivertImpl.java:101)
[artemis-server-2.0.0.jar:2.0.0]
at
org.apache.activemq.artemis.core.postoffice.impl.DivertBinding.route(DivertBinding.java:107)
[artemis-server-2.0.0.jar:2.0.0]
at
org.apache.activemq.artemis.core.postoffice.impl.BindingsImpl.route(BindingsImpl.java:298)
[artemis-server-2.0.0.jar:2.0.0]
at
org.apache.activemq.artemis.core.postoffice.impl.BindingsImpl.route(BindingsImpl.java:232)
[artemis-server-2.0.0.jar:2.0.0]
at
org.apache.activemq.artemis.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:732)
[artemis-server-2.0.0.jar:2.0.0]
at
org.apache.activemq.artemis.core.postoffice.impl.PostOfficeImpl.route(PostOfficeImpl.java:689)
[artemis-server-2.0.0.jar:2.0.0]
at
org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.doSend(ServerSessionImpl.java:1662)
[artemis-server-2.0.0.jar:2.0.0]
at
org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1346)
[artemis-server-2.0.0.jar:2.0.0]
at
org.apache.activemq.artemis.protocol.amqp.broker.AMQPSessionCallback.serverSend(AMQPSessionCallback.java:398)
[artemis-amqp-protocol-2.0.0.jar:]
at
org.apache.activemq.artemis.protocol.amqp.broker.AMQPSessionCallback.serverSend(AMQPSessionCallback.java:375)
[artemis-amqp-protocol-2.0.0.jar:]
at
org.apache.activemq.artemis.protocol.amqp.proton.ProtonServerReceiverContext.onMessage(ProtonServerReceiverContext.java:168)
[artemis-amqp-protocol-2.0.0.jar:]
at
org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext$LocalListener.onDelivery(AMQPConnectionContext.java:427)
[artemis-amqp-protocol-2.0.0.jar:]
at
org.apache.activemq.artemis.protocol.amqp.proton.handler.Events.dispatch(Events.java:97)
[artemis-amqp-protocol-2.0.0.jar:]
at
org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.dispatch(ProtonHandler.java:345)
[artemis-amqp-protocol-2.0.0.jar:]
at
org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.access$000(ProtonHandler.java:43)
[artemis-amqp-protocol-2.0.0.jar:]
at
org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler$1.run(ProtonHandler.java:62)
[artemis-amqp-protocol-2.0.0.jar:]
at
org.apache.activemq.artemis.utils.OrderedExecutorFactory$OrderedExecutor$ExecutorTask.run(OrderedExecutorFactory.java:101)
[artemis-commons-2.0.0.jar:2.0.0]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_66]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_66]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_66]
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)