Results 1 to 4 of 4
  1. #1

    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);

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    539
    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.

  3. #3
    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.

  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    539
    Ok, good news.
    Thank you for the feedback.

 

 

Similar Threads

  1. Null Pointer Exception while creating adapter
    By anilkumar2508 in forum Adapter APIs
    Replies: 1
    Last Post: October 19th, 2012, 09:03 AM
  2. Null Pointer Exception in Thread
    By Sathyaayyanar in forum Adapter APIs
    Replies: 1
    Last Post: September 2nd, 2010, 09:00 AM
  3. < WARN> Unexpected null event ???
    By mohamida in forum Adapter APIs
    Replies: 2
    Last Post: December 10th, 2009, 06:57 AM
  4. DISTINCT updates are NULL with recent LS server
    By rsouissi in forum Client APIs
    Replies: 4
    Last Post: March 6th, 2008, 01:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 06:33 PM.