I have the same problem: in my case the problem arise when I stop ServiceMix. The problem is caused by a Service Assembly that contains a custom JMS Binding component polling on a JMS queue.

I didn't investigate on the problem yet, but I suspect that the stop method in the component is not managed properly: the poll method is called periodically, but it doesn't check if the component has been stopped and this causes the problem.

Gianfranco


Bruce Snyder ha scritto:
On 6/18/07, Arif Mohd <[EMAIL PROTECTED]> wrote:

Hi,

   could any body know what is the reason for the exception

16:19:25,604 | ERROR | pool-flow.seda.servicemix-jms-thread-2349 |
JmsComponent             | ervicemix.common.BaseLifeCycle   48 | Error
processing exchange InOnly[
  id: ID:EC4T16INT165802-1278-1182006160021-5:258114
  status: Active
  role: provider
  service: {http://xxx.com/bescocr_031807}JmsTapQ0
  endpoint: myProvider
  in: <?xml version="1.0" encoding="UTF-8"?><My message >
]
javax.jms.IllegalStateException: The Session is closed
 at
org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:580)
 at
org.apache.activemq.ActiveMQSession.createTextMessage(ActiveMQSession.java:392)
 at
org.apache.activemq.pool.PooledSession.createTextMessage(PooledSession.java:166)
 at
org.apache.servicemix.jms.multiplexing.MultiplexingProviderProcessor.process(MultiplexingProviderProcessor.java:150)
 at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
 at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
 at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
 at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:593)
 at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
 at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
 at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
 at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
 at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
 at java.lang.Thread.run(Thread.java:595)

Please provide some details about how this is happening. We can't
determine what is happening exactly from just the stack trace and
error.

Bruce

Reply via email to