Results 1 to 6 of 6
  1. #1

    Adapters start streaming after second connection

    Hi Guys!
    Have strange behavior of Lightstreamer java server.
    On first connect when my NodeJs adapters connect to LS server, my streams don't start.
    For example: https://prnt.sc/n6xiwt

    After reboot my node js adapters, and they connected to LS server one more time - streams come to live.
    Proof https://prnt.sc/n6xlvr

    In current case to I should restart my NodeJs adapter server for the streaming to start.

    Let me know if you need additional information.
    Looking forward to your reply
    Best wishes.

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

    Indeed the issue is quite tricky.
    From the log snippets you attached there is no evidence, in the first case, of connections from you adapters.
    Maybe, the adapters were launched before the Lightstreamer server, or in any case they tried the connections before the Lightstreamer server was yet listening on the involved ports?
    But this also means that the adapters never retried the connection after the first failure.

    Regards,
    Giuseppe

  3. #3
    Thank you for your reply.
    Let me show more logs
    1) Until first connection: https://prnt.sc/n7fcub
    2) After first connection: https://prnt.sc/n7fewp and https://prnt.sc/n7ffep (Streams don't work)
    3) After second connection: https://prnt.sc/n7fh66 (Streams work)

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

    Sorry, I didn't understood your scenario, so the adapters actually connect fine even the first time but just missed to push updates.
    The second time connected fine as well and also start pushing regularly.

    In this case maybe in the first attempt something goes wrong in the comunication from the Lightstreamer server to the adapters to comunicate client subscription requests.
    Please have you any chance to verify if your adapters receive any requests from the servers after the first connection?

    Thank you,
    Giuseppe

  5. #5
    Hi Giuseppe.
    I have investigated my issue and noticed that adapters behavior is the same (first and second connection).
    The issue is stayed: after first adapters connection - it waiting for connections, after second - everything works fine I have attached screenshots in my previous post.
    Maybe there any settings for JAVA LS Server? It depends on environment? I run in docker container.
    Best wishes

  6. #6
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi patrol90,

    No, there are no particular configurations or settings of the environment, your adapters should work fine just at every well established connection with the Lightstreamer server.
    I think the important things to be verified are basically two:
    - from the screenshots you attached I noticed that you have several Data Adapters, you should be sure that all the Data Adapters defined can get connected and after the Ligthstreamer server started a client request was received for the proper one;
    - verify in your adapter code if the functions init, subscribe of the DataProvider and init, notifyUser, and notifyNewSession of the MetadataProvider was actually called.

    Regards,
    Giuseppe

 

 

Similar Threads

  1. Command mode second level item key uniqueness
    By flybyGWT in forum Client SDKs
    Replies: 2
    Last Post: May 2nd, 2014, 10:50 PM
  2. Hundreds of Ajax request per second on our website
    By Daniel Mihalko in forum Client SDKs
    Replies: 1
    Last Post: July 29th, 2013, 11:22 AM
  3. Replies: 7
    Last Post: May 16th, 2008, 06:25 AM
  4. Replies: 3
    Last Post: February 1st, 2008, 09:49 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 12:20 PM.