HI Manoj,

In my client class i have four methods which will be calling to thrift
server parallely. You can find the code from [1].

[1]
https://github.com/sajinidesilva/andes/blob/slots_Imp/modules/andes-core/broker/src/main/java/org/wso2/andes/server/slot/thrift/MBThriftClient.java


Thank you,
Sajini.

On Sat, Sep 27, 2014 at 12:56 PM, Manoj Gunawardena <man...@wso2.com> wrote:

> Hi Sajini,
>
> Its better to use Java ReentrantLock
> <http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/ReentrantLock.html>
> rather than synchronized blocks. Can you Please share the code, which you
> get this exception.
>
>
> Thanks
>
> On Fri, Sep 26, 2014 at 2:18 PM, Sajini De Silva <saj...@wso2.com> wrote:
>
>> Hi,
>>
>> Synchronizing methods in client side solved this problem.
>>
>> Thank you,
>> Sajini.
>>
>> On Fri, Sep 26, 2014 at 12:15 PM, Sajini De Silva <saj...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I'm getting following exception in a java thrift client when doing a
>>> server call.
>>>
>>> org.apache.thrift.TApplicationException: getSlotInfo failed: out of
>>> sequence response
>>>     at
>>> org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:76)
>>>     at
>>> org.wso2.andes.server.slot.thrift.gen.SlotManagementService$Client.recv_getSlotInfo(SlotManagementService.java:90)
>>>     at
>>> org.wso2.andes.server.slot.thrift.gen.SlotManagementService$Client.getSlotInfo(SlotManagementService.java:76)
>>>     at
>>> org.wso2.andes.server.slot.thrift.MBThriftClient.getSlot(MBThriftClient.java:55)
>>>     at
>>> org.wso2.andes.server.slot.SlotDeliveryWorker.run(SlotDeliveryWorker.java:96)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>     at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>     at java.lang.Thread.run(Thread.java:662)
>>>
>>> Does anybody know the cause for this exception?
>>>
>>>
>>> --
>>> Sajini De SIlva
>>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>> Email: saj...@wso2.com
>>> Blog: http://sajinid.blogspot.com/
>>> Git hub profile: https://github.com/sajinidesilva
>>>
>>> Phone: +94 712797729
>>>
>>>
>>
>>
>> --
>> Sajini De SIlva
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>> Email: saj...@wso2.com
>> Blog: http://sajinid.blogspot.com/
>> Git hub profile: https://github.com/sajinidesilva
>>
>> Phone: +94 712797729
>>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Manoj Gunawardena
> Tech Lead
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> Mobile : +94 77 2291643
>



-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva

Phone: +94 712797729
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to