Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Aug 2014
    Posts
    71

    An activity warning - OnFailure: No data from server

    hi,
    i have a problem in my adapter that it is initialized then make a subscribe to items from another adapter to do some calculations an then push the result to lightstreamer.
    sometimes after few minutes a some connection exceptions is appeared from the connection listener as :

    public void OnActivityWarning(bool warningOn)
    warningOn = true

    public void OnFailure(PushServerException e)
    e.Message = No data from server

    what does these exceptions mean? and what the reasons which make that ?

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi engcoder,

    Indicates that an attempt to reconnect to a session has not received any answer for longer than a configurable timeout time.

    Indeed, it should be further investigated in the server log to find out the reasons for the disconnection and the failure of reconnection.
    Please confirm that the adapter and the Lightstreamer server run on different machines so that network issues can not be escluded.

    Regards,
    Giuseppe

  3. #3
    Senior Member
    Join Date
    Aug 2014
    Posts
    71
    hi,
    i can not find the reason of disconnect
    this is the log file of the day
    http://www.mediafire.com/download/fe...er23-5.log.zip

    the disconnection occured between 10:02 AM : 10:03 AM

    and how can i manage the timeout period from config.

  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi engcoder,

    I'm not sure I have identified just the Adapter disconnection we are talking about, indeed in the range indicated there are a few sessions that disconnected.
    All these disconnections seem to be related to client-side problems, or in any case voluntary closure of the session.
    However, I want to point out that starting at 10:00:00 AM for about 3 minutes we have thousands of messages like these:

    Unexpected snapshot event for MERGE item trade_info179
    Unexpected snapshot event for MERGE item syola108
    Unexpected UPDATE event for key 164-p0-3. Event propagated as an ADD command.


    Despite all these messages are not fatal, and the server still able to handle the updates, it might be useful to check the Adapter code to properly handle the snapshot flag on each update.

    On the other hand, I have a doubt, it is possible that all these updates are also received by your other adapter and the load for calculations processing is so high to cause the disconnection?

    That said, the reconnection timeout is configurable by ConnectionInfo.ReconnectionTimeoutMillis property.

    Regards,
    Giuseppe

 

 

Similar Threads

  1. Replies: 5
    Last Post: July 1st, 2014, 04:55 PM
  2. FATAL EXCEPTION: Connection close activity
    By thomas.renger@gmail.com in forum Client SDKs
    Replies: 2
    Last Post: January 10th, 2011, 04:07 PM
  3. Replies: 2
    Last Post: March 5th, 2008, 07:29 AM
  4. Multiple connection warning alerts from Firefox
    By Waddy in forum Client SDKs
    Replies: 4
    Last Post: May 14th, 2007, 03:38 PM
  5. Deprecation warning in the LiteralBasedProvider
    By jsharpe in forum Client SDKs
    Replies: 1
    Last Post: April 19th, 2007, 10:24 AM

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 01:16 PM.