You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by hew <ho...@gmail.com> on 2007/04/11 04:58:19 UTC
Re: Exception: component is not owner
I'd also encountered the same exception after modifying the servicemix-web
example to use jms flow.
The http binding example (http://localhost:8080/servicemix-web/examples/) is
working fine with seda flow but throw this exception after switching to jms
flow.
I'm using servicemix3.1 on tomcat 5.5.
The only modification I'd made is in the applicationContext.xml:
...
<sm:container id="jbi"
rootDir="#rootDir"
useMBeanServer="true"
createMBeanServer="false"
MBeanServer="#jmxServer"
installationDirPath="#installDir"
deploymentDirPath="#deployDir"
monitorInstallationDirectory="true"
transactionManager="#transactionManager"
flowNames="jms?jmsURL=tcp://localhost:61636" <!-- add this line -->
depends-on="broker">
...
Anyone managed to overcome this problem?
regards
gnodet wrote:
>
> Sounds weird.
> This exception means that the component is trying to modify
> the exchange (calling setStatus), but the exchange is not owned
> by this component because the exchange has already been sent
> through the delivery channel. If you enable debug logging, you
> may have more informations to understand what happens.
>
> On 1/12/07, keogaa-ddo@yahoo.fr <ke...@yahoo.fr> wrote:
>> Hello ,
>>
>> I have got this exception when i send a msg into
>> jboss.
>> i have got http component plugged with a servlet.
>>
>>
>> java.lang.IllegalStateException: component is not
>> owner
>> at
>> org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setStatus(MessageExchangeImpl.java:210)
>> at
>> org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:240)
>> at
>> org.apache.servicemix.http.ManagedContextManager$MainProcessor.process(ManagedContextManager.java:116)
>> at
>> org.apache.servicemix.http.HttpManagedServlet.service(HttpManagedServlet.java:82)
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> at
>> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>>
>>
>> my constraints are, i need store all MessageExchange
>> with jms/jca
>>
>> just with seda flow it's work fine.
>>
>>
>> how i could fix this pb (config,patch,etc)?
>>
>>
>> there is my configuration of servicemix
>> ****************************************************************************
>> <sm:container id="jbi"
>> rootDir="#rootDir"
>> useMBeanServer="true"
>> createMBeanServer="false"
>> MBeanServer="#jmxServer"
>> monitorInstallationDirectory="true"
>> transactionManager="#transactionManager"
>> persistent="true"
>> depends-on="broker">
>>
>> <sm:broker>
>> <sm:securedBroker
>> authorizationMap="#authorizationMap">
>> <sm:flows>
>> <sm:jcaFlow
>> connectionManager="#connectionManager"
>> jmsURL="tcp://localhost:61636"
>> />
>> <sm:sedaFlow />
>> <sm:jmsFlow jmsURL="tcp://localhost:61636"
>> />
>> </sm:flows>
>> </sm:securedBroker>
>> </sm:broker>
>>
>> <sm:activationSpecs>
>>
>> <!-- START SNIPPET: http -->
>> <sm:activationSpec
>> componentName="servicemix-http"
>> service="foo:httpBinding"
>> destinationService="msp2:jmsSender">
>> <sm:component>
>> <http:component>
>> <http:configuration managed="true" />
>> <http:endpoints>
>> <http:endpoint service="foo:httpBinding"
>> endpoint="endpoint"
>>
>> targetService="msp2:jmsSender"
>> soap="true"
>>
>> soapVersion="1.1"
>> role="consumer"
>>
>> locationURI="http://localhost/exampleUri/"
>>
>> defaultMep="http://www.w3.org/2004/08/wsdl/in-only" />
>> </http:endpoints>
>> </http:component>
>> </sm:component>
>> </sm:activationSpec>
>> <!-- END SNIPPET: http -->
>>
>>
>> Regards,
>>
>>
>>
>>
>>
>>
>>
>> ___________________________________________________________________________
>> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos
>> questions !
>> Profitez des connaissances, des opinions et des expériences des
>> internautes sur Yahoo! Questions/Réponses
>> http://fr.answers.yahoo.com
>>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Architect, LogicBlaze (http://www.logicblaze.com/)
> Blog: http://gnodet.blogspot.com/
>
>
--
View this message in context: http://www.nabble.com/Exception%3A-component-is-not-owner-tf2966564s12049.html#a9932353
Sent from the ServiceMix - User mailing list archive at Nabble.com.