L.S.,

The exception indicates that the thread that was waiting for the sync
exchange to come back somehow got interrupted.  In ServiceMix itself,
this will probably happen if you close the DeliveryChannel or the Flow
that is carrying the exchange.  Do you do anything like this in your
test code?  Or do you perhaps do any other thread manipulation in that
code yourself?

If this doesn't help you solve the problem, we might be able to help
you better if you post the source code for the testing endpoint and/or
the spring XML file that configures the endpoints.

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/3/23 smx_user <[email protected]>:
>
> Hello,
>
>         Iam facing the problem while doing a sendsync. A messaging
> exception(InterruptedException) is thrown with the following stacktrace
>
> javax.jbi.messaging.MessagingException: java.lang.InterruptedException
>        at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:508)
>        at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:442)
>        at
> org.apache.servicemix.common.EndpointDeliveryChannel.sendSync(EndpointDeliveryChannel.java:95)
>        at test.JbiMsgSender.dosendsync(JbiMsgSender.java:82)
>        at
> Caused by: java.lang.InterruptedException
>        at java.lang.Object.wait(Native Method)
>        at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.waitForExchange(DeliveryChannelImpl.java:709)
>        at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:472)
>        ... 10 more
>
> where JbiMsgSender is my test class.
>
> Just to give background, I have a component which contains 2 provider
> endpoints. Lets Name it
>
> ActualProviderEndpoint
> TestingProviderEndpoint
>
> Now Actualprovider endpoint is making sendsync call to the other component
> in the JBI environment for consuming some service. Now for the testing
> purpose of ActualProviderEndpoint, i have created the
> TestingProviderEndpoint in the same component . In the spring.xml i  have
> configured the targetservice to be TestingProviderEndpoint for
> ActualProviderEndpoint. I have created inout exchange and doing a sendSync.
> Now the exception is thrown @ waitForExchange  method in
> DeliveryChannelImpl.java:709.
>
> In actual JBI environment same code works, but only in the testing
> environement this exception is thrown.
>
> Any clue to resolve this error? If there is better way to test the provider
> endpoint consuming a service via spring framework plzz let me know
>
> Thanks in advance
> Param
>
> --
> View this message in context: 
> http://www.nabble.com/Problem-With-SendSync---InterruptedException%28Test-environment%29-tp22657797p22657797.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to