You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "kalyan chakravarthi (JIRA)" <ji...@apache.org> on 2012/10/27 22:27:12 UTC

[jira] [Created] (AMQ-4139) Producer closed and session closed exception after upgrading to activemq version 5.7

kalyan chakravarthi created AMQ-4139:
----------------------------------------

             Summary: Producer closed and session closed exception after upgrading to activemq version 5.7
                 Key: AMQ-4139
                 URL: https://issues.apache.org/jira/browse/AMQ-4139
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.7.0
            Reporter: kalyan chakravarthi


Hi,

  I have recently updated to Active MQ version 5.7 from 5.4.2, to take the advantage of broker redelivery. Once i have upgraded, i am facing the below exception.

Exception1: Caused by: javax.jms.IllegalStateException: The producer is closed
	at org.apache.activemq.ActiveMQMessageProducer.checkClosed(ActiveMQMessageProducer.java:185)
	at org.apache.activemq.ActiveMQMessageProducerSupport.getDeliveryMode(ActiveMQMessageProducerSupport.java:148)


	at org.apache.activemq.pool.PooledProducer.<init>(PooledProducer.java:44)
Exception2 :
javax.jms.IllegalStateException: The Session is closed
	at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)
	at org.apache.activemq.ActiveMQSession.rollback(ActiveMQSession.java:574)



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-4139) Producer closed and session closed exception after upgrading to activemq version 5.7

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487749#comment-13487749 ] 

Timothy Bish commented on AMQ-4139:
-----------------------------------

A Unit test would be good here so that someone can take a look into it.
                
> Producer closed and session closed exception after upgrading to activemq version 5.7
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-4139
>                 URL: https://issues.apache.org/jira/browse/AMQ-4139
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.7.0
>            Reporter: kalyan chakravarthi
>
> Hi,
>   I have recently updated to Active MQ version 5.7 from 5.4.2, to take the advantage of broker redelivery. Once i have upgraded, i am facing the below exception.
> Exception1: Caused by: javax.jms.IllegalStateException: The producer is closed
> 	at org.apache.activemq.ActiveMQMessageProducer.checkClosed(ActiveMQMessageProducer.java:185)
> 	at org.apache.activemq.ActiveMQMessageProducerSupport.getDeliveryMode(ActiveMQMessageProducerSupport.java:148)
> 	at org.apache.activemq.pool.PooledProducer.<init>(PooledProducer.java:44)
> Exception2 :
> javax.jms.IllegalStateException: The Session is closed
> 	at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)
> 	at org.apache.activemq.ActiveMQSession.rollback(ActiveMQSession.java:574)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (AMQ-4139) Producer closed and session closed exception after upgrading to activemq version 5.7

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish closed AMQ-4139.
-----------------------------

    Resolution: Incomplete

no test case provided to reproduce what the user is seeing. 
                
> Producer closed and session closed exception after upgrading to activemq version 5.7
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-4139
>                 URL: https://issues.apache.org/jira/browse/AMQ-4139
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.7.0
>            Reporter: kalyan chakravarthi
>
> Hi,
>   I have recently updated to Active MQ version 5.7 from 5.4.2, to take the advantage of broker redelivery. Once i have upgraded, i am facing the below exception.
> Exception1: Caused by: javax.jms.IllegalStateException: The producer is closed
> 	at org.apache.activemq.ActiveMQMessageProducer.checkClosed(ActiveMQMessageProducer.java:185)
> 	at org.apache.activemq.ActiveMQMessageProducerSupport.getDeliveryMode(ActiveMQMessageProducerSupport.java:148)
> 	at org.apache.activemq.pool.PooledProducer.<init>(PooledProducer.java:44)
> Exception2 :
> javax.jms.IllegalStateException: The Session is closed
> 	at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)
> 	at org.apache.activemq.ActiveMQSession.rollback(ActiveMQSession.java:574)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-4139) Producer closed and session closed exception after upgrading to activemq version 5.7

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13485506#comment-13485506 ] 

Timothy Bish commented on AMQ-4139:
-----------------------------------

You get this exception because the session is closed....

Without more information or a test case to reproduce that's about the only answer we can offer.  
                
> Producer closed and session closed exception after upgrading to activemq version 5.7
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-4139
>                 URL: https://issues.apache.org/jira/browse/AMQ-4139
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.7.0
>            Reporter: kalyan chakravarthi
>
> Hi,
>   I have recently updated to Active MQ version 5.7 from 5.4.2, to take the advantage of broker redelivery. Once i have upgraded, i am facing the below exception.
> Exception1: Caused by: javax.jms.IllegalStateException: The producer is closed
> 	at org.apache.activemq.ActiveMQMessageProducer.checkClosed(ActiveMQMessageProducer.java:185)
> 	at org.apache.activemq.ActiveMQMessageProducerSupport.getDeliveryMode(ActiveMQMessageProducerSupport.java:148)
> 	at org.apache.activemq.pool.PooledProducer.<init>(PooledProducer.java:44)
> Exception2 :
> javax.jms.IllegalStateException: The Session is closed
> 	at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)
> 	at org.apache.activemq.ActiveMQSession.rollback(ActiveMQSession.java:574)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-4139) Producer closed and session closed exception after upgrading to activemq version 5.7

Posted by "kalyan chakravarthi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13485516#comment-13485516 ] 

kalyan chakravarthi commented on AMQ-4139:
------------------------------------------

Hi,

 Below is the scenario.
1. I have activemq broker(5.7.0) embedded in jboss 4.2.
2. Spring Default Message Listener container(DMLC) is used for consuming messages.
3. Redelivery is configured on the broker side with a redelivery delay of 2 minutes(120000ms) for 4 maximum redelivery attempts.
4.JMS transaction manager is configured in the spring DMLC.

Below are the steps:
1. Create a message and send to the Queue1.
2. Spring DMLC will consume message and produces another message to queue2.


   When the above scenario is tested with one message it works correct. But when the load test is done with the above scenario. it causes the exception Producer is closed. The above scenario works well in the activemq 5.4.2 version. The reason for upgrade to 5.7.0 is the broker redelivery.

 Please let me know if any more details are needed.
 
                
> Producer closed and session closed exception after upgrading to activemq version 5.7
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-4139
>                 URL: https://issues.apache.org/jira/browse/AMQ-4139
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.7.0
>            Reporter: kalyan chakravarthi
>
> Hi,
>   I have recently updated to Active MQ version 5.7 from 5.4.2, to take the advantage of broker redelivery. Once i have upgraded, i am facing the below exception.
> Exception1: Caused by: javax.jms.IllegalStateException: The producer is closed
> 	at org.apache.activemq.ActiveMQMessageProducer.checkClosed(ActiveMQMessageProducer.java:185)
> 	at org.apache.activemq.ActiveMQMessageProducerSupport.getDeliveryMode(ActiveMQMessageProducerSupport.java:148)
> 	at org.apache.activemq.pool.PooledProducer.<init>(PooledProducer.java:44)
> Exception2 :
> javax.jms.IllegalStateException: The Session is closed
> 	at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)
> 	at org.apache.activemq.ActiveMQSession.rollback(ActiveMQSession.java:574)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira