When I try to subscribe to a Lightstreamer adapter, using a java client, I get the following error
com.lightstreamer.ls_client.PushConnException: java.io.IOException: Server returned HTTP response code: 500 for URL:
http://localhost:8080/lightstreamer/control.txt
at com.lightstreamer.ls_client.HttpProvider.connectAndGetAnswer(HttpProvider.java:251)
at com.lightstreamer.ls_client.HttpProvider.doPost(HttpProvider.java:219)
at com.lightstreamer.ls_client.BatchManager.getNotBatchedAnswer(BatchManager.java:141)
at com.lightstreamer.ls_client.BatchManager.getAnswer(BatchManager.java:122)
at com.lightstreamer.ls_client.PushServerTranslator.doControlRequest(PushServerTranslator.java:625)
at com.lightstreamer.ls_client.PushServerTranslator.doControlRequest(PushServerTranslator.java:615)
at com.lightstreamer.ls_client.PushServerTranslator.callTableRequest(PushServerTranslator.java:491)
at com.lightstreamer.ls_client.PushServerProxy.requestSubscr(PushServerProxy.java:302)
at com.lightstreamer.ls_client.ServerManager.subscrTable(ServerManager.java:487)
at com.lightstreamer.ls_client.LSClient.subscribeTable(LSClient.java:538)
Can someone please tell me what I need to do to resolve this?
The client code is as follows
LSClient client = new LSClient();
new ExtendedTableInfo(subscriptions, "MERGE", config.getString("ls.schema").split(" "), true) {
{
setDataAdapter(config.getString("ls.dataAdapter"));
if (config.getBoolean("ls.unfiltered", false)) {
logger.info("RT Unfiltered = true");
requestUnfilteredDispatching();
} else {
logger.info("RT Unfiltered = false");
}
}
}, new HandyTableListener() {
@Override
public void onUpdate(int itemPos, String itemName, UpdateInfo update) {
logger.info(String.format("RT onUpdate, itemPos:%d itemName:%s snapshot:%s", itemPos,
itemName, update.isSnapshot()));
}
.......
.............