tuongkha
Hi Dario,
There are information LS server, if i change my code :
-----
public ExternalFeedSimulator() {
_stockGenerators= new Hashtable();
_snapshotQueue= new ArrayList();
// AutoResetEvent autoEvent = new AutoResetEvent(false);
// TimerCallback handler = new TimerCallback(OnTimerEvent);
// Timer timer = new Timer(handler, null, 1000, 5000);
OnTimerEvent();
...
}
----
private void OnTimerEvent( )
{
ISecurityStructReader reader;
reader = new ReadSecurityStruct("C:\\TEMP\\BACKUP08\\SECURITY.DAT");
if (reader.Open())
{
arr = reader.Read();
_stockSymbol = new string[arr.Count];
for (int i=0; i< arr.Count ;i++)
{
Struct_Security item = (Struct_Security)arr;
_stockSymbol= item.StockSymbol;
...
}
...
}
---- LS server information --------------------
Starting Lightstreamer Server...
Please check logs for detailed information.
14.Jan.08 14:34:37,125 < INFO> Starting MAC address check
14.Jan.08 14:34:37,156 < INFO> Found MAC address 00:50:56:c0:00:08
14.Jan.08 14:34:37,156 < INFO> Found MAC address 00:50:56:c0:00:01
14.Jan.08 14:34:37,156 < INFO> Found MAC address 00:0f:b0:cd:10:6b
14.Jan.08 14:34:37,156 < INFO> Found MAC address 00:18:de:af:ea:7f
14.Jan.08 14:34:37,156 < INFO> MAC address check successful
14.Jan.08 14:34:37,156 < INFO> License correctly bound with the following parame
ter(s):
14.Jan.08 14:34:37,156 < INFO> Client ID : EWmtleTmXioln3OLeXzCL
14.Jan.08 14:34:37,156 < INFO> Mac Address : 00:18:de:af:ea:7f
14.Jan.08 14:34:37,328 < INFO> Lightstreamer Server starting in Moderato edition
14.Jan.08 14:34:37,359 < WARN> JMX management features not available with the cu
rrent license
14.Jan.08 14:34:37,390 < INFO> Started HTML Adaptor for JMX on port 6666
14.Jan.08 14:34:37,421 < INFO> Started JMXMP Connector for JMX on port 9999
14.Jan.08 14:34:37,437 < WARN> No users defined for Internal Monitor.
14.Jan.08 14:34:37,453 < INFO> Loading Metadata Provider TUTORIAL_DEMO
14.Jan.08 14:34:37,468 < INFO> Connecting...
14.Jan.08 14:34:41,406 < INFO> Connected
14.Jan.08 14:34:41,421 < INFO> Loading Data Provider TUTORIAL_DEMO
14.Jan.08 14:34:41,421 < INFO> Request sender '#1' starting...
14.Jan.08 14:34:41,421 < INFO> Reply receiver '#1' starting...
14.Jan.08 14:34:41,437 < INFO> Connecting...
14.Jan.08 14:34:50,828 < INFO> Connected
14.Jan.08 14:34:50,921 < INFO> Pump pool size set by default at 2
14.Jan.08 14:34:50,953 < INFO> Notify receiver '#2' starting...
14.Jan.08 14:34:50,953 < INFO> Request sender '#2' starting...
14.Jan.08 14:34:50,953 < INFO> Reply receiver '#2' starting...
14.Jan.08 14:34:50,968 < INFO> Events pool size set by default at 2
14.Jan.08 14:34:50,968 < INFO> Lightstreamer Server 3.4.6 build 1391 starting...
14.Jan.08 14:34:51,031 < INFO> Server "Lightstreamer HTTP Server" listening to *
:8080 ...
14.Jan.08 14:34:59,671 < INFO> Accepted HTTP connection on Lightstreamer HTTP Se
rver from 127.0.0.1:4553
14.Jan.08 14:34:59,703 < INFO> Serving request: /tutorial_demo/hose.html from 12
7.0.0.1:4553
14.Jan.08 14:34:59,734 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4553
14.Jan.08 14:34:59,765 < INFO> Serving request: /tutorial_demo/css/table.css fro
m 127.0.0.1:4553
14.Jan.08 14:34:59,765 < INFO> Accepted HTTP connection on Lightstreamer HTTP Se
rver from 127.0.0.1:4560
14.Jan.08 14:34:59,781 < INFO> Serving request: /tutorial_demo/ls/lscommons.js f
rom 127.0.0.1:4560
14.Jan.08 14:34:59,781 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4553
14.Jan.08 14:34:59,796 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4560
14.Jan.08 14:34:59,843 < INFO> Serving request: /tutorial_demo/ls/lspushpage.js
from 127.0.0.1:4553
14.Jan.08 14:34:59,859 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4553
14.Jan.08 14:35:00,531 < INFO> Serving request: /tutorial_demo/ls/lsblank.html f
rom 127.0.0.1:4560
14.Jan.08 14:35:00,531 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4560
14.Jan.08 14:35:00,578 < INFO> Serving request: /tutorial_demo/ls/lsengine.html?
engineName=Hose&remoteDebug=false& from 127.0.0.1:4553
14.Jan.08 14:35:00,609 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4553
14.Jan.08 14:35:00,656 < INFO> Serving request: /tutorial_demo/ls/lscommons.js f
rom 127.0.0.1:4553
14.Jan.08 14:35:00,671 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4553
14.Jan.08 14:35:00,703 < INFO> Serving request: /tutorial_demo/ls/lsengine.js?13
28 from 127.0.0.1:4553
14.Jan.08 14:35:00,703 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4553
14.Jan.08 14:35:00,781 < INFO> Closed HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4560
14.Jan.08 14:35:00,828 < INFO> Serving request: /tutorial_demo/ls/lsblank.html f
rom 127.0.0.1:4553
14.Jan.08 14:35:00,828 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4553
14.Jan.08 14:35:00,828 < INFO> Accepted HTTP connection on Lightstreamer HTTP Se
rver from 127.0.0.1:4563
14.Jan.08 14:35:00,843 < INFO> Serving request: /tutorial_demo/ls/lsblank.html f
rom 127.0.0.1:4563
14.Jan.08 14:35:00,843 < INFO> Serving request: /tutorial_demo/ls/lsblank.html f
rom 127.0.0.1:4553
14.Jan.08 14:35:00,843 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4563
14.Jan.08 14:35:00,843 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4553
14.Jan.08 14:35:00,859 < INFO> Accepted HTTP connection on Lightstreamer HTTP Se
rver from 127.0.0.1:4566
14.Jan.08 14:35:00,875 < INFO> Serving request: /tutorial_demo/ls/lsblank.html f
rom 127.0.0.1:4563
14.Jan.08 14:35:00,875 < INFO> Serving request: /tutorial_demo/ls/lsform.html fr
om 127.0.0.1:4566
14.Jan.08 14:35:00,875 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4563
14.Jan.08 14:35:00,875 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4566
14.Jan.08 14:35:00,875 < INFO> Serving request: /tutorial_demo/ls/lsblank.html f
rom 127.0.0.1:4553
14.Jan.08 14:35:00,890 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4553
14.Jan.08 14:35:01,171 < INFO> Serving request: /lightstreamer/STREAMING_IN_PROG
RESS?LS_phase=6802&LS_client_version=4.2&LS_adapter=TUTORIAL_DEMO& from 127.0.0.
1:4566
14.Jan.08 14:35:01,218 <TRACE> Pump for session S-1684810439N1 added
14.Jan.08 14:35:01,234 < INFO> Starting new session: S-1684810439N1 from 127.0.0
.1:4566
14.Jan.08 14:35:03,234 <TRACE> Sending probe in session S-1684810439N1
14.Jan.08 14:35:03,750 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4553
14.Jan.08 14:35:03,843 < INFO> Serving request: /lightstreamer/control.html?LS_s
ession=S-1684810439N1&LS_window=0&LS_win_phase=5&LS_op=add&LS_req_phase=42&LS_mo
de1=MERGE&LS_id1=item1%20item2%20item3%20item4%20item5%20item6%20item7%20item8%2
0item9%20item10%20item11%20item12%20item13%20item14%20item15%20item16%20item17%2
0item18%20item19%20item20%20item21%20item22%20item23%20item24%20item25%20item26%
20item27%20item28%20item29%20item30&LS_schema1=last_price%20time%20pct_change%20
bid1%20bid2%20bid3%20bid1vol%20bid2vol%20bid3vol%20ask1%20ask2%20ask3%20ask1vol%
20ask2vol%20ask3vol%20min%20max%20ref_price%20open_price%20stock_name%20ceiling%
20floor%20lastVal%20lastVol%20close_price%20close_vol&LS_snapshot1=true&LS_reque
sted_max_frequency1=1&LS_unique=1 from 127.0.0.1:4563
14.Jan.08 14:35:03,843 < INFO> Controlling session: S-1684810439N1 from 127.0.0.
1:4563
14.Jan.08 14:35:03,906 <TRACE> Pumping event in session S-1684810439N1: c(6,5,0)
;setWin(0,5);
14.Jan.08 14:35:03,906 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4563
14.Jan.08 14:35:04,109 <TRACE> Pumping event in session S-1684810439N1: z(0,1,3,
"73","#","-1","72","71","71","85","20","130","72","73","74","40","126","297","72
","74","74","73","AGF ","77","70.5","363","494","73","494");z(0,1,1,"76","#",
"-4","76","0","0","77","0","0","78","79","79","40","97","115","76","79.5","80","
76","ABT ","84","76","472","620","76","620");z(0,1,4,"60","#","-3","0","0","0
","0","0","0","61","61","62","40","117","450","60.5","62","64","60","ALP ","6
6","60.5","3,930","6,426","60","6,426");z(0,1,2,"81","#","-3.5","81","81","0","4
78","310","0","83","84","84","40","340","80","81.5","85","85","82","ACL ","89
","81","478","583","81","583");z(0,1,5,"74","#","-3.5","0","0","0","0","0","0","
75","77","78","40","100","194","74.5","79","78","74","ALT ","81","74.5","179"
,"236","74","236");z(0,1,6,"88","#","-3.5","88","87","0","1,090","610","0","88",
"89","89","40","470","250","88.5","89.5","92","88","ANV ","96","87.5","3,808"
,"4,300","88","4,300");z(0,1,7,"86","#","-3.5","86","85","0","103","530","0","88
","88","89","40","100","160","86.5","90","90","86","BBC ","94","85.5","1,756"
,"2,013","86","2,013");z(0,1,8,"20","#","-0.6","20","20","20","80","480","101","
20","20","21","40","948","642","20.5","21.1","21","21","BBT ","22","20.3","87
8","4,217","20","4,217");
14.Jan.08 14:35:04,109 <TRACE> Pumping event in session S-1684810439N1: z(0,1,9,
"43","#","-2.1","43","0","0","325","0","0","45","45","46","40","100","100","43.5
","44","46","44","BHS ","47","43.4","623","1,428","43","1,428");z(0,1,10,"274
","#","-14","0","0","0","0","0","0","274","275","277","40","10","14","274","288"
,"288","274","BMC ","302","274","4,153","1,483","274","1,483");z(0,1,12,"32",
"#","-1.7","0","0","0","0","0","0","32","35","0","40","159","0","32.3","32.4","3
4","32","BPC ","35","32.3","435","1,345","32","1,345");z(0,1,14,"67","#","-2.
5","0","0","0","0","0","0","67","69","70","40","55","130","67.5","70","70","68",
"BTC ","73","66.5","82","120","67","120");z(0,1,11,"150","#","-5","150","149"
,"148","91","133","929","152","155","156","40","31","135","148","155","155","150
","BMP ","162","148","725","483","150","483");z(0,1,17,"48","#","0","48","47"
,"46","10","100","40","48","48","48","40","30","35","48","49","49","0","CLC "
,"51","46.6","263","540","49","540");z(0,1,13,"51","#","-2.5","0","0","0","0","0
","0","52","53","53","40","232","200","51.5","54","54","52","BT6 ","56","51.5
","660","1,264","51","1,264");z(0,1,15,"24","#","0","23","23","23","20","160","1
70","24","24","25","40","100","307","23.1","24","24","24","CAN ","25","22.8",
"206","862","24","862");
14.Jan.08 14:35:04,109 <TRACE> Pumping event in session S-1684810439N1: z(0,1,18
,"51","#","-2.5","51","0","0","151","0","0","53","53","54","40","172","200","51"
,"53.5","54","51","COM ","56","51","482","941","51","941");z(0,1,16,"56","#",
"-2","55","0","0","1,915","0","0","56","56","57","40","112","1,430","56","57","5
8","56","CII ","60","55.5","6,343","11,282","56","11,282");z(0,1,23,"205","#"
,"-3","205","204","203","2,037","30","100","206","207","208","40","336","385","2
05","208","208","205","DHG ","218","198","10,317","4,989","205","4,989");z(0,
1,21,"23","#","-1","23","0","0","1,226","0","0","24","24","24","40","10","82","2
3.5","24.5","24","24","DCT ","25","23.3","588","2,492","23","2,492");z(0,1,19
,"16","#","-0.7","16","16","0","113","556","0","17","17","17","40","100","190","
16.8","17.5","18","17","CYC ","18","16.7","66","390","16","390");z(0,1,22,"50
","#","-2","50","49","0","110","1","0","50","51","51","40","840","460","50.5","5
2","52","50","DHA ","55","49.9","1,176","2,306","50","2,306");z(0,1,20,"43","
#","-2.2","43","0","0","700","0","0","44","44","45","40","240","418","43.5","45"
,"46","44","DCC ","47","43.5","2,074","4,738","43","4,738");
14.Jan.08 14:35:04,125 <TRACE> Pumping event in session S-1684810439N1: z(0,1,25
,"163","#","3","158","157","156","10","250","421","161","162","163","40","190","
495","163","163","160","163","DMC ","168","152","1,420","871","163","871");z(
0,1,27,"35","#","-1.8","35","0","0","25","0","0","36","36","36","40","55","15","
35","35.6","37","35","DPC ","38","35","409","1,155","35","1,155");z(0,1,24,"5
3","#","-2.5","0","0","0","0","0","0","54","55","56","40","50","70","53.5","54",
"56","54","DIC ","58","53.5","244","456","53","456");z(0,1,26,"36","#","-1.9"
,"0","0","0","0","0","0","37","37","39","40","30","700","36.7","37.5","39","37",
"DNP ","40","36.7","488","1,318","36","1,318");z(0,1,28,"66","#","-2","66","6
6","65","1,755","10,662","20,032","67","67","68","40","4,209","29,885","66.5","6
9","68","66","DPM ","71","65.5","38,369","56,745","66","56,745");z(0,1,29,"79
","#","-2","79","78","78","961","201","1,330","79","80","80","40","2,117","60","
79","80.5","81","79","DPR ","85","77","7,637","9,600","79","9,600");z(0,1,30,
"122","#","0","120","0","0","17","0","0","122","123","124","40","299","79","122"
,"123","122","122","DRC ","128","116","7,132","5,846","122","5,846");
14.Jan.08 14:35:04,640 < INFO> Serving request: /tutorial_demo/ls/lsblank.html f
rom 127.0.0.1:4553
14.Jan.08 14:35:04,640 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:4553
14.Jan.08 14:35:06,125 <TRACE> Sending probe in session S-1684810439N1
14.Jan.08 14:35:08,125 <TRACE> Sending probe in session S-1684810439N1
----- DotNetServer.log --------
2008-01-14 14:34:39,656 [1512] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server starting...
2008-01-14 14:34:39,781 [4620] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server starting...
2008-01-14 14:34:40,796 [1512] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-01-14 14:34:40,812 [4620] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-01-14 14:34:41,421 [4620] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connected
2008-01-14 14:34:42,437 [4620] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server running
2008-01-14 14:34:50,812 [1512] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-01-14 14:34:50,828 [1512] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connected
2008-01-14 14:34:50,859 [1512] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server running
-----------------
I'm a beginner, so i don't know how to fix this issue? I'm waiting your response can u help me? If u can, please give me your email, i will send my code to you.
Thanks!