greattvs
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.connectAndGetAnswer(HttpProv
ider.java:275)
at com.lightstreamer.ls_client.HttpProvider.doPost(HttpProvider.java:219
)
at com.lightstreamer.ls_client.PushServerTranslator.callSession(PushServ
erTranslator.java:91)
at com.lightstreamer.ls_client.PushServerProxy.connectForSession(PushSer
verProxy.java:112)
at com.lightstreamer.ls_client.ServerManager.connect(ServerManager.java:
101)
at com.lightstreamer.ls_client.LSClient.openConnection(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.call(Executors.java:47
1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
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.MyAsyncConnection.getAsyncInputStre
am(MyAsyncConnection.java:197)
at com.lightstreamer.ls_client.MyAsyncConnectionProxy.getInputStream(MyA
syncConnectionProxy.java:41)
at com.lightstreamer.ls_client.HttpProvider.connectAndGetAnswer(HttpProv
ider.java:268)
... 16 more
greattvs
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 .....
Giuseppe Corti
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.