This is a error:
11.Aug.09 09:41:22,041 <ERROR> Exception caught while subscribing to item 'VIC'
com.lightstreamer.adapters.remote.RemotingException: Generic exception on remote
side: startIndex cannot be larger than length of string.
Parameter name: startIndex
at com.lightstreamer.adapters.remote.data.DataProviderProtocol.readSubsc
ribe(DataProviderProtocol.java:83)
at com.lightstreamer.adapters.remote.data.RemoteDataProvider$1.onReplyRe
ceived(RemoteDataProvider.java:198)
at com.lightstreamer.adapters.remote.request_reply.RequestSender.onNotif
yReceived(RequestSender.java:296)
at com.lightstreamer.adapters.remote.request_reply.NotifyReceiver.onNoti
fyReceived(NotifyReceiver.java:172)
at com.lightstreamer.adapters.remote.request_reply.NotifyReceiver.run(No
tifyReceiver.java:92)
I have a function updateitem then:
var pushtable = new OverwriteTable(page1, schema1, "MERGE");
pushtable.onItemUpdate = updateItem1;
function updateItem1(item,updateInfo) {
if (updateInfo.isValueChanged("Count")){
var ars = updateInfo.getNewValue("Count").split('|');
if(ars != null){
if((parseInt(document.myForm.hiddencount.value) < ars.length)&&(flag)){
for(var i = 0;i<ars.length;i++){
addRow('stocks',i, ars[i]);
}
page = new PushPage();
page.onEngineCreation = function(engine) {
engine.connection.setAdapterName("PROXY_HELLOWORLD");
engine.changeStatus("STREAMING");
}
}
page.bind();
pushtable = new OverwriteTable(ars, schema, "MERGE");
pushtable.setSnapshotRequired(true);
pushtable.setRequestedMaxFrequency(1.0);
pushtable.setPushedHtmlEnabled(true);
// set highlighting effect when updating a cell
pushtable.onChangingValues = function(itemPos, visualUpdateInfo, itemName) {
if (visualUpdateInfo != null) {
var cold = (itemPos % 2 == 1) ? "#eeeeee" : "#ddddee";
if(visualUpdateInfo !="#arrow")
visualUpdateInfo.setRowAttribute(hotColor, cold, "backgroundColor");
}
};
pushtable.onItemUpdate = updateItem;
page.addTable(pushtable, "stocks");
flag = false;
}
}
}
...and updateInfo.getNewValue("Count")='ACB|ACT|ACF...|VIC'.
Please help me resolve this problem.!