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

Gert Vanthienen moved SM-2017 to SMXCOMP-969:
---------------------------------------------

          Component/s:     (was: servicemix-common)
                       servicemix-common
    Affects Version/s:     (was: archetypes-2010.01)
                       2010.02
                  Key: SMXCOMP-969  (was: SM-2017)
              Project: ServiceMix Components  (was: ServiceMix)
    
> Sporadic IllegalStateException "Endpoint not found" on provider side for 
> oneway operation
> -----------------------------------------------------------------------------------------
>
>                 Key: SMXCOMP-969
>                 URL: https://issues.apache.org/jira/browse/SMXCOMP-969
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-common
>    Affects Versions: 2010.02
>         Environment: Windows, MacOS, Linux
>            Reporter: Andrei Shakirin
>
> Hi ServiceMix Team,
> Could you please help me with the following problem:
> Test case: consumer sends some oneway requests to SMX provider.
> For some requests (~ 1 from 5) provider reports following stak strace:
> java.lang.IllegalStateException: [130]Endpoint not found: 
> {http://services.sopware.org/demo/Whiteboard}WhiteboardProvider:localhost
>       at 
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:615)
>       at 
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:474)
>       at 
> org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:351)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
> Source)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>       at java.lang.Thread.run(Unknown Source)
> and consumer receives HTTP 500 error.
> Detail analyse shows following:
> For error requests AsyncBaseLifeCycle.processExchange() received exchange 
> with role=Role.Provider. For successfull requests exchange always has 
> role=Role.Consumer.
> As soon as exchange has provider role, code in 
> AsyncBaseLifeCycle.processExchange() cannot find endpoint and throws 
> described exception. 
> If I change code and try to obtain endpoint as for consumer role (via 
> JbiConstants.SENDER_ENDPOINT), scenario works.
> It seems that ChannelImpl sometimes changes role for oneway request that 
> causes described error.
> Regards,
> Andrei.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to