You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by sparky2708 <da...@columbia.edu> on 2008/03/06 16:29:22 UTC
javax.jms.IllegalStateException: The producer is closed
Periodically I have the following error. (I don't close the producer anywhere
in my code) Any ideas why?
javax.jms.IllegalStateException: The producer is closed
at
org.apache.activemq.ActiveMQMessageProducer.checkClosed(ActiveMQMessageProducer.java:333)
at
org.apache.activemq.ActiveMQMessageProducer.getDestination(ActiveMQMessageProducer.java:297)
at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:356)
...
at
org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:840)
at
org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:96)
at
org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:165)
at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:111)
at
org.apache.activemq.thread.PooledTaskRunner.access$100(PooledTaskRunner.java:26)
at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:44)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
--
View this message in context: http://www.nabble.com/javax.jms.IllegalStateException%3A-The-producer-is-closed-tp15874551s2354p15874551.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: javax.jms.IllegalStateException: The producer is closed
Posted by sparky2708 <da...@columbia.edu>.
It is possible that some consumers might have closed their sessions but I am
not sure how the consumer's sessions is tied to a producer session if they
are sitting on different machines. I will run some more tests to see if this
is what is causing it... Just very strange.
Mario Siegenthaler-2 wrote:
>
> Did you close the session associated with the consumer?
>
> Mario
>
> On 3/6/08, sparky2708 <da...@columbia.edu> wrote:
>>
>> Periodically I have the following error. (I don't close the producer
>> anywhere
>> in my code) Any ideas why?
>> javax.jms.IllegalStateException: The producer is closed
>
>
--
View this message in context: http://www.nabble.com/javax.jms.IllegalStateException%3A-The-producer-is-closed-tp15874551s2354p15912890.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: javax.jms.IllegalStateException: The producer is closed
Posted by Mario Siegenthaler <ms...@inventsoft.ch>.
Did you close the session associated with the consumer?
Mario
On 3/6/08, sparky2708 <da...@columbia.edu> wrote:
>
> Periodically I have the following error. (I don't close the producer anywhere
> in my code) Any ideas why?
> javax.jms.IllegalStateException: The producer is closed