lethanhclub
11.Aug.09 09:28:15,879 <ERROR> Exception caught while subscribing to item 'item9
5'
com.lightstreamer.adapters.remote.RemotingException: Timeout while waiting for a
n answer to request 600000012307486b02
at com.lightstreamer.adapters.remote.request_reply.RequestSender$1.run(R
equestSender.java:200)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Mone
The timeout you see usually means that the execution of the subscribe (and/or unsubscribe) method of remote adapter is spending too much time in its execution.
To solve the problem you could change such timeout through the <param name="timeout"> element inside the adapters.xml file that configures your remote adapter.
Such element is a child of the <data_provider> element.
(You can see it in the adapters.xml files under LS_HOME/DOCS-SDKs/sdk_ adapter_remoting_infrastructure/conf)
Alternatively, you could rewrite the subscribe (and/or unsubscribe) call on your Remote Data Adapter in an asynchronous way, so that it always returns at once, and then executes its time-spending tasks in another thread.
In this case NOTE that calls to "subscribe" and "unsubscribe" for the same item are guaranteed by LS library to be serialized. If you implement them in an asynchronous way, you should take care of keeping the executions serialized and in the same order them are received.
HTH