Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2009
    Location
    coyote7000
    Posts
    2

    Question "Hello World" & Demos - Not data shown nor errors thrown

    I have followed the instructions for creating a .Net data adapter using C#.

    Everything seems to be working fine but I get no data shown in the WebClient page.

    Page output:
    loading...
    loading...



    Starting Lightstreamer Server...
    Please check logs for detailed information.
    01.Apr.09 11:48:52,438 < INFO> This is a trial version.
    01.Apr.09 11:48:53,483 < INFO> Lightstreamer Server starting in Vivace edition
    01.Apr.09 11:48:53,610 < INFO> Started HTML Adaptor for JMX on port 6666
    01.Apr.09 11:48:53,683 < INFO> Started JMXMP Connector for JMX on port 9999
    01.Apr.09 11:48:53,839 < INFO> data_provider element without name attribute; using DEFAULT as the de
    fault name
    01.Apr.09 11:48:53,841 < INFO> Loading Metadata Adapter DEMO
    01.Apr.09 11:48:53,857 < INFO> Loading Data Adapter DEMO.MONITOR
    01.Apr.09 11:48:53,857 < INFO> Loading Data Adapter DEMO.QUOTE_ADAPTER
    01.Apr.09 11:48:53,858 < INFO> Loading Data Adapter DEMO.PORTFOLIO_ADAPTER
    01.Apr.09 11:48:53,858 < INFO> Finished loading Data Adapter DEMO.MONITOR
    01.Apr.09 11:48:53,857 < INFO> Loading Data Adapter DEMO.CHAT_ROOM
    01.Apr.09 11:48:53,858 < INFO> Loading Metadata Adapter PROXY_HELLOWORLD
    01.Apr.09 11:48:53,858 < INFO> Loading Data Adapter DEMO.SIMPLE_MESSENGER
    01.Apr.09 11:48:53,858 < INFO> Loading Data Adapter PROXY_HELLOWORLD.DEFAULT
    01.Apr.09 11:48:53,991 < INFO> PortfolioDataAdapter ready
    01.Apr.09 11:48:53,992 < INFO> Finished loading Metadata Adapter PROXY_HELLOWORLD
    01.Apr.09 11:48:53,992 < INFO> Finished loading Data Adapter DEMO.PORTFOLIO_ADAPTER
    01.Apr.09 11:48:54,016 < INFO> Finished loading Data Adapter DEMO.QUOTE_ADAPTER
    01.Apr.09 11:48:54,020 < INFO> Connecting...
    01.Apr.09 11:48:54,021 < INFO> Waiting for a connection on port 6662...
    01.Apr.09 11:48:54,021 < INFO> Waiting for a connection on port 6661...
    01.Apr.09 11:48:54,032 < INFO> IMDataAdapter ready
    01.Apr.09 11:48:54,032 < INFO> MixedMetadataAdapter ready
    01.Apr.09 11:48:54,032 < INFO> Finished loading Data Adapter DEMO.SIMPLE_MESSENGER
    01.Apr.09 11:48:54,032 < INFO> ChatDataAdapter ready
    01.Apr.09 11:48:54,032 < INFO> Finished loading Metadata Adapter DEMO
    01.Apr.09 11:48:54,033 < INFO> Finished loading Data Adapter DEMO.CHAT_ROOM
    01.Apr.09 11:49:06,234 < INFO> Connected on port 6661
    01.Apr.09 11:49:06,235 < INFO> Connected on port 6662
    01.Apr.09 11:49:06,236 < INFO> Connected
    01.Apr.09 11:49:06,236 < INFO> Finished loading Data Adapter PROXY_HELLOWORLD.DEFAULT
    01.Apr.09 11:49:06,344 < INFO> Pump pool size set by default at 4
    01.Apr.09 11:49:06,388 < INFO> Notify receiver '#1' starting...
    01.Apr.09 11:49:06,445 < INFO> Request sender '#1' starting...
    01.Apr.09 11:49:06,446 < INFO> Reply receiver '#1' starting...
    01.Apr.09 11:49:06,447 < INFO> Events pool size set by default at 4
    01.Apr.09 11:49:06,458 < INFO> Lightstreamer Server 3.5 build 1428.4 starting...
    01.Apr.09 11:49:06,688 < INFO> Server "Lightstreamer HTTP Server" listening to *:8080 ...




    <div source="lightstreamer" table="helloTable" item="greetings" field="message">
    loading...</div>
    <div source="lightstreamer" table="helloTable" item="greetings" field="timestamp">
    loading...</div>
    </form>

    <script type="text/javascript" language="javascript">

    document.lightstreamerPage = new PushPage();

    // The web server host name is the one contained in the url by which you recall the pages.
    // Lightstreamer Server host name is the name you supply to "setLSHost".

    document.lightstreamerPage.context.setDomain("ligh tstreamer.localhost");

    document.lightstreamerPage.onEngineCreation = function(engine) {

    // put your configuration code here

    engine.connection.setAdapterName("PROXY_HELLOWORLD ");
    engine.changeStatus("STREAMING");
    }



    document.lightstreamerPage.bind();

    document.lightstreamerPage.createEngine("HelloWorl dApp", "LS", "SHARE_SESSION");

    //var group = ["greetings"];
    //var schema = ["message", "timestamp"]
    //var pushTable = new OverwriteTable(group, schema, "MERGE");

    var pushTable = new OverwriteTable(null, null, "MERGE");

    document.lightstreamerPage.addTable(pushTable, "helloTable");


    </script>


    What could be happening?

  2. #2
    Member
    Join Date
    Mar 2009
    Location
    coyote7000
    Posts
    2
    Got it.

    needed to assigned the LightStreamer host and port (which are different from those of the WebClient)

    engine.connection.setLSHost("lightstreamer.localho st");
    engine.connection.setLSPort("8080");

  3. #3
    Member
    Join Date
    Feb 2009
    Location
    Mumbai
    Posts
    2

    No data shown on front end and no errors

    HI,

    i am using SmartDataProvider
    there is no errors in server console, listener.smartupdate method is also invoking but data is not updating in front end screen what might be the reason
    even after adding the above two lines also it is not working

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Kishorekkk,

    Are yo referring to the "Hello World" for .NET Tutorial? Please follow its instructions literally and it will work.

 

 

Similar Threads

  1. Replies: 1
    Last Post: July 10th, 2012, 07:06 PM
  2. Replies: 3
    Last Post: February 19th, 2010, 12:14 AM
  3. "Hello World" Data Adapter [.NET]
    By Alessandro in forum Adapter SDKs
    Replies: 3
    Last Post: May 30th, 2008, 02:49 PM
  4. "Hello World" Data Adapter [Java]
    By Alessandro in forum Adapter SDKs
    Replies: 0
    Last Post: February 13th, 2008, 11:12 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 03:43 AM.