Did you check that the exchange that you are processing has its status set to ACTIVE ? In JBI, exchanges always come back, so you will receive exchanges acknowledgements: exchanges have been processed but come back in a DONE status. You have to discard those.
On 3/12/07, Keertikar <[EMAIL PROTECTED]> wrote:
I've tried with all combinations, as you suggested (sending the exchange and modifying it after that). but not solved. However, there is one more interesting issue. This problem is occuring not every time, only sometimes. And not affecting my code. I'm able to achive the desired result but this exception is occurring sometime on the Service Mix console. gnodet wrote: > > This exception is thrown when a component modify > an exchange while it is not the owner of the exchange. > The common cause is that you send the exchange back > and modify it after that. > > On 2/27/07, Keertikar <[EMAIL PROTECTED]> wrote: >> >> Yes Juergen, I've put a check to process the message only if the exchange >> is >> active and since this block is skipped, so, this makes sure that exchange >> is >> Active. I've printed the status on the console it's showing active. But >> still the same exception. >> >> >> Juergen Mayrbaeurl wrote: >> > >> > Are you sure you're getting a InOut MessageExchange that's active. I'm >> not >> > sure but I think that the IllegalStateException comes from sending a >> > response for an inactive MessageExchange. >> > >> > Kind regards >> > Juergen >> > >> > >> > Keertikar wrote: >> >> >> >> Hi All, >> >> >> >> I've written a simple application for publishing a message on the >> Service >> >> Bus and retrieving the same. >> >> This is working fine and i'm able to receive the message in a proper >> way >> >> but an exception occurrs on ServiceMix console, (ERROR [CBRComponent] >> >> Error processing exchange InOut[)as follows: >> >> >> >> java.lang.IllegalStateException: component is not owner >> >> at >> >> >> org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setMessage( MessageExchangeImpl.java:297) >> >> at >> >> >> com.globallogic.chrysalis.esb.component.cbr.endpoint.ContentBasedRouter.sendResponse (ContentBasedRouter.java:231) >> >> at >> >> >> com.globallogic.chrysalis.esb.component.cbr.endpoint.ContentBasedRouter.process (ContentBasedRouter.java:124) >> >> at >> >> >> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange( AsyncBaseLifeCycle.java:431) >> >> at >> >> >> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange( BaseLifeCycle.java:43) >> >> at >> >> >> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound( DeliveryChannelImpl.java:624) >> >> at >> >> >> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting( AbstractFlow.java:169) >> >> at >> >> >> org.apache.servicemix.jbi.nmr.flow.jms.JMSFlow.access$301(JMSFlow.java :73) >> >> at >> >> org.apache.servicemix.jbi.nmr.flow.jms.JMSFlow$5.run(JMSFlow.java :534) >> >> at >> >> >> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java :291) >> >> at >> >> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown >> >> Source) >> >> at java.lang.Thread.run(Thread.java:595) >> >> >> >> All suggestion are welcome. >> >> >> >> Keertikar >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Getting-%22java.lang.IllegalStateException%3A-component-is-not-owner%22-Exception-tf3298389s12049.html#a9177903 >> Sent from the ServiceMix - Dev mailing list archive at Nabble.com. >> >> > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Architect, LogicBlaze (http://www.logicblaze.com/) > Blog: http://gnodet.blogspot.com/ > > -- View this message in context: http://www.nabble.com/Getting-%22java.lang.IllegalStateException%3A-component-is-not-owner%22-Exception-tf3298389s12049.html#a9429170 Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
-- Cheers, Guillaume Nodet ------------------------ Architect, LogicBlaze (http://www.logicblaze.com/) Blog: http://gnodet.blogspot.com/