-
April 19th, 2010, 10:08 AM
#1
Restart Lightstreamer Server while browser open !!
Hi everybody.
I have a problem, and i wish you can help me solve it.
My problem is that, when i restart the Lightstreamer server, and i have a web page opened in the browser, not all the data will be sent to it.
And even if i close the page, or the browser, and reopen them, the problem still persist.
So Can you tell me please what's wrong ??
-
April 19th, 2010, 01:52 PM
#2
You should ensure that, upon restart of the page, all the subscriptions are reissued as expected
and that, upon the new subscriptions, all updates are produced by the Data Adapter as expected.
The above can be checked against the Server log,
after setting the LightstreamerLogger.subscriptions category at DEBUG level.
-
April 20th, 2010, 08:41 AM
#3
I restarted the server, while the web page still open.
That's what i get when i set the LightstreamerLogger.subscriptions to DEBUG (for 2 items):
20-avr.-10 08:30:42,390 |INFO |LightstreamerLogger.requests |SERVER POOLED THREAD 5 |Subrequest 4: LS_session=S377ad60e993b3c7dT3041968&LS_window=14& LS_win_phase=6&LS_op=add&LS_req_phase=50&LS_mode1= MERGE&LS_id1=
itemXXXXXX%20
itemYYYYYY% .....LS_data_adapter1=QUOTE_ADAPTER&LS_snapshot1=t rue&LS_requested_max_frequency1=1&LS_unique=10 from 127.0.0.1:2563
*************************************************
And i have also these 2 lines for both 2 items:
20-avr.-10 08:30:42,406 |TRACE|LightstreamerLogger.subscriptions|SERVER POOLED THREAD 5 |Subscribing to item
itemXXXXXXon STOCKLISTDEMO.QUOTE_ADAPTER
20-avr.-10 08:30:42,406 |TRACE|LightstreamerLogger.subscriptions|SERVER POOLED THREAD 2 |Subscribing to item
itemYYYYYYon STOCKLISTDEMO.QUOTE_ADAPTER
************************************************** ****
but only this line for the first item:
08:30:54,562 |TRACE|LightstreamerLogger.subscriptions|Simple updates queue |INCOMING DATA for
itemXXXXXX--> {ask_nb1=., last_price=., open_price=...etc.}
I didn't find this line for the other item.
Can you tell me what's wrong ?
And thnx !!
-
April 21st, 2010, 09:24 AM
#4
hi,
I see that you're using an old client build, I suggest you to upgrade to the new one.
about the issue, if you don't see the "INCOMING DATA" log for the second item, it means that the server does not receive anything from the data adapter for such item.
So, is the used adapter custom made or is it our adapter?
I see that the first "INCOMING" log is "INCOMING DATA" and not "INCOMING SNAPSOHT". Is it possible that your data adapter does not handle the first snapshot?
can you debug the data adapter to check that it actually doesn't send any update to Lightstreamer kernel for itemYYYY when it is first subscribed?
-
April 21st, 2010, 10:05 AM
#5
Sorry for bothering you again, but here's the senario:
i modified the DataAdapter of the StockListDemo so i can use it. But instead of having random (static) data, i read data from a data feed.
So while data are being added to the stockGenerators variable (for example, with only itemXXXXXX ), i open the web page, and that item will be shown in the browser.
i close the web page, or browser.
Now, the item itemYYYYYY will be added, i open the web page, and that item will not be shown in the browser. only the first item will be.
I also noticed something else. if i close the web page for a moment (i think 1 minute or 2), all the data will be shown. So i think that the problem is related with sessions.
i hope that you'll help me
-
April 21st, 2010, 10:20 AM
#6
I think that the problem is related to the initial snapshot
when your data adapter receives a subscribe call for an item you have to give to the server a snapshot of the current values for that item so that it can send them to the client.
I think that's what is missing in your adapter
If you check our original adapter you'll see this call in the subscribe implementation
that call makes the feed simulator send a snapshot with the initial values for the subscribed item.
let me nknow if you have any doubt
Similar Threads
-
By pratik in forum Client SDKs
Replies: 4
Last Post: June 26th, 2015, 08:56 AM
-
By latha in forum Client SDKs
Replies: 6
Last Post: December 7th, 2010, 09:26 AM
-
By latha in forum Client SDKs
Replies: 1
Last Post: January 18th, 2010, 03:27 PM
-
By mnenchev in forum General
Replies: 3
Last Post: September 29th, 2009, 08:54 AM
-
By ctranfd in forum Client SDKs
Replies: 3
Last Post: June 5th, 2009, 11:45 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 10:20 PM.
Bookmarks