Results 1 to 3 of 3
  1. #1

    Exclamation No Answer from Server

    I am trying to test LLTT client with HTTPS connection, but i am getting following exception. Pls help..

    07-03-13 18:56:44,806|DEBUG|Session creation 1 failed
    com.lightstreamer.ls_client.PushConnException: java.io.IOException: No answer fr
    om Server
    at com.lightstreamer.ls_client.HttpProvider.connectAn dGetAnswer(HttpProv
    ider.java:275)
    at com.lightstreamer.ls_client.HttpProvider.doPost(Ht tpProvider.java:219
    )
    at com.lightstreamer.ls_client.PushServerTranslator.c allSession(PushServ
    erTranslator.java:91)
    at com.lightstreamer.ls_client.PushServerProxy.connec tForSession(PushSer
    verProxy.java:112)
    at com.lightstreamer.ls_client.ServerManager.connect( ServerManager.java:
    101)
    at com.lightstreamer.ls_client.LSClient.openConnectio n(LSClient.java:168
    )
    at com.lightstreamer.load_test.client.SessionsHandler .startSession(Sessi
    onsHandler.java:178)
    at com.lightstreamer.load_test.client.SessionsHandler .access$7(SessionsH
    andler.java:168)
    at com.lightstreamer.load_test.client.SessionsHandler $2.run(SessionsHand
    ler.java:130)
    at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:47
    1)
    at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.jav a:166)
    at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.
    access$201(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.
    run(ScheduledThreadPoolExecutor.java:292)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.
    java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor
    .java:603)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: java.io.IOException: No answer from Server
    at com.lightstreamer.ls_client.async.MyAsyncConnectio n.getAsyncInputStre
    am(MyAsyncConnection.java:197)
    at com.lightstreamer.ls_client.MyAsyncConnectionProxy .getInputStream(MyA
    syncConnectionProxy.java:41)
    at com.lightstreamer.ls_client.HttpProvider.connectAn dGetAnswer(HttpProv
    ider.java:268)
    ... 16 more

  2. #2
    I also see this error in the logs..

    ERROR|ghtstreamerLogger.connections.ssl|LS/SSL HANDSHAKE SELECTOR 1|Handshake error on Lightstreamer HTTPS Server: Unrecognized SSL message, plaintext connection? on .....

  3. #3
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    608
    Hi greattvs,

    Please note that the LLTT client simulator was not originally designed to work with the HTTPS protocol.

    However, if you want to test in HTTPS with the LLTT client you should set the trustStore in the JVM through the following arguments:
    -Djavax.net.ssl.trustStore=..\..\conf\<my_keystore>
    -Djavax.net.ssl.trustStorePassword=<my_password>


    Furthermore, you should remove or comment this line:

    configureAsyncIO(fullConf);


    in main method of the Client.java class.

    Please note that as a result of this change, the LLTT client simulator might lose in effectiveness with regard to the scalability on the number of sessions for each client.
    This is because the optimization specifically concerns the management of threads listening on sockets connected to the server with the possibility to use the same thread for all open sessions. Without it, the client creates a new thread to listen on socket for each open session.

    Anyway, we plan to add in the next version of LLTT the HTTPS support without this trick.

 

 

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 06:14 AM.