Results 1 to 6 of 6
  1. #1

    Lightbulb https and java client

    I have a java LS client and HTML 5 Ls client, both of them are connecting to LS server.

    The LS server is located behind the load balancer, the LS server running under https protocol.

    The problem that the HTML5 connects easily to the LS server, however, the java client doesn't reach the LS server at all...


    What should I do in order to get the java client connected to the LS server.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    608
    Hi ManKeer,

    The APIs of the Web and Java client libraries are very similar, so there should be no substantial differences in the connect operations between the two client applications.
    Some preliminary checks that you could make are:
    - make sure that the license running on the server correctly enable both client libraries, this can be verified in the server log in the initialization phases or in the "License" tab of the monitoring dashboard;
    - if the server is behind a load balancer and you are using a Java client library below version 4.3.0 the default value for setEarlyWSOpenEnabled is different from the JavaScript lib; setting it to false could be critical in some scenarios.

    If you are still having problems we will need some more information and also logs.
    You should check that while the Java client is trying to connect the server log is not logging anything at all, and in this case enable client-side logging.

    Regards,
    Giuseppe

  3. #3
    Hi Giuseppe,

    I have used the
    setEarlyWSOpenEnabled two times, one with true and one with false, I have the client side logs for both case, however, the server side doesn't receive any connection request from the client.

    The logs are ready just let me know how can I send u the logs.

    Regards


  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    608
    Hi ManKeer,

    In order to provide the Java client logs you can contact us at support@lightstreamer.com

    Regards,
    Giuseppe

  5. #5
    Hi Giuseppe,

    I have sent an email to lightstreamer support, the email contains two attached files, one when
    setEarlyWSOpenEnabled = true, and one when setEarlyWSOpenEnabled = false.

    Regards

  6. #6
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    608
    Hi ManKeer,

    Thank you for the logs, we have checked them and first of all I want to clarify that the value for EarlyWSOpen seems completely irrelevant for the issue.
    Indeed from the logs it is evident that every time the client lib tries to open a connection with the server, in order to send the create_session request, it immediately receives the error "Couldn't get a socket, try again".
    So it would seem a connectivity problem between the device running the client and the Lightstreamer server. Please could you check by telnet or ping if the two machines can communicate? Maybe it's a DNS problem and the client can't resolve the host name?

    Regards,
    Giuseppe

 

 

Similar Threads

  1. HTML5 LS client Vs Java LS client
    By ManKeer in forum General
    Replies: 1
    Last Post: February 22nd, 2021, 09:28 AM
  2. Replies: 2
    Last Post: January 5th, 2012, 08:53 AM
  3. where to download Java SE Client jar file
    By joshi_s_p in forum Client SDKs
    Replies: 3
    Last Post: January 4th, 2012, 08:30 AM
  4. Replies: 1
    Last Post: May 21st, 2009, 09:41 AM
  5. Replies: 4
    Last Post: February 4th, 2009, 11:45 PM

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 12:45 PM.