[ 
https://issues.apache.org/activemq/browse/SM-822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zacarias Monzon updated SM-822:
-------------------------------

    Attachment: servicemix.patch

I found that 
deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ConsumerProcessor.java
 sleeps meanwhile the jsr componet modifies the message.In JMSFlow the variable 
"exchange" is serialized to an MQ queue and deserialized that's why when 
ConsumerProccesor wakes up exchange is in the wrong state. With this patch I 
propose to take again the "exchange" from the "exchanges" list. I tested it 
with Seda flow and JmsFlow separated and it works. 

> java.lang.IllegalStateException: component is not owner, with jmsflow and 
> jcaflow
> ---------------------------------------------------------------------------------
>
>                 Key: SM-822
>                 URL: https://issues.apache.org/activemq/browse/SM-822
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-http
>    Affects Versions: incubation
>         Environment: jdk5, linux, jboss 4.0.5, tomcat 5.0.28
>            Reporter: Grégoire A.
>         Attachments: servicemix.patch
>
>
> Hi, 
> i have got this exception when i try to send and http request to the http 
> component
> form $svn.trunk/samples/services-web/servicemix-web-3.1-incubating-SNAPSHOT.
> java.lang.IllegalStateException: component is not owner
> .org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setStatus(MessageExchangeImpl.java:210)
> .org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:240)
> .org.apache.servicemix.http.ManagedContextManager$MainProcessor.process(ManagedContextManager.java:116)
> .org.apache.servicemix.http.HttpManagedServlet.service(HttpManagedServlet.java:82)
> .javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> just add this to the applicationContext.xml
> <sm:broker>
>       <sm:securedBroker authorizationMap="#authorizationMap">
>         <sm:flows>
>           <!--sm:jcaFlow connectionManager="#connectionManager"
>                       jmsURL="tcp://localhost:61636" /-->
>           <!--sm:sedaFlow /-->
>           <sm:jmsFlow jmsURL="vm://localhost" />
>         </sm:flows>
>       </sm:securedBroker>
>     </sm:broker>
> and 
> <!-- ServiceMix authorization map -->
>   <sm:authorizationMap id="authorizationMap">
>     <sm:authorizationEntries>
>       <sm:authorizationEntry service="*:*" roles="*" />
>     </sm:authorizationEntries>
>   </sm:authorizationMap>
> i would be ok to participate to fix this issue, but alone I'am not enough 
> qualified with SMX-Core design to fix it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to