Results 1 to 10 of 21

Hybrid View

  1. #1
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Paolo,

    In the log there is no evidence of the create_request request incoming from the client.
    This means, unless you changed the log level for LightstreamerLogger.requests logger, that the client attempts to open the session towards a different endpoint than localhost:8080.

    I confirm that you should check the client page code and in particular:

    Code:
    var client = new LightstreamerClient(null,"PROXY_HELLOWORLD");
    Regards,
    Giuseppe

  2. #2
    Member
    Join Date
    May 2010
    Location
    Milano
    Posts
    14
    Quote Originally Posted by giuseppe.corti View Post
    Hi Paolo,

    In the log there is no evidence of the create_request request incoming from the client.
    This means, unless you changed the log level for LightstreamerLogger.requests logger, that the client attempts to open the session towards a different endpoint than localhost:8080.

    I confirm that you should check the client page code and in particular:

    Code:
    var client = new LightstreamerClient(null,"PROXY_HELLOWORLD");
    Regards,
    Giuseppe
    Thank you Giuseppe.

    There is no such line in my index.html file (I enclose a simplified version: it was taken from the old installation).
    I think that calls have changed with the new version.
    By the way: the old version refers to "lscommons.js" and "lspushpage.js": I think they should be files in the Lighstreamer\pages folder, but they are not there.
    Maybe you have a new skeleton for the html file, but I could not find it in your site.

    Thanks for your help!

    Paolo
    Attached Files Attached Files

  3. #3
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Paolo,

    You can find the new version of the HelloWorld client example on GitHub: https://github.com/Lightstreamer/Lig...ent-javascript.
    It relies on the new JavaScript Client library that implies changes in both the JS code and in the HTML definition of the cells.
    However I expect that should not be a dramatic work to update your page.

    Alternatively, it should be sufficient restore in the /pages folder of the new server the exact structure of the old page, with all the .js and .css files linked in the code.

    Regards,
    Giuseppe

  4. #4
    Member
    Join Date
    May 2010
    Location
    Milano
    Posts
    14
    Dear Giuseppe,

    unfortunately I cannot understand why my application does not work after many trials, and I ask if you can try it for me.
    In my attachment you may find my files.
    LSadapter.exe is my adapter, that needs some files to work: please make the folder c:\LSadapter and copy LSadapter.INI in it. The executable also requires DotNetAdapter.dll and .pdb and lod4net.dll in the same folder as the executable. I do not send them because they were taken from the standard Lighstreamer installation.
    The adapters folder contains my lightstreamer\adapters folder and the pages folder contains my test page in the lightstreamer\pages folder. This is a new version of the page, made from your last demo. I already sent you the old version of the page, that worked for years but not with Lightstreamer 6.0.3

    Thank you very much for your help!!

    Paolo
    Attached Files Attached Files

  5. #5
    Member
    Join Date
    May 2010
    Location
    Milano
    Posts
    14
    I wrote lod4net.dll, obviously it is log4net.dll...

  6. #6
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Paolo,

    I confirm that I was able to run succesfuly your page with my local 6.0.3 installation.
    The only step performed, in addition to those listed in your post, is to copy the file of the JavaScript library, lightstreamer.js, in the same folder as the indexN.html (lightstreamer\pages).
    Then from my browser open: http://localhost:8080/indexN.html

    Regards,
    Giuseppe

  7. #7
    Member
    Join Date
    May 2010
    Location
    Milano
    Posts
    14
    Thank you Giuseppe, NOW IT WORKS!
    Switching to 6.0.3, we would not like to adapt our existing Internet pages with the new sintax, it is preferable to leave the ones that worked with the previous version of Lighstreamer. I see that the Javascript code in the pages uses: LScommons.js, LSpushpage.js and misc.js. Should I copy these files to the same folder as the HTML pages? These files are not present in the distribution of Lighstreamer 6.0.3, should I take them from an older distribution?

    Thank you! Paolo

  8. #8
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Paolo,

    I can confirm that the files: LScommons.js, LSpushpage.js, and misc.js are not distributed since the new JavaScript Client library does not need them anymore (only the lightstreamer.js is needed).
    And so you should pick them up from your original project.

    Please also note that the proper folder where to copy the files depends upon how the script inclusion is declared in your HTML; referring to your original page:

    HTML Code:
      <script language="JavaScript" src="LS/lscommons.js"></script>
      <script language="JavaScript" src="LS/lspushpage.js"></script>
      
      <script src="../commons/custom/misc.js" type="text/javascript"></script>

    The files lscommons and lspushpage are expected in a subfolder LS while the misc file in the relative path "../commons/custom/".

    Regards,
    Giuseppe

 

 

Similar Threads

  1. Replies: 4
    Last Post: April 8th, 2015, 02:55 PM
  2. Lighstreamer connection exception [iOS]
    By DrAma in forum Client SDKs
    Replies: 8
    Last Post: December 11th, 2014, 12:23 PM
  3. Replies: 13
    Last Post: November 27th, 2012, 09:14 AM
  4. Lighstreamer stress testing
    By Andrea in forum Adapter SDKs
    Replies: 3
    Last Post: April 30th, 2012, 04:39 PM
  5. Pull data from txt file to lighstreamer (NEWBIE)
    By forexinvestor in forum Adapter SDKs
    Replies: 1
    Last Post: December 23rd, 2008, 08:55 AM

Tags for this Thread

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:53 PM.