tuongkha
Hi Dario,
I have 2 adapter :
1. QuotesStreamer.HaSTC.Adapters.Data.StockListAdapter
2. QuotesStreamer.HOSE.Adapters.Data.StockListAdapter
and i config in "adapters.xml"
-------
<?xml version="1.0"?>
<adapters_conf id="HaSTC">
<!-- Metadata provider is the Java Remote Metadata Adapter Proxy with
sockets transport. -->
<metadata_provider>
...
</data_provider>
</adapters_conf>
and I start only adapter "QuotesStreamer.HaSTC.Adapters.Data.StockListAdapter" by config in "DotNetServer.bat" :
---------
...
rem start "StockListAdapter" /MIN DotNetServer QuotesStreamer.HoSE.Adapters.Data.StockListAdapter /host localhost /rrport 6661 /notifport 6662
start "StockListAdapter" /MIN DotNetServer QuotesStreamer.HaSTC.Adapters.Data.StockListAdapter /host localhost /rrport 6661 /notifport 6662
start "LiteralBasedProvider" /MIN DotNetServer Lightstreamer.Adapters.Metadata.LiteralBasedProvider /host localhost /rrport 6663 max_bandwidth=40 max_frequency=3 buffer_size=30
---
And I have error, here my log :
----
C:\Lightstreamer\bin\windows>call LS.bat run
Starting Lightstreamer Server...
Please check logs for detailed information.
19.Mar.08 18:08:39,164 < INFO> Starting MAC address check
19.Mar.08 18:08:39,195 < INFO> Found MAC address 00:50:56:c0:00:08
19.Mar.08 18:08:39,195 < INFO> Found MAC address 00:50:56:c0:00:01
19.Mar.08 18:08:39,195 < INFO> Found MAC address 00:0f:b0:cd:10:6b
19.Mar.08 18:08:39,195 < INFO> Found MAC address 00:18:de:af:ea:7f
19.Mar.08 18:08:39,195 < INFO> MAC address check successful
19.Mar.08 18:08:39,195 < INFO> License correctly bound with the following parame
ter(s):
19.Mar.08 18:08:39,195 < INFO> Client ID : EWmtleTmXioln3OLeXzCL
19.Mar.08 18:08:39,195 < INFO> Mac Address : 00:18:de:af:ea:7f
19.Mar.08 18:08:39,320 < INFO> Lightstreamer Server starting in Moderato edition
19.Mar.08 18:08:39,351 < WARN> JMX management features not available with the cu
rrent license
19.Mar.08 18:08:39,382 < INFO> Started HTML Adaptor for JMX on port 6666
19.Mar.08 18:08:39,414 < INFO> Started JMXMP Connector for JMX on port 9999
19.Mar.08 18:08:39,429 < WARN> No users defined for Internal Monitor.
19.Mar.08 18:08:39,445 < INFO> Loading Metadata Provider HaSTC
19.Mar.08 18:08:39,460 < INFO> Connecting...
19.Mar.08 18:08:42,804 < INFO> Connected
19.Mar.08 18:08:42,820 < INFO> Request sender '#1' starting...
19.Mar.08 18:08:42,820 < INFO> Reply receiver '#1' starting...
19.Mar.08 18:08:42,820 < INFO> Loading Data Provider HaSTC
19.Mar.08 18:08:42,820 < INFO> Connecting...
19.Mar.08 18:08:43,492 < INFO> Connected
19.Mar.08 18:08:43,539 < INFO> Pump pool size set by default at 2
19.Mar.08 18:08:43,570 < INFO> Notify receiver '#2' starting...
19.Mar.08 18:08:43,570 < INFO> Request sender '#2' starting...
19.Mar.08 18:08:43,570 < INFO> Reply receiver '#2' starting...
19.Mar.08 18:08:43,570 < INFO> Events pool size set by default at 2
19.Mar.08 18:08:43,570 < INFO> Lightstreamer Server 3.4.8 build 1398 starting...
19.Mar.08 18:08:43,632 < INFO> Server "Lightstreamer HTTP Server" listening to *
:8080 ...
19.Mar.08 18:08:46,679 < INFO> Accepted HTTP connection on Lightstreamer HTTP Se
rver from 127.0.0.1:3881
19.Mar.08 18:08:46,695 < INFO> Serving request: /lightstreamer/STREAMING_IN_PROG
RESS?LS_phase=4316&LS_requested_max_bandwidth=30&LS_client_version=4.2&LS_adapte
r=HaSTC&LS_old_session=S457745fe43fe1566T0144875& from 127.0.0.1:3881
19.Mar.08 18:08:46,757 < WARN> Bandwidth control request ignored
19.Mar.08 18:08:46,757 < INFO> Starting new session: S4e94e0621d4f4cddT0846742 f
rom 127.0.0.1:3881
19.Mar.08 18:08:46,789 < INFO> Accepted HTTP connection on Lightstreamer HTTP Se
rver from 127.0.0.1:3886
19.Mar.08 18:08:46,804 < INFO> Serving request: /lightstreamer/control.html?LS_s
ession=S4e94e0621d4f4cddT0846742&LS_window=1&LS_win_phase=10&LS_op=add&LS_req_ph
ase=97&LS_mode1=MERGE&LS_id1=item1%20item2%20item3%20item4%20item5%20item6%20ite
m7%20item8%20item9%20item10%20item11%20item12%20item13%20item14%20item15%20item1
6%20item17%20item18%20item19%20item20%20item21%20item22%20item23%20item24%20item
25%20item26%20item27%20item28%20item29%20item30%20item31%20item32%20item33%20ite
m34%20item35%20item36%20item37%20item38%20item39%20item40%20item41%20item42%20it
em43%20item44%20item45%20item46%20item47%20item48%20item49%20item50%20item51%20i
tem52%20item53%20item54%20item55%20item56%20item57%20item58%20item59%20item60%20
item61%20item62%20item63%20item64%20item65%20item66%20item67%20item68%20item69%2
0item70%20item71%20item72%20item73%20item74%20item75%20item76%20item77%20item78%
20item79%20item80%20item81%20item82%20item83%20item84%20item85%20item86%20item87
%20item88%20item89%20item90%20item91%20item92%20item93%20item94%20item95%20item9
6%20item97%20item98%20item99%20item100%20item101%20item102%20item103%20item104%2
0item105%20item106%20item107%20item108%20item109%20item110%20item111%20item112%2
0item113%20item114%20item115%20item116%20item117%20item118%20item119%20item120%2
0item121%20item122%20item123%20item124%20item125%20item126%20item127%20&LS_schem
a1=last_price%20time%20_change%20bid1vol%20bid1%20ask1%20ask1vol%20min%20max%20r
ef_price%20open_price%20stock_symbol%20ceiling%20floor%20bid2vol%20bid2%20bid3vo
l%20bid3%20ask2%20ask2vol%20ask3%20ask3vol%20lastVol%20lastVal%20item_status&LS_
snapshot1=true&LS_requested_max_frequency1=0.5&LS_unique=2 from 127.0.0.1:3886
19.Mar.08 18:08:46,804 < INFO> Controlling session: S4e94e0621d4f4cddT0846742 fr
om 127.0.0.1:3886
19.Mar.08 18:08:46,945 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:3886
19.Mar.08 18:08:47,773 < INFO> Serving request: /priceonline/ls/lsblank.html fro
m 127.0.0.1:3886
19.Mar.08 18:08:47,789 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:3886
19.Mar.08 18:08:48,882 < INFO> Serving request: /priceonline/images/up.gif from
127.0.0.1:3886
19.Mar.08 18:08:48,914 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:3886
19.Mar.08 18:08:49,117 < INFO> Serving request: /priceonline/images/no_change.jp
g from 127.0.0.1:3886
19.Mar.08 18:08:49,117 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:3886
19.Mar.08 18:08:49,148 < INFO> Serving request: /priceonline/images/down.gif fro
m 127.0.0.1:3886
19.Mar.08 18:08:49,148 < INFO> Reused HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:3886
19.Mar.08 18:09:03,445 < INFO> Accepted HTTP connection on Lightstreamer HTTP Se
rver from 127.0.0.1:3887
19.Mar.08 18:09:03,820 < INFO> Serving request: /lightstreamer/STREAMING_IN_PROG
RESS?LS_phase=8497&LS_requested_max_bandwidth=30&LS_client_version=4.2&LS_adapte
r=HOSE&LS_old_session=S8f476e7537a7d13aT1820765& from 127.0.0.1:3887
19.Mar.08 18:09:03,820 <ERROR> Bad request: Requested Adapters, HOSE, not found
19.Mar.08 18:09:03,820 < INFO> Failed request from 127.0.0.1:3887
19.Mar.08 18:09:03,820 <ERROR> Failure in request processing
com.lightstreamer.b.db: Requested Adapters, HOSE, not found
at com.lightstreamer.b.l.a(l.java)
at com.lightstreamer.j.m.a(m.java)
at com.lightstreamer.j.m.a(m.java)
at com.lightstreamer.j.p.a(p.java)
at com.lightstreamer.j.g.b(g.java)
at com.lightstreamer.j.g.a(g.java)
at com.lightstreamer.i.cb.a(cb.java)
at com.lightstreamer.i.cb.a(cb.java)
at com.lightstreamer.i.x.a(x.java)
at com.lightstreamer.d.uc.run(uc.java)
at com.lightstreamer.d.qb.a(qb.java)
at com.lightstreamer.d.rb.run(rb.java)
Caused by: com.lightstreamer.c.f: Requested Adapters, HOSE, not found
at com.lightstreamer.c.p.<init>(p.java)
at com.lightstreamer.c.n.<init>(n.java)
at com.lightstreamer.b.r.a(r.java)
at com.lightstreamer.b.r.b(r.java)
... 12 more
19.Mar.08 18:09:03,851 < INFO> Closed HTTP connection on Lightstreamer HTTP Serv
er from 127.0.0.1:3887
-------
I don't know why LS warning : "Requested Adapters, HOSE, not found". Can u help me? :confused:
Dario Crivelli
The request for HOSE Adapter is in client code.
The request at the beginning of the log asks for HaSTC Adapter and it works, but the second request asks for HOSE Adapter.
Please, look for setAdapterName("HOSE") in the client page. If you had recently changed the page, it is possible that the old page was still cached in the browser, as the page request references to an old session, hence the page was not refreshed recently.
tuongkha
Hi Dario,
In the client page, I changed :
function startEngine(eng) {
// eng.context.setDebugAlertsOnClientError(false);
eng.policy.setMaxBandwidth(30);
eng.policy.setIdleTimeout(30000);
eng.policy.setPollingInterval(1000);
eng.connection.setLSHost(null);
eng.connection.setLSPort(null);
eng.connection.setAdapterName("HaSTC");
eng.changeStatus("STREAMING");
}
I think maybe it still was cached. I tried start LS on another computer, it's ok.
Thanks for your support.
skidrow406
Sorry, we encountered an error while displaying this content. If you're a user, please try again later. If you're an administrator, take a look in your Flarum log files for more information.
tuongkha
i followed your instruction, but it doesn't run. it has error :
------------
Starting Lightstreamer Server...
Please check logs for detailed information.
24.Apr.08 14:46:21,046 < INFO> Starting MAC address check
24.Apr.08 14:46:21,078 < INFO> Found MAC address 00:50:56:c0:00:08
24.Apr.08 14:46:21,078 < INFO> Found MAC address 00:50:56:c0:00:01
24.Apr.08 14:46:21,078 < INFO> Found MAC address 00:0f:b0:cd:10:6b
24.Apr.08 14:46:21,078 < INFO> Found MAC address 00:18:de:af:ea:7f
24.Apr.08 14:46:21,078 < INFO> MAC address check successful
24.Apr.08 14:46:21,078 < INFO> License correctly bound with the following parame
ter(s):
24.Apr.08 14:46:21,078 < INFO> Client ID : EWmtleTmXioln3OLeXzCL
24.Apr.08 14:46:21,078 < INFO> Mac Address : 00:18:de:af:ea:7f
24.Apr.08 14:46:21,218 < INFO> Lightstreamer Server starting in Moderato edition
24.Apr.08 14:46:21,250 < WARN> JMX management features not available with the cu
rrent license
24.Apr.08 14:46:21,281 < INFO> Started HTML Adaptor for JMX on port 6666
24.Apr.08 14:46:21,312 < INFO> Started JMXMP Connector for JMX on port 9999
24.Apr.08 14:46:21,328 < WARN> No users defined for Internal Monitor.
24.Apr.08 14:46:21,328 < WARN> Adapters configuration not found in C:\Lightstrea
mer\conf\..\adapters\StockList_sockets
24.Apr.08 14:46:21,390 < INFO> Pump pool size set by default at 2
24.Apr.08 14:46:21,406 < INFO> Events pool size set by default at 2
24.Apr.08 14:46:21,421 < INFO> Lightstreamer Server 3.4.8 build 1398 starting...
24.Apr.08 14:46:21,468 < INFO> Server "Lightstreamer HTTP Server" listening to *
:8080 ...
Dario Crivelli
There is probably a typo. The "Adapters configuration not found" warning is only issued when a subdirectory of the "adapters" directory does not contain any "adapters.xml" file.
Note that no adapter initialization is reported in the log. If you still refer to your "HOSE" and "HASTC" Adapters, mentioned in the above posts, then please check the contents of your "adapters" directory.
tuongkha
Hi Dario,
Here my directory :
------
C:\Lightstreamer\adapters\HoSE\adapters.xml
C:\Lightstreamer\adapters\HoSE\lib\ls-proxy-adapters.jar
------
C:\Lightstreamer\adapters\HaSTC\adapters.xml
C:\Lightstreamer\adapters\HaSTC\lib\ls-proxy-adapters.jar
------
And here contents of "HoSE\adapters.xml" :
------
<?xml version="1.0"?>
<adapters_conf id="HoSE">
<metadata_provider>
<adapter_class>com.lightstreamer.adapters.remote.metadata.NetworkedMetadataProvider</adapter_class>
<param name="request_reply_port">6663</param>
</metadata_provider>
<data_provider>
<adapter_class>com.lightstreamer.adapters.remote.data.NetworkedDataProvider</adapter_class>
<param name="request_reply_port">6661</param>
<param name="notify_port">6662</param>
</data_provider>
</adapters_conf>
------
And here contents of "HaSTC\adapters.xml" :
------
<?xml version="1.0"?>
<adapters_conf id="HaSTC">
<metadata_provider>
<adapter_class>com.lightstreamer.adapters.remote.metadata.NetworkedMetadataProvider</adapter_class>
<param name="request_reply_port">6663</param>
</metadata_provider>
<data_provider>
<adapter_class>com.lightstreamer.adapters.remote.data.NetworkedDataProvider</adapter_class>
<param name="request_reply_port">6661</param>
<param name="notify_port">6662</param>
</data_provider>
</adapters_conf>
-------
Now, I modified "DotNetStart.bat"
-------
...
start "StockListAdapter" /MIN DotNetServer QuotesStreamer.HoSE.Adapters.Data.StockListAdapter /host localhost /rrport 6661 /notifport 6662
start "StockListAdapter" /MIN DotNetServer QuotesStreamer.HaSTC.Adapters.Data.StockListAdapter /host localhost /rrport 6661 /notifport 6662
-------
And I run "Start_LS_as_Application.bat", and LS is hang :
C:\Lightstreamer\bin\windows>call LS.bat run
Starting Lightstreamer Server...
Please check logs for detailed information.
06.May.08 17:20:50,796 < INFO> Starting MAC address check
06.May.08 17:20:50,828 < INFO> Found MAC address 00:50:56:c0:00:08
06.May.08 17:20:50,828 < INFO> Found MAC address 00:50:56:c0:00:01
06.May.08 17:20:50,828 < INFO> Found MAC address 00:0f:b0:cd:10:6b
06.May.08 17:20:50,828 < INFO> Found MAC address 00:18:de:af:ea:7f
06.May.08 17:20:50,828 < INFO> MAC address check successful
06.May.08 17:20:50,828 < INFO> License correctly bound with the following parame
ter(s):
06.May.08 17:20:50,828 < INFO> Client ID : EWmtleTmXioln3OLeXzCL
06.May.08 17:20:50,828 < INFO> Mac Address : 00:18:de:af:ea:7f
06.May.08 17:20:50,968 < INFO> Lightstreamer Server starting in Moderato edition
06.May.08 17:20:51,000 < WARN> JMX management features not available with the cu
rrent license
06.May.08 17:20:51,031 < INFO> Started HTML Adaptor for JMX on port 6666
06.May.08 17:20:51,078 < INFO> Started JMXMP Connector for JMX on port 9999
06.May.08 17:20:51,093 < WARN> No users defined for Internal Monitor.
06.May.08 17:20:51,109 < INFO> Loading Metadata Provider HaSTC
06.May.08 17:20:51,125 < INFO> Connecting...
It doesn't start Provider HoSE. What something wrong or I mistake?
Dario Crivelli
Note that the initialization of the Adapters is done in sequence (and no specific order is followed). In your case, the Server tries to initialize the HaSTC Proxy Adapter first and it waits for a connection from the HaSTC Remote Adapter before moving to HoSE.
In fact, the configuration contains some errors:
- The two Remote Adapters should use different communication ports. Currently, they both use ports 6661, 6662 and 6663. This involves changing both "adapters.xml" and the launch script.
- Both for HaSTC and HoSE Remote Data Adapters, in "adapters.xml" you have also configured a Remote Metadata Adapter. These two Remote Metadata Adapter instances must also be launched by your launch script.
Please, try the changes shown below:
HoSE\adapters.xml
[SYNTAX="XML"]<?xml version="1.0"?>
<adapters_conf id="HoSE">
<metadata_provider>
<adapter_class>com.lightstreamer.adapters.remote.metadata.NetworkedMetadataProvider</adapter_class>
<param name="request_reply_port">6663</param>
</metadata_provider>
<data_provider>
<adapter_class>com.lightstreamer.adapters.remote.data.NetworkedDataProvider</adapter_class>
<param name="request_reply_port">6661</param>
<param name="notify_port">6662</param>
</data_provider>
</adapters_conf>
[/SYNTAX]
HaSTC\adapters.xml
[SYNTAX="XML"]<?xml version="1.0"?>
<adapters_conf id="HaSTC">
<metadata_provider>
<adapter_class>com.lightstreamer.adapters.remote.metadata.NetworkedMetadataProvider</adapter_class>
<param name="request_reply_port">6666</param>
</metadata_provider>
<data_provider>
<adapter_class>com.lightstreamer.adapters.remote.data.NetworkedDataProvider</adapter_class>
<param name="request_reply_port">6664</param>
<param name="notify_port">6665</param>
</data_provider>
</adapters_conf>
[/SYNTAX]
DotNetStart.bat
...
start "Metadata Adapter for HoSE" /MIN DotNetServer Lightstreamer.Adapters.Metadata.LiteralBasedProvider /host localhost /rrport 6663
start "Data Adapter for HoSE" /MIN DotNetServer QuotesStreamer.HoSE.Adapters.Data.StockListAdapter /host localhost /rrport 6661 /notifport 6662
start "Metadata Adapter for HaSTC" /MIN DotNetServer Lightstreamer.Adapters.Metadata.LiteralBasedProvider /host localhost /rrport 6666
start "Data Adapter for HaSTC" /MIN DotNetServer QuotesStreamer.HaSTC.Adapters.Data.StockListAdapter /host localhost /rrport 6664 /notifport 6665
tuongkha
Hi Dario,
I tried it, when I run "Start_LS_as_application.bat", it still has error :
--------
C:\Lightstreamer\bin\windows>call LS.bat run
Starting Lightstreamer Server...
Please check logs for detailed information.
07.May.08 16:53:07,593 < INFO> Starting MAC address check
07.May.08 16:53:07,625 < INFO> Found MAC address 00:50:56:c0:00:08
07.May.08 16:53:07,625 < INFO> Found MAC address 00:50:56:c0:00:01
07.May.08 16:53:07,625 < INFO> Found MAC address 00:0f:b0:cd:10:6b
07.May.08 16:53:07,625 < INFO> Found MAC address 00:18:de:af:ea:7f
07.May.08 16:53:07,625 < INFO> MAC address check successful
07.May.08 16:53:07,625 < INFO> License correctly bound with the following parame
ter(s):
07.May.08 16:53:07,625 < INFO> Client ID : EWmtleTmXioln3OLeXzCL
07.May.08 16:53:07,625 < INFO> Mac Address : 00:18:de:af:ea:7f
07.May.08 16:53:07,828 < INFO> Lightstreamer Server starting in Moderato edition
07.May.08 16:53:07,859 < WARN> JMX management features not available with the cu
rrent license
07.May.08 16:53:07,890 < INFO> Started HTML Adaptor for JMX on port 6666
07.May.08 16:53:07,937 < INFO> Started JMXMP Connector for JMX on port 9999
07.May.08 16:53:07,968 < WARN> No users defined for Internal Monitor.
07.May.08 16:53:07,984 < INFO> Loading Metadata Provider HoSE
07.May.08 16:53:08,015 < INFO> Connecting...
07.May.08 16:53:08,015 <ERROR> Exception caught while trying to connect
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at com.lightstreamer.adapters.remote.transport.SocketTransport.connect(S
ocketTransport.java:62)
at com.lightstreamer.adapters.remote.metadata.NetworkedMetadataProvider.
init(NetworkedMetadataProvider.java:23)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.LS.main(LS.java)
07.May.08 16:53:08,015 <ERROR> Metadata adapter init error
com.lightstreamer.interfaces.metadata.MetadataProviderException: Exception caugh
t while trying to connect: Address already in use: JVM_Bind
at com.lightstreamer.adapters.remote.metadata.NetworkedMetadataProvider.
init(NetworkedMetadataProvider.java:27)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.LS.main(LS.java)
07.May.08 16:53:08,031 <ERROR> Error while loading the Adapters
com.lightstreamer.interfaces.metadata.MetadataProviderException: Exception caugh
t while trying to connect: Address already in use: JVM_Bind
at com.lightstreamer.adapters.remote.metadata.NetworkedMetadataProvider.
init(NetworkedMetadataProvider.java:27)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.LS.main(LS.java)
07.May.08 16:53:08,031 <FATAL> Adapters initialization failed
07.May.08 16:53:08,031 < INFO> Exiting.....
Press any key to continue . . .
-------
I think, LS using port 6666, so i try to change in "HaSTC\adapters.xml" :
------
<?xml version="1.0"?>
<adapters_conf id="HaSTC">
<metadata_provider>
<adapter_class>com.lightstreamer.adapters.remote.metadata.NetworkedMetadataProvider</adapter_class>
<param name="request_reply_port">6669</param>
</metadata_provider>
<data_provider>
<adapter_class>com.lightstreamer.adapters.remote.data.NetworkedDataProvider</adapter_class>
<param name="request_reply_port">6667</param>
<param name="notify_port">6668</param>
</data_provider>
</adapters_conf>
----
After that, I run "Start_LS_as_application.bat", It run but it doesn't load "HaSTC provider", it hang on.
----
C:\Lightstreamer\bin\windows>call LS.bat run
Starting Lightstreamer Server...
Please check logs for detailed information.
07.May.08 17:01:14,593 < INFO> Starting MAC address check
07.May.08 17:01:14,625 < INFO> Found MAC address 00:50:56:c0:00:08
07.May.08 17:01:14,625 < INFO> Found MAC address 00:50:56:c0:00:01
07.May.08 17:01:14,625 < INFO> Found MAC address 00:0f:b0:cd:10:6b
07.May.08 17:01:14,625 < INFO> Found MAC address 00:18:de:af:ea:7f
07.May.08 17:01:14,625 < INFO> MAC address check successful
07.May.08 17:01:14,625 < INFO> License correctly bound with the following parame
ter(s):
07.May.08 17:01:14,625 < INFO> Client ID : EWmtleTmXioln3OLeXzCL
07.May.08 17:01:14,625 < INFO> Mac Address : 00:18:de:af:ea:7f
07.May.08 17:01:14,765 < INFO> Lightstreamer Server starting in Moderato edition
07.May.08 17:01:14,796 < WARN> JMX management features not available with the cu
rrent license
07.May.08 17:01:14,828 < INFO> Started HTML Adaptor for JMX on port 6666
07.May.08 17:01:14,875 < INFO> Started JMXMP Connector for JMX on port 9999
07.May.08 17:01:14,890 < WARN> No users defined for Internal Monitor.
07.May.08 17:01:14,906 < INFO> Loading Metadata Provider HoSE
07.May.08 17:01:14,937 < INFO> Connecting...
Dario Crivelli
Ooops! Unfortunately port 6666 was already used for JMX support.
Obviously, I assume that you have modified the Remote Servers launch script accordingly.
However, one thing is really strange: the above problem was on the HaSTC Adapter, but the Server logs its errors while loading the HoSE Adapter.
Please, check, through "netstat /a" or a similar command, which port is open for listening while the Server is hanging after logging "Connecting..." (it should be 6663, or 6669).
Then ensure that the Remote Servers launch script has correctly opened 4 windows, which correspond to the 4 Remote Servers that run the various Remote Data and Metadata Adapters.
tuongkha
Hi Dario,
I run "Start_LS_as_application.bat", it run and loaded "HaSTC adapter" but it doesn't load "HoSE adapter", it hang on, after that i type "netstat /a".
-----
<?xml version="1.0"?>
<adapters_conf id="HaSTC">
<metadata_provider>
<adapter_class>com.lightstreamer.adapters.remote.metadata.NetworkedMetadataProvider</adapter_class>
<param name="request_reply_port">6669</param>
</metadata_provider>
<data_provider>
<adapter_class>com.lightstreamer.adapters.remote.data.NetworkedDataProvider</adapter_class>
<param name="request_reply_port">6667</param>
<param name="notify_port">6668</param>
</data_provider>
</adapters_conf>
-----
C:\Lightstreamer\bin\windows>call LS.bat run
Starting Lightstreamer Server...
Please check logs for detailed information.
08.May.08 10:45:46,171 < INFO> Starting MAC address check
08.May.08 10:45:46,203 < INFO> Found MAC address 00:50:56:c0:00:08
08.May.08 10:45:46,203 < INFO> Found MAC address 00:50:56:c0:00:01
08.May.08 10:45:46,203 < INFO> Found MAC address 00:0f:b0:cd:10:6b
08.May.08 10:45:46,203 < INFO> Found MAC address 00:18:de:af:ea:7f
08.May.08 10:45:46,203 < INFO> MAC address check successful
08.May.08 10:45:46,203 < INFO> License correctly bound with the following parame
ter(s):
08.May.08 10:45:46,203 < INFO> Client ID : EWmtleTmXioln3OLeXzCL
08.May.08 10:45:46,203 < INFO> Mac Address : 00:18:de:af:ea:7f
08.May.08 10:45:46,328 < INFO> Lightstreamer Server starting in Moderato edition
08.May.08 10:45:46,359 < WARN> JMX management features not available with the cu
rrent license
08.May.08 10:45:46,406 < INFO> Started HTML Adaptor for JMX on port 6666
08.May.08 10:45:46,453 < INFO> Started JMXMP Connector for JMX on port 9999
08.May.08 10:45:46,468 < WARN> No users defined for Internal Monitor.
08.May.08 10:45:46,468 < INFO> Loading Metadata Provider HaSTC
08.May.08 10:45:46,500 < INFO> Connecting...
--------
Here my port is open
-----------------
C:\Documents and Settings\TUONG KHA>netstat /a
Active Connections
Proto Local Address Foreign Address State
TCP tuongkha:http tuongkha:0 LISTENING
TCP tuongkha:epmap tuongkha:0 LISTENING
TCP tuongkha:https tuongkha:0 LISTENING
TCP tuongkha:microsoft-ds tuongkha:0 LISTENING
TCP tuongkha:912 tuongkha:0 LISTENING
TCP tuongkha:1034 tuongkha:0 LISTENING
TCP tuongkha:1110 tuongkha:0 LISTENING
TCP tuongkha:ms-sql-s tuongkha:0 LISTENING
TCP tuongkha:2628 tuongkha:0 LISTENING
TCP tuongkha:3389 tuongkha:0 LISTENING
TCP tuongkha:4464 tuongkha:0 LISTENING
TCP tuongkha:5051 tuongkha:0 LISTENING
TCP tuongkha:5101 tuongkha:0 LISTENING
TCP tuongkha:6666 tuongkha:0 LISTENING
TCP tuongkha:6669 tuongkha:0 LISTENING
TCP tuongkha:9999 tuongkha:0 LISTENING
TCP tuongkha:19780 tuongkha:0 LISTENING
TCP tuongkha:1044 tuongkha:0 LISTENING
TCP tuongkha:1110 localhost:5961 ESTABLISHED
TCP tuongkha:2628 localhost:7472 ESTABLISHED
TCP tuongkha:5961 localhost:1110 ESTABLISHED
TCP tuongkha:7130 localhost:1110 CLOSE_WAIT
TCP tuongkha:7472 localhost:2628 ESTABLISHED
TCP tuongkha:7508 localhost:1110 TIME_WAIT
TCP tuongkha:netbios-ssn tuongkha:0 LISTENING
TCP tuongkha:5101 haiyen.hcm.sbsc.vn:21315 ESTABLISHED
TCP tuongkha:5948 cs111.msg.sp1.yahoo.com:5050 ESTABLISHED
TCP tuongkha:5963 sip23.voice.re2.yahoo.com:https ESTABLISHED
TCP tuongkha:7133 192.168.24.250:9030 ESTABLISHED
TCP tuongkha:7477 192.168.24.250:9030 CLOSE_WAIT
TCP tuongkha:7483 mail.gls.com.vn:8080 LAST_ACK
TCP tuongkha:7510 mail.sbsc.com.vn:pop3 TIME_WAIT
TCP tuongkha:netbios-ssn tuongkha:0 LISTENING
TCP tuongkha:netbios-ssn tuongkha:0 LISTENING
UDP tuongkha:microsoft-ds *:*
UDP tuongkha:isakmp *:*
UDP tuongkha:ms-sql-m *:*
UDP tuongkha:3456 *:*
UDP tuongkha:4500 *:*
UDP tuongkha:5051 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:1106 *:*
UDP tuongkha:1743 *:*
UDP tuongkha:1900 *:*
UDP tuongkha:6013 *:*
UDP tuongkha:6852 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:netbios-ns *:*
UDP tuongkha:netbios-dgm *:*
UDP tuongkha:1900 *:*
UDP tuongkha:5973 *:*
UDP tuongkha:5974 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:netbios-ns *:*
UDP tuongkha:netbios-dgm *:*
UDP tuongkha:1900 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:netbios-ns *:*
UDP tuongkha:netbios-dgm *:*
UDP tuongkha:1900 *:*
-------
Here my "DotNetServer.log" ;
-------
2008-05-08 10:46:41,234 [1956] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server starting...
2008-05-08 10:46:41,328 [2800] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server starting...
2008-05-08 10:46:41,625 [1692] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server starting...
2008-05-08 10:46:41,953 [2448] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:46:42,109 [2448] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connected
2008-05-08 10:46:42,109 [2448] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server running
2008-05-08 10:46:42,984 [2800] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:46:42,984 [1956] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:46:44,671 [1692] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:46:45,687 [1692] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:46:52,984 [2800] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:46:53,000 [1956] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:46:54,031 [2800] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:46:54,031 [1956] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:46:55,687 [1692] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:46:56,656 [1692] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:04,031 [1956] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:04,031 [2800] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:05,203 [2800] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:05,203 [1956] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:06,656 [1692] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:07,609 [1692] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:15,203 [1956] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:16,156 [2800] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:17,609 [1692] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:18,578 [1692] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:26,171 [1956] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:26,171 [2800] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:27,125 [2800] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:28,578 [1692] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:29,546 [1692] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:37,125 [1956] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:38,093 [1956] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:38,093 [2800] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:39,546 [1692] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:40,515 [1692] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:48,093 [1956] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:49,062 [1956] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:49,062 [2800] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:50,515 [1692] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:51,468 [1692] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:47:59,062 [1956] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:47:59,062 [2800] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:48:00,125 [1956] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
2008-05-08 10:48:01,468 [1692] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 10:48:02,437 [1692] WARN Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connection failed, retrying in 10 seconds...
Dario Crivelli
According to netstat, port 6669 is listening.
And the netstat was issued after the Remote Server launch script was run, is it right?
I can't understand why no Remote Server could connect to the 6669 port and unfortunately there is no way to log connection details. However, now you can repeat the test by launching the proper Remote Servers manually.
Please try the following:
- Launch Lightstreamer Server
- check the Server log;
the line "Loading Metadata Provider HaSTC" should have been produced
- run "netstat /a"
port 6669 should be listening
- open a DOS prompt and run
"DotNetServer Lightstreamer.Adapters.Metadata.LiteralBasedProvider /host localhost /rrport 6669"
from the proper directory
- run "netstat /a"
ports 6667 and 6668 should be listening
- open a DOS prompt and run
"DotNetServer QuotesStreamer.HaSTC.Adapters.Data.StockListAdapter /host localhost /rrport 6667/notifport 6668"
from the proper directory
- check the Server log;
the line "Loading Metadata Provider HoSE" should have been produced
- run "netstat /a"
port 6663 should be listening
- open a DOS prompt and run
"DotNetServer Lightstreamer.Adapters.Metadata.LiteralBasedProvider /host localhost /rrport 6663"
from the proper directory
- run "netstat /a"
ports 6661 and 6662 should be listening
- open a DOS prompt and run
"DotNetServer QuotesStreamer.HoSE.Adapters.Data.StockListAdapter /host localhost /rrport 6661/notifport 6662"
from the proper directory
- check the Server log;
Server initialization should be completed
Is there any condition which is not met, which causes the prescription to fail?
tuongkha
Hi Dario,
I tried following your instruction.
Here my step and server log :
1. launch LS by run "Start_LS_as_application.bat"
2. server log :
--------
C:\Lightstreamer\bin\windows>call LS.bat run
Starting Lightstreamer Server...
Please check logs for detailed information.
08.May.08 22:41:04,265 < INFO> Starting MAC address check
08.May.08 22:41:04,296 < INFO> Found MAC address 00:50:56:c0:00:08
08.May.08 22:41:04,296 < INFO> Found MAC address 00:50:56:c0:00:01
08.May.08 22:41:04,296 < INFO> Found MAC address 00:0f:b0:cd:10:6b
08.May.08 22:41:04,296 < INFO> Found MAC address 00:18:de:af:ea:7f
08.May.08 22:41:04,296 < INFO> MAC address check successful
08.May.08 22:41:04,296 < INFO> License correctly bound with the following parame
ter(s):
08.May.08 22:41:04,296 < INFO> Client ID : EWmtleTmXioln3OLeXzCL
08.May.08 22:41:04,296 < INFO> Mac Address : 00:18:de:af:ea:7f
08.May.08 22:41:04,421 < INFO> Lightstreamer Server starting in Moderato edition
08.May.08 22:41:04,453 < WARN> JMX management features not available with the cu
rrent license
08.May.08 22:41:04,484 < INFO> Started HTML Adaptor for JMX on port 6666
08.May.08 22:41:04,515 < INFO> Started JMXMP Connector for JMX on port 9999
08.May.08 22:41:04,531 < WARN> No users defined for Internal Monitor.
08.May.08 22:41:04,546 < INFO> Loading Metadata Provider HaSTC
08.May.08 22:41:04,578 < INFO> Connecting...
--------
3. port 6669 is listening
--------
C:\Documents and Settings\TUONG KHA>netstat /a
Active Connections
Proto Local Address Foreign Address State
TCP tuongkha:http tuongkha:0 LISTENING
TCP tuongkha:epmap tuongkha:0 LISTENING
TCP tuongkha:https tuongkha:0 LISTENING
TCP tuongkha:microsoft-ds tuongkha:0 LISTENING
TCP tuongkha:912 tuongkha:0 LISTENING
TCP tuongkha:1029 tuongkha:0 LISTENING
TCP tuongkha:1110 tuongkha:0 LISTENING
TCP tuongkha:3389 tuongkha:0 LISTENING
TCP tuongkha:6666 tuongkha:0 LISTENING
TCP tuongkha:6669 tuongkha:0 LISTENING
TCP tuongkha:9999 tuongkha:0 LISTENING
TCP tuongkha:19780 tuongkha:0 LISTENING
TCP tuongkha:1031 tuongkha:0 LISTENING
TCP tuongkha:1041 localhost:1110 CLOSE_WAIT
TCP tuongkha:1050 localhost:1110 CLOSE_WAIT
TCP tuongkha:1053 localhost:1110 ESTABLISHED
TCP tuongkha:1110 localhost:1053 ESTABLISHED
TCP tuongkha:netbios-ssn tuongkha:0 LISTENING
TCP tuongkha:1055 65.55.192.61:http ESTABLISHED
TCP tuongkha:netbios-ssn tuongkha:0 LISTENING
TCP tuongkha:netbios-ssn tuongkha:0 LISTENING
UDP tuongkha:microsoft-ds *:*
UDP tuongkha:isakmp *:*
UDP tuongkha:3456 *:*
UDP tuongkha:4500 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:1039 *:*
UDP tuongkha:1044 *:*
UDP tuongkha:1900 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:netbios-ns *:*
UDP tuongkha:netbios-dgm *:*
UDP tuongkha:1900 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:netbios-ns *:*
UDP tuongkha:netbios-dgm *:*
UDP tuongkha:1900 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:netbios-ns *:*
UDP tuongkha:netbios-dgm *:*
UDP tuongkha:1900 *:*
-----------
4. Server log after i run "DotNetServer Lightstreamer.Adapters.Metadata.LiteralBasedProvider /host localhost /rrport 6669"
----------
C:\Lightstreamer\bin\windows>call LS.bat run
Starting Lightstreamer Server...
Please check logs for detailed information.
08.May.08 22:41:04,265 < INFO> Starting MAC address check
08.May.08 22:41:04,296 < INFO> Found MAC address 00:50:56:c0:00:08
08.May.08 22:41:04,296 < INFO> Found MAC address 00:50:56:c0:00:01
08.May.08 22:41:04,296 < INFO> Found MAC address 00:0f:b0:cd:10:6b
08.May.08 22:41:04,296 < INFO> Found MAC address 00:18:de:af:ea:7f
08.May.08 22:41:04,296 < INFO> MAC address check successful
08.May.08 22:41:04,296 < INFO> License correctly bound with the following parame
ter(s):
08.May.08 22:41:04,296 < INFO> Client ID : EWmtleTmXioln3OLeXzCL
08.May.08 22:41:04,296 < INFO> Mac Address : 00:18:de:af:ea:7f
08.May.08 22:41:04,421 < INFO> Lightstreamer Server starting in Moderato edition
08.May.08 22:41:04,453 < WARN> JMX management features not available with the cu
rrent license
08.May.08 22:41:04,484 < INFO> Started HTML Adaptor for JMX on port 6666
08.May.08 22:41:04,515 < INFO> Started JMXMP Connector for JMX on port 9999
08.May.08 22:41:04,531 < WARN> No users defined for Internal Monitor.
08.May.08 22:41:04,546 < INFO> Loading Metadata Provider HaSTC
08.May.08 22:41:04,578 < INFO> Connecting...
08.May.08 22:43:28,953 < INFO> Connected
08.May.08 22:43:28,953 < INFO> Loading Data Provider HaSTC
08.May.08 22:43:28,953 < INFO> Request sender '#1' starting...
08.May.08 22:43:28,968 < INFO> Reply receiver '#1' starting...
08.May.08 22:43:28,968 < INFO> Connecting...
-------
5. netstat /a, port 6667 + 6668 is opening.
-------
C:\Documents and Settings\TUONG KHA>netstat /a
Active Connections
Proto Local Address Foreign Address State
TCP tuongkha:http tuongkha:0 LISTENING
TCP tuongkha:epmap tuongkha:0 LISTENING
TCP tuongkha:https tuongkha:0 LISTENING
TCP tuongkha:microsoft-ds tuongkha:0 LISTENING
TCP tuongkha:912 tuongkha:0 LISTENING
TCP tuongkha:1029 tuongkha:0 LISTENING
TCP tuongkha:1110 tuongkha:0 LISTENING
TCP tuongkha:3389 tuongkha:0 LISTENING
TCP tuongkha:6666 tuongkha:0 LISTENING
TCP tuongkha:6667 tuongkha:0 LISTENING
TCP tuongkha:6668 tuongkha:0 LISTENING
TCP tuongkha:9999 tuongkha:0 LISTENING
TCP tuongkha:19780 tuongkha:0 LISTENING
TCP tuongkha:1031 tuongkha:0 LISTENING
TCP tuongkha:1041 localhost:1110 CLOSE_WAIT
TCP tuongkha:1050 localhost:1110 CLOSE_WAIT
TCP tuongkha:1053 localhost:1110 ESTABLISHED
TCP tuongkha:1110 localhost:1053 ESTABLISHED
TCP tuongkha:1528 localhost:6669 ESTABLISHED
TCP tuongkha:6669 localhost:1528 ESTABLISHED
TCP tuongkha:netbios-ssn tuongkha:0 LISTENING
TCP tuongkha:1055 65.55.192.61:http ESTABLISHED
TCP tuongkha:netbios-ssn tuongkha:0 LISTENING
TCP tuongkha:netbios-ssn tuongkha:0 LISTENING
UDP tuongkha:microsoft-ds *:*
UDP tuongkha:isakmp *:*
UDP tuongkha:3456 *:*
UDP tuongkha:4500 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:1039 *:*
UDP tuongkha:1044 *:*
UDP tuongkha:1900 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:netbios-ns *:*
UDP tuongkha:netbios-dgm *:*
UDP tuongkha:1900 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:netbios-ns *:*
UDP tuongkha:netbios-dgm *:*
UDP tuongkha:1900 *:*
UDP tuongkha:ntp *:*
UDP tuongkha:netbios-ns *:*
UDP tuongkha:netbios-dgm *:*
UDP tuongkha:1900 *:*
---------
6. run "DotNetServer QuotesStreamer.HaSTC.Adapters.Data.StockListAdapter /host localhost /rrport 6667 /notifport 6668" --> it has error.
--------
08.May.08 22:48:01,437 <ERROR> Adapters configuration error
java.lang.Exception: duplicated adapters id HaSTC
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.LS.main(LS.java)
08.May.08 22:48:01,437 <ERROR> Error while loading the Adapters
java.lang.Exception: duplicated adapters id HaSTC
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.LS.main(LS.java)
08.May.08 22:48:01,437 <FATAL> Adapters initialization failed
08.May.08 22:48:01,437 < INFO> Exiting.....
Press any key to continue . . .
--------
"DotNetServer.log"
--------
2008-05-08 22:57:30,546 [2816] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server starting...
2008-05-08 22:57:30,671 [2816] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 22:57:30,687 [2816] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connected
2008-05-08 22:57:30,703 [2816] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server running
2008-05-08 22:58:34,687 [3960] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server starting...
2008-05-08 22:58:35,093 [3960] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connecting...
2008-05-08 22:58:35,125 [3960] INFO Lightstreamer.DotNet.Server.NetworkedServerStarter [(null)] - Connected
2008-05-08 22:58:35,140 [3960] INFO Lightstreamer.DotNet.Server.ServerMain [(null)] - Lightstreamer .NET Adapter Server running
2008-05-08 22:58:37,765 [1832] ERROR Lightstreamer.DotNet.Server.DataProviderServer [(null)] - Caught exception: Exception caught while reading from the request stream: Unable to read data from the transport connection., trying to notify a failure...
Lightstreamer.DotNet.Server.RemotingException: Exception caught while reading from the request stream: Unable to read data from the transport connection. ---> System.IO.IOException: Unable to read data from the transport connection. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.StreamReader.ReadBuffer()
at System.IO.StreamReader.ReadLine()
at Lightstreamer.DotNet.Server.RequestReply.RequestReceiver.Run()
--- End of inner exception stack trace ---
2008-05-08 22:58:37,796 [1832] FATAL Lightstreamer.DotNet.Server.DataProviderServer [(null)] - Exception caught while reading/writing from/to streams: 'An existing connection was forcibly closed by the remote host', aborting...
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--------
so i can't continue step 7 to 12.
Dario Crivelli
The "duplicated adapters id HaSTC" error message suggests that your
HoSE\adapters.xml
file contains the
<adapters_conf id="HaSTC">
line, probably after some cloning operation.
May you please check?
tuongkha
Hi Dario,
That's right. I mistake in "HoSE\adapters.xml", it duplicated adapter_id. now it run.
Thanks!