-
March 19th, 2008, 10:59 AM
#1
Error : Caused by: com.lightstreamer.c.f: Requested Adapters
Hi Dario,
I have 2 adapter :
1. QuotesStreamer.HaSTC.Adapters.Data.StockListAdapte r
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.StockListAdapt er" 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.StockListAdapte r /host localhost /rrport 6661 /notifport 6662
start "LiteralBasedProvider" /MIN DotNetServer Lightstreamer.Adapters.Metadata.LiteralBasedProvid er /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&L S_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_wi n_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%20it em13%20item14%20item15%20item1
6%20item17%20item18%20item19%20item20%20item21%20i tem22%20item23%20item24%20item
25%20item26%20item27%20item28%20item29%20item30%20 item31%20item32%20item33%20ite
m34%20item35%20item36%20item37%20item38%20item39%2 0item40%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%20item6 6%20item67%20item68%20item69%2
0item70%20item71%20item72%20item73%20item74%20item 75%20item76%20item77%20item78%
20item79%20item80%20item81%20item82%20item83%20ite m84%20item85%20item86%20item87
%20item88%20item89%20item90%20item91%20item92%20it em93%20item94%20item95%20item9
6%20item97%20item98%20item99%20item100%20item101%2 0item102%20item103%20item104%2
0item105%20item106%20item107%20item108%20item109%2 0item110%20item111%20item112%2
0item113%20item114%20item115%20item116%20item117%2 0item118%20item119%20item120%2
0item121%20item122%20item123%20item124%20item125%2 0item126%20item127%20&LS_schem
a1=last_price%20time%20_change%20bid1vol%20bid1%20 ask1%20ask1vol%20min%20max%20r
ef_price%20open_price%20stock_symbol%20ceiling%20f loor%20bid2vol%20bid2%20bid3vo
l%20bid3%20ask2%20ask2vol%20ask3%20ask3vol%20lastV ol%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&L S_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?
-
March 20th, 2008, 08:28 AM
#2
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.
-
March 21st, 2008, 06:47 AM
#3
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.
-
March 25th, 2008, 04:09 AM
#4
solution
ông chưa hiểu vấn đề rồi
1 launcher with 1 dot net remote data adapter ONLY
maybe you still use 1 launcher for 2 (HA & HO)
server:
1 launcher HOSE => create data adapter (must be custom) & meta data adapter (can use original)
1 launcher HASTC => create data adapter (must be custom) & meta data adapter (can use original)
C:\...\adapters\HOSE\adapters.xml (<adapters_conf id="HOSE">)
C:\...\adapters\HASTC\adapters.xml (<adapters_conf id="HASTC">)
client:
eng.connection.setAdapterName("HOSE");
eng.connection.setAdapterName("HASTC");
không chạy dc nữa thì botay+bochan.all
chậy dc thì nhớ hậu tạ !!!!
-
April 24th, 2008, 08:53 AM
#5
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 ...
-
April 28th, 2008, 01:13 PM
#6
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.
Similar Threads
-
By vnipt in forum General
Replies: 3
Last Post: November 14th, 2011, 09:33 AM
-
By msgiribabu in forum Adapter SDKs
Replies: 1
Last Post: January 31st, 2011, 07:47 AM
-
By mnenchev in forum General
Replies: 3
Last Post: September 29th, 2009, 08:54 AM
-
By jaguarg in forum Client SDKs
Replies: 1
Last Post: November 6th, 2008, 08:44 AM
-
By chinghunglai in forum General
Replies: 2
Last Post: March 26th, 2008, 09:50 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 06:38 PM.
Bookmarks