-
April 3rd, 2019, 02:30 PM
#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.
-
April 4th, 2019, 10:28 AM
#2
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
-
April 4th, 2019, 02:07 PM
#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)
-
April 5th, 2019, 04:40 PM
#4
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
-
April 17th, 2019, 12:36 PM
#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
-
April 18th, 2019, 09:21 AM
#6
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
-
By flybyGWT in forum Client SDKs
Replies: 2
Last Post: May 2nd, 2014, 09:50 PM
-
By Daniel Mihalko in forum Client SDKs
Replies: 1
Last Post: July 29th, 2013, 10:22 AM
-
By gerald.logor in forum Client SDKs
Replies: 7
Last Post: May 16th, 2008, 05:25 AM
-
By rsouissi in forum Client SDKs
Replies: 3
Last Post: February 1st, 2008, 08:49 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 05:14 PM.
Bookmarks