You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (JIRA)" <ji...@apache.org> on 2015/10/12 18:59:05 UTC

[jira] [Resolved] (ARTEMIS-242) IllegalStateException thrown during producer.send()

     [ https://issues.apache.org/jira/browse/ARTEMIS-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Bertram resolved ARTEMIS-242.
------------------------------------
    Resolution: Fixed

> IllegalStateException thrown during producer.send()
> ---------------------------------------------------
>
>                 Key: ARTEMIS-242
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-242
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: Miroslav Novak
>            Assignee: Justin Bertram
>            Priority: Minor
>
> Sometimes happens that during failback JMS producer can get java.lang.IllegalStateException during producer.send(message):
> {code}
> java.lang.IllegalStateException: Cannot send a packet while channel is doing failover
>         at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.send(ChannelImpl.java:242)
>         at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.send(ChannelImpl.java:201)
>         at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.sendInitialChunkOnLargeMessage(ActiveMQSessionContext.java:358)
>         at org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.sendInitialLargeMessageHeader(ClientProducerImpl.java:339)
>         at org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.largeMessageSendStreamed(ClientProducerImpl.java:518)
>         at org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.largeMessageSendBuffered(ClientProducerImpl.java:414)
>         at org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.largeMessageSend(ClientProducerImpl.java:333)
>         at org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.doSend(ClientProducerImpl.java:263)
>         at org.apache.activemq.artemis.core.client.impl.ClientProducerImpl.send(ClientProducerImpl.java:124)
>         at org.apache.activemq.artemis.jms.client.ActiveMQMessageProducer.doSendx(ActiveMQMessageProducer.java:476)
>         at org.apache.activemq.artemis.jms.client.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:172)
>         at org.jboss.qa.hornetq.apps.clients.ProducerClientAck.sendMessage(ProducerClientAck.java:174)
>         at org.jboss.qa.hornetq.apps.clients.ProducerClientAck.run(ProducerClientAck.java:116)
> {code}
> This happened if failback-delay was set to 10s. There were 2 servers configured configured in dedicated HA topology with shared store.
> IllegalStateException should be never thrown from producer.send().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)