Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1

    helloworld sample not working

    I tried to do the helloworld sample and after changing the port default to an open one and going through the adapter change for .net, all I get when running the page is 'loading'. Is there something else I am missing here?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    If there is any step missing in the Remote Adapter configuration, the Server startup may block.
    As a first check, please make sure that the Server has completed its startup, by looking for the "Server ... listening to ..." message in the Server log.
    We can help you analyze the log, if needed.

  3. #3
    Quote Originally Posted by DarioCrivelli View Post
    If there is any step missing in the Remote Adapter configuration, the Server startup may block.
    As a first check, please make sure that the Server has completed its startup, by looking for the "Server ... listening to ..." message in the Server log.
    We can help you analyze the log, if needed.

    Code:
    C:\Lightstreamer_Moderato_5_0_Colosseo_20120803\Lightstreamer\bin\windows>call L
    S.bat run
    Java environment:
    JAVA_HOME = C:\Program Files\Java\jre7
    JAVA_OPTS = -server
    ECHO is off.
    Lightstreamer Server directory:
    LS_HOME = C:\Lightstreamer_Moderato_5_0_Colosseo_20120803\Lightstreamer
    ECHO is off.
    Starting Lightstreamer Server...
    Please check logs for detailed information.
    10.Sep.12 13:33:07,969 < INFO> Lightstreamer Server 5.0 build 1576
    10.Sep.12 13:33:08,170 < INFO> Lightstreamer Server starting in Moderato edition
    10.Sep.12 13:33:08,397 < WARN> Only minimal JMX management support is available
    with the current license
    10.Sep.12 13:33:08,419 < WARN> No users defined for RMI Adaptor. Not started.
    10.Sep.12 13:33:08,431 < INFO> SERVER pool size set by default at 10
    10.Sep.12 13:33:08,464 < WARN> No users defined for Internal Monitor.
    10.Sep.12 13:33:08,558 < INFO> data_provider element without name attribute; usi
    ng DEFAULT as the default name
    10.Sep.12 13:33:08,560 < INFO> Loading Data Adapter DEMO.MONITOR
    10.Sep.12 13:33:08,561 < INFO> Loading Data Adapter DEMO.QUOTE_ADAPTER
    10.Sep.12 13:33:08,560 < INFO> Loading Metadata Adapter DEMO
    10.Sep.12 13:33:08,563 < INFO> Finished loading Data Adapter DEMO.MONITOR
    10.Sep.12 13:33:08,564 < INFO> Loading Metadata Adapter PROXY_HELLOWORLD
    10.Sep.12 13:33:08,563 < INFO> Loading Data Adapter DEMO.PORTFOLIO_ADAPTER
    10.Sep.12 13:33:08,566 < INFO> Loading Data Adapter DEMO.CHAT_ROOM
    10.Sep.12 13:33:08,568 < INFO> Loading Data Adapter PROXY_HELLOWORLD.DEFAULT
    10.Sep.12 13:33:08,567 < INFO> Loading Data Adapter DEMO.SIMPLE_MESSENGER
    10.Sep.12 13:33:08,791 < INFO> Finished loading Data Adapter PROXY_HELLOWORLD.DE
    FAULT
    10.Sep.12 13:33:08,820 < INFO> Loading inner Proxy Data Adapter
    10.Sep.12 13:33:08,904 < INFO> Finished loading Metadata Adapter PROXY_HELLOWORL
    D
    10.Sep.12 13:33:08,919 < INFO> Connecting...
    10.Sep.12 13:33:09,055 < INFO> Waiting for a connection on port 6662...
    10.Sep.12 13:33:09,058 < INFO> Waiting for a connection on port 6661...
    10.Sep.12 13:33:09,097 < INFO> StockQuotesDataAdapter ready.
    10.Sep.12 13:33:09,101 < INFO> Finished loading Data Adapter DEMO.QUOTE_ADAPTER
    10.Sep.12 13:33:09,089 < INFO> PortfolioDataAdapter ready
    10.Sep.12 13:33:09,103 < INFO> Finished loading Data Adapter DEMO.PORTFOLIO_ADAP
    TER
    10.Sep.12 13:33:09,084 < INFO> IMDataAdapter ready
    10.Sep.12 13:33:09,105 < INFO> Finished loading Data Adapter DEMO.SIMPLE_MESSENG
    ER
    10.Sep.12 13:33:09,084 < INFO> MixedMetadataAdapter ready
    10.Sep.12 13:33:09,107 < INFO> Finished loading Metadata Adapter DEMO
    10.Sep.12 13:33:09,100 < INFO> ChatDataAdapter ready
    10.Sep.12 13:33:09,109 < INFO> Finished loading Data Adapter DEMO.CHAT_ROOM
    10.Sep.12 13:33:09,117 < INFO> Selector pool size set by default at 2
    10.Sep.12 13:33:09,119 < INFO> Selector maximum load set by default at 1000
    10.Sep.12 13:33:09,222 < INFO> Created selector thread: NIO TLS/SSL HANDSHAKE SE
    LECTOR 1
    10.Sep.12 13:33:09,228 < INFO> Created selector thread: NIO TLS/SSL HANDSHAKE SE
    LECTOR 2
    10.Sep.12 13:33:09,238 < INFO> Created selector thread: NIO TLS/SSL HANDSHAKE SE
    LECTOR 1
    10.Sep.12 13:33:09,244 < INFO> Created selector thread: NIO TLS/SSL HANDSHAKE SE
    LECTOR 2
    10.Sep.12 13:33:09,255 < INFO> Created selector thread: NIO WRITE SELECTOR 1
    10.Sep.12 13:33:09,261 < INFO> Created selector thread: NIO WRITE SELECTOR 2
    10.Sep.12 13:33:09,270 < INFO> Created selector thread: NIO READ SELECTOR 1
    10.Sep.12 13:33:09,275 < INFO> Created selector thread: NIO READ SELECTOR 2
    10.Sep.12 13:33:09,281 < INFO> Created selector thread: NIO CHECK SELECTOR 1
    10.Sep.12 13:33:09,286 < INFO> Created selector thread: NIO CHECK SELECTOR 2
    10.Sep.12 13:33:09,292 < INFO> Created selector thread: NIO WRITE SELECTOR 1
    10.Sep.12 13:33:09,298 < INFO> Created selector thread: NIO WRITE SELECTOR 2
    10.Sep.12 13:33:09,303 < INFO> Created selector thread: NIO READ SELECTOR 1
    10.Sep.12 13:33:09,308 < INFO> Created selector thread: NIO READ SELECTOR 2
    10.Sep.12 13:33:09,314 < INFO> Created selector thread: NIO CHECK SELECTOR 1
    10.Sep.12 13:33:09,320 < INFO> Created selector thread: NIO CHECK SELECTOR 2
    10.Sep.12 13:33:09,394 < INFO> Events pool size set by default at 2
    10.Sep.12 13:33:09,416 < INFO> Pump pool size set by default at 2
    10.Sep.12 13:33:09,554 < INFO> Lightstreamer on Java Virtual Machine: Oracle Cor
    poration, Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, 1.7.0_03-b05 on Windows 7
    10.Sep.12 13:33:09,555 < INFO> Lightstreamer Server 5.0 build 1576 starting...
    10.Sep.12 13:33:09,577 < INFO> Server "Lightstreamer HTTP Server" listening to *
    :8167 ...
    Thank you for your response. I checked the logfile and verified that the Server is running...
    I used the following tutorial http://www.lightstreamer.com/docs/ar...sseo/index.htm
    and created the VB data Adapter.



    Click image for larger version. 

