Results 1 to 10 of 11

Hybrid View

  1. #1
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi vpurohit,

    I confirm that you should use version 2.1.1 build 1013.

    Regards,
    Giuseppe

  2. #2
    I still see this exact error when using version 2.1.6080.19963 of the client SDK. Can you advise me on how to turn on client logging?

  3. #3
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi gchermennov,

    You can leverage the the Log4NET library (that must be included in the project - log4net.dll) and a proper configuration.
    You can take this example (https://github.com/Lightstreamer/Lig...-client-dotnet) as a reference and in particular:

    - the configuration file of the app https://github.com/Lightstreamer/Lig...ent.exe.config
    where you can raise the log level for the categories that interest you.
    - The code that adds a logger provider to the Lightstreamer client library: https://github.com/Lightstreamer/Lig...tClient.cs#L74

    Regards,
    Giuseppe

  4. #4
    I can't find Log4NetLoggerProviderWrapper class in client dll

  5. #5
    Found the class

  6. #6
    Ok, here's what I've found after enabling client logs:

    2017-01-20 23:55:44,421 [Lightstreamer listening thread] ERROR com.lightstreamer.ls_client.session - Error while listening for data in session xyz
    2017-01-20 23:55:44,428 [Lightstreamer listening thread] INFO com.lightstreamer.ls_client.session - Terminating session xyz

    These were logs generated by the Lightstreamer client library. Here's what my code says at the same time:

    [Stream-sense queue] ERROR ProjectName.Listeners.StreamerListener - lightstreamer::communication::failure - communication failed Lightstreamer.DotNet.Client.PushConnException: Unable to read data from the transport connection: The connection was closed. ---> System.IO.IOException: Unable to read data from the transport connection: The connection was closed.

    How can I investigate this further?

  7. #7
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi gchermennov,

    The error messages reported indicate a disconnection of the communication with the server detected by the client library.
    The most common cause for this type of error is a network problem, maybe a temporary network failure, could this be your case?
    Otherwise you should make sure that is not the server, for some reason, deliberately terminating the connection, but in this case you need to analyze the Lightstreamer server logs.

    Regards,
    Giuseppe

  8. #8
    Lightstreamer server is not under my control - I just use it to receive data updates.
    Network problem can indeed be my case, I'll add code for reconnecting and continue to monitor the situation. Thanks

 

 

Similar Threads

  1. Replies: 4
    Last Post: April 8th, 2015, 02:55 PM
  2. Failure to connect, "/null not found"
    By mbenson in forum Client SDKs
    Replies: 2
    Last Post: March 17th, 2014, 11:59 AM
  3. Replies: 1
    Last Post: January 31st, 2011, 07:47 AM
  4. Replies: 1
    Last Post: June 7th, 2010, 11:13 AM
  5. Replies: 4
    Last Post: February 5th, 2010, 03:12 PM

Tags for this Thread

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 12:20 PM.