-
null fields [Android]
I have subscribed to an item on our server and when it is updated the client receives an UpdateInfo whos fields are all null. Any idea what may cause this? MERGE, DISTINCT, and RAW all return this result.
Code:
private String[] mFields = { //returned by mCfg.getFields()
FieldNames.MSG_ID,
FieldNames.MSG_CAT_DESC,
FieldNames.MSG_TYPE_DESC,
FieldNames.MSG_SUBJECT,
FieldNames.MESSAGE,
FieldNames.POP_UP,
FieldNames.TIMESTAMP};
...
public void subscribe(int phase, LightstreamerListener listener)
throws SubscrException, PushServerException, PushUserException, PushConnException {
OurHandyTableListener hl = new OurHandyTableListener(phase, listener);
SimpleTableInfo tableInfo = new ExtendedTableInfo(
mCfg.getItems(), SimpleTableInfo.MERGE, mCfg.getFields(), true);
tableInfo.setDataAdapter(mCfg.getDataAdapter());
client.subscribeTable(tableInfo, hl, false);
-
Hi Patrick,
Please, could you replicate the issue, in a test environment, after setting the "LightstreamerLogger.pump" and "LightstreamerLogger.subscriptions" loggers to DEBUG level in the "lightstreamer_log_conf.xml" configuration file?
In this way we can check out the update processes in the Lightsreamer server and the list of updated field values sent to the client.
Please also note that with these logging configurations, the log file could reach huge size.
-
Thanks for your reply. The issue was resolved, the server owner had given us an outdated schema and we were looking for fields that did not exist. We do not have immediate access to their server logs so debugging is challenging. The joys of integration work.
-
Ok, good news.
Thank you for the feedback.