Results 1 to 10 of 15

Hybrid View

  1. #1
    Senior Member
    Join Date
    Oct 2007
    Location
    HoChiMinh
    Posts
    69
    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.

  2. #2
    Member
    Join Date
    Nov 2007
    Location
    VN
    Posts
    12

    Talking 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&#244;ng chạy dc nữa th&#236; botay+bochan.all
    chậy dc th&#236; nhớ hậu tạ !!!!

  3. #3
    Senior Member
    Join Date
    Oct 2007
    Location
    HoChiMinh
    Posts
    69
    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 ...

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    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.

  5. #5
    Senior Member
    Join Date
    Oct 2007
    Location
    HoChiMinh
    Posts
    69
    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.m etadata.NetworkedMetadataProvider</adapter_class>
    <param name="request_reply_port">6663</param>

    </metadata_provider>

    <data_provider>

    <adapter_class>com.lightstreamer.adapters.remote.d ata.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.m etadata.NetworkedMetadataProvider</adapter_class>
    <param name="request_reply_port">6663</param>

    </metadata_provider>

    <data_provider>

    <adapter_class>com.lightstreamer.adapters.remote.d ata.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.StockListAdapte r /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?

  6. #6
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    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


    HaSTC\adapters.xml


    DotNetStart.bat
    Code:
    ...
    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

  7. #7
    Senior Member
    Join Date
    Oct 2007
    Location
    HoChiMinh
    Posts
    69
    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.Socket Transport.connect(S
    ocketTransport.java:62)
    at com.lightstreamer.adapters.remote.metadata.Network edMetadataProvider.
    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.MetadataProv iderException: Exception caugh
    t while trying to connect: Address already in use: JVM_Bind
    at com.lightstreamer.adapters.remote.metadata.Network edMetadataProvider.
    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.MetadataProv iderException: Exception caugh
    t while trying to connect: Address already in use: JVM_Bind
    at com.lightstreamer.adapters.remote.metadata.Network edMetadataProvider.
    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.m etadata.NetworkedMetadataProvider</adapter_class>
    <param name="request_reply_port">6669</param>
    </metadata_provider>
    <data_provider>
    <adapter_class>com.lightstreamer.adapters.remote.d ata.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...

 

 

Similar Threads

  1. Replies: 3
    Last Post: November 14th, 2011, 09:33 AM
  2. Replies: 1
    Last Post: January 31st, 2011, 07:47 AM
  3. Replies: 3
    Last Post: September 29th, 2009, 08:54 AM
  4. Replies: 1
    Last Post: November 6th, 2008, 08:44 AM
  5. Replies: 2
    Last Post: March 26th, 2008, 09:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 05:50 AM.