Name:	image78.jpg 
Views:	749 
Size:	47.7 KB 
ID:	101

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    Sorry, now I realize that I was not correct in my last post.
    Since the configuration in adapters.xml specifies that the Proxy Adapter to be mounted on the Server is the "robust" version (i.e. the RobustNetworkedDataProvider), the unavailability of the remote part does not prevent the Server startup from completing.
    However, until the connection occurs, the client cannot get any data.

    In fact, the log shows that the Server has started, but it is still waiting for connections on ports 6661 and 6662 to be established.
    Beside the Server, you should have launched the Remote Adapter process, through the "adapter_vb.exe“ program you have built.
    May you please confirm that? What do you see in the process console? Perhaps the connections are prevented by something in your environment.
    When the connections are established, you will see "Connected on port ..." messages in the Server log.

  5. #5
    Thanks for your response. I checked to make sure the Server is up and running and it is:

    Code:
    C:\Lightstreamer_Moderato_5_0_Colosseo_20120803\Lightstreamer\bin\windows>call L
    S.bat run
    Java environment:
    JAVA_HOME = C:\Program Files\Java\jre7
    JAVA_OPTS = -server
    ECHO is off.
    Lightstreamer Server directory:
    LS_HOME = C:\Lightstreamer_Moderato_5_0_Colosseo_20120803\Lightstreamer
    ECHO is off.
    Starting Lightstreamer Server...
    Please check logs for detailed information.
    11.Sep.12 09:59:22,582 < INFO> Lightstreamer Server 5.0 build 1576
    11.Sep.12 09:59:22,653 < INFO> Lightstreamer Server starting in Moderato edition
    11.Sep.12 09:59:22,746 < WARN> Only minimal JMX management support is available
    with the current license
    11.Sep.12 09:59:22,756 < WARN> No users defined for RMI Adaptor. Not started.
    11.Sep.12 09:59:22,765 < INFO> SERVER pool size set by default at 10
    11.Sep.12 09:59:22,808 < WARN> No users defined for Internal Monitor.
    11.Sep.12 09:59:22,884 < INFO> Loading Metadata Adapter DEMO
    11.Sep.12 09:59:22,888 < INFO> Loading Data Adapter DEMO.QUOTE_ADAPTER
    11.Sep.12 09:59:22,889 < INFO> Loading Data Adapter DEMO.PORTFOLIO_ADAPTER
    11.Sep.12 09:59:22,894 < INFO> Loading Data Adapter DEMO.MONITOR
    11.Sep.12 09:59:22,895 < INFO> Loading Data Adapter DEMO.CHAT_ROOM
    11.Sep.12 09:59:22,897 < INFO> Loading Data Adapter DEMO.SIMPLE_MESSENGER
    11.Sep.12 09:59:22,946 < INFO> Finished loading Data Adapter DEMO.MONITOR
    11.Sep.12 09:59:23,143 < INFO> ChatDataAdapter ready
    11.Sep.12 09:59:23,145 < INFO> Finished loading Data Adapter DEMO.CHAT_ROOM
    11.Sep.12 09:59:23,147 < INFO> IMDataAdapter ready
    11.Sep.12 09:59:23,148 < INFO> Finished loading Data Adapter DEMO.SIMPLE_MESSENG
    ER
    11.Sep.12 09:59:23,158 < INFO> StockQuotesDataAdapter ready.
    11.Sep.12 09:59:23,160 < INFO> Finished loading Data Adapter DEMO.QUOTE_ADAPTER
    11.Sep.12 09:59:23,143 < INFO> PortfolioDataAdapter ready
    11.Sep.12 09:59:23,162 < INFO> Finished loading Data Adapter DEMO.PORTFOLIO_ADAP
    TER
    11.Sep.12 09:59:23,159 < INFO> MixedMetadataAdapter ready
    11.Sep.12 09:59:23,165 < INFO> Finished loading Metadata Adapter DEMO
    11.Sep.12 09:59:23,175 < INFO> Selector pool size set by default at 2
    11.Sep.12 09:59:23,177 < INFO> Selector maximum load set by default at 1000
    11.Sep.12 09:59:23,230 < INFO> Created selector thread: NIO TLS/SSL HANDSHAKE SE
    LECTOR 1
    11.Sep.12 09:59:23,239 < INFO> Created selector thread: NIO TLS/SSL HANDSHAKE SE
    LECTOR 2
    11.Sep.12 09:59:23,252 < INFO> Created selector thread: NIO TLS/SSL HANDSHAKE SE
    LECTOR 1
    11.Sep.12 09:59:23,259 < INFO> Created selector thread: NIO TLS/SSL HANDSHAKE SE
    LECTOR 2
    11.Sep.12 09:59:23,273 < INFO> Created selector thread: NIO WRITE SELECTOR 1
    11.Sep.12 09:59:23,278 < INFO> Created selector thread: NIO WRITE SELECTOR 2
    11.Sep.12 09:59:23,292 < INFO> Created selector thread: NIO READ SELECTOR 1
    11.Sep.12 09:59:23,300 < INFO> Created selector thread: NIO READ SELECTOR 2
    11.Sep.12 09:59:23,309 < INFO> Created selector thread: NIO CHECK SELECTOR 1
    11.Sep.12 09:59:23,316 < INFO> Created selector thread: NIO CHECK SELECTOR 2
    11.Sep.12 09:59:23,325 < INFO> Created selector thread: NIO WRITE SELECTOR 1
    11.Sep.12 09:59:23,332 < INFO> Created selector thread: NIO WRITE SELECTOR 2
    11.Sep.12 09:59:23,342 < INFO> Created selector thread: NIO READ SELECTOR 1
    11.Sep.12 09:59:23,349 < INFO> Created selector thread: NIO READ SELECTOR 2
    11.Sep.12 09:59:23,358 < INFO> Created selector thread: NIO CHECK SELECTOR 1
    11.Sep.12 09:59:23,364 < INFO> Created selector thread: NIO CHECK SELECTOR 2
    11.Sep.12 09:59:23,444 < INFO> Events pool size set by default at 2
    11.Sep.12 09:59:23,462 < INFO> Pump pool size set by default at 2
    11.Sep.12 09:59:23,488 < INFO> Lightstreamer on Java Virtual Machine: Oracle Cor
    poration, Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, 1.7.0_03-b05 on Windows 7
    11.Sep.12 09:59:23,491 < INFO> Lightstreamer Server 5.0 build 1576 starting...
    11.Sep.12 09:59:23,516 < INFO> Server "Lightstreamer HTTP Server" listening to *
    :8167 ...
    When I tried loading it through firefox, I get the following error:

    Statuswidget not defined.
    Last edited by jdepp; September 11th, 2012 at 04:14 PM.

  6. #6
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    The log shown is no longer related with the .NET Adapter tutorial, as it does no longer mount the PROXY_HELLOWORLD Adapter Set. I suppose it is the one related to the basic tutorial.
    In order to avoid confusion:
    1. The Server configured for the .NET tutorial showed a communication problem with the "adapter_vb.exe“ program you had built; this is indicated by missing "Connected on port 6661" and "Connected on port 6662" lines in the Server log.
      To analyze the issue, you should relaunch that configuration, then launch "adapter_vb.exe“ and see if there is any startup problem.
    2. The Server configured for the basic tutorial starts correctly, but now you see errors in the client page.
      As a first check, please ensure that you have written "StatusWidget" in the correct way, as the reported error message contains "Statuswidget", with a small "w".
      The "StatusWidget" is only cited as an optional extension to the client code, at the end of the "Creating the front-end" paragraph; can you confirm that you have tried this extension?
    3. You are writing on the ".NET Client API" forum, but I suppose it is a mistake, because you seem to be interested in trying a .NET Data Adapter. Can you confirm that? [NOW MOVED]

  7. #7
    Quote Originally Posted by DarioCrivelli View Post
    The log shown is no longer related with the .NET Adapter tutorial, as it does no longer mount the PROXY_HELLOWORLD Adapter Set. I suppose it is the one related to the basic tutorial.
    In order to avoid confusion:
    1. The Server configured for the .NET tutorial showed a communication problem with the "adapter_vb.exe“ program you had built; this is indicated by missing "Connected on port 6661" and "Connected on port 6662" lines in the Server log.
      To analyze the issue, you should relaunch that configuration, then launch "adapter_vb.exe“ and see if there is any startup problem.
    2. The Server configured for the basic tutorial starts correctly, but now you see errors in the client page.
      As a first check, please ensure that you have written "StatusWidget" in the correct way, as the reported error message contains "Statuswidget", with a small "w".
      The "StatusWidget" is only cited as an optional extension to the client code, at the end of the "Creating the front-end" paragraph; can you confirm that you have tried this extension?
    3. You are writing on the ".NET Client API" forum, but I suppose it is a mistake, because you seem to be interested in trying a .NET Data Adapter. Can you confirm that?
    Yes I am interested in the .NET Data Adapter. But I am also just trying to get something to work that I could use to start a project that is very similar to the dojo demo you have but since I am a .NET programmer, I need to learn to be able to understand the dojo demo. I would like to simulate the same thing but have data/stats pushed from a sql server database to the lightstreamer server and shown in a dojo client interface. Am I on the right track here? In fact I am willing to learn strictly through javascript as long as I am able to use dojo and get the realtime data from my sql server database and pushed through to interface through lightstreamer
    Last edited by jdepp; September 11th, 2012 at 08:03 PM.

  8. #8
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    Your projects consists in various parts, quite independent from one another.
    With respect to a basic javascript page using Lightstreamer, you have to:
    1. Extend the page by using Dojo and integrating the Lightstreamer Client Library into Dojo.
    2. Setup a Remote Data Adapter written in .NET and configure the Server for using this Data Adapter.
    3. Write your custom implementation of the Remote Data Adapter so that it gets data from your database.


    We provide examples and instructions for all these steps; in particular:
    1. As said, A demo of a front-end based on Dojo is available.
      Moreover, a full integration of Lightstreamer in Dojo, in the form of a Lightstreamer-backed Dojo-store, is about to be released;
      you may choose to wait for a few weeks in order to take advantage of a simpler tool.
    2. In addition to the aforementioned HelloWorld tutorial, examples of Remote Adapters for the StockList Demo are available in the sdk_adapter_dotnet folder of the distribution package.
    3. An example of a Data Adapter which gets its data from an underlying database is shown in a forum thread.
      Unfortunately, the example is in java; but it clarifies the rationale of the approach.


    So, you are on the right track.
    Unfortunately, you seemed to encounter various issues preventing your tests from working.
    Are you still struggling with those issues? We apologize for anything misleading you may have found in our documentation, but now we can only try to help you fixing the issues, starting with the suggestions included in my last post.

  9. #9
    Quote Originally Posted by DarioCrivelli View Post
    Your projects consists in various parts, quite independent from one another.
    With respect to a basic javascript page using Lightstreamer, you have to:
    1. Extend the page by using Dojo and integrating the Lightstreamer Client Library into Dojo.
    2. Setup a Remote Data Adapter written in .NET and configure the Server for using this Data Adapter.
    3. Write your custom implementation of the Remote Data Adapter so that it gets data from your database.


    We provide examples and instructions for all these steps; in particular:
    1. As said, A demo of a front-end based on Dojo is available.
      Moreover, a full integration of Lightstreamer in Dojo, in the form of a Lightstreamer-backed Dojo-store, is about to be released;
      you may choose to wait for a few weeks in order to take advantage of a simpler tool.
    2. In addition to the aforementioned HelloWorld tutorial, examples of Remote Adapters for the StockList Demo are available in the sdk_adapter_dotnet folder of the distribution package.
    3. An example of a Data Adapter which gets its data from an underlying database is shown in a forum thread.
      Unfortunately, the example is in java; but it clarifies the rationale of the approach.


    So, you are on the right track.
    Unfortunately, you seemed to encounter various issues preventing your tests from working.
    Are you still struggling with those issues? We apologize for anything misleading you may have found in our documentation, but now we can only try to help you fixing the issues, starting with the suggestions included in my last post.
    Thank you. I will take your suggestions and work on each part and post back when I have issues. Hats off to you guys for an exceptional service.

  10. #10
    Thank you. I will take your suggestions and work on each section; posting back if I have issues.

 

 

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 07:52 PM.