Originally Posted by
giuseppe.corti
Hi ManKeer,
Thank you for the server log.
Your considerations are absolutely correct, in fact several javascript sessions work perfectly; as you can see, following one of these, the correct flow would be:
- received the create_session request form the client;
- created the session id and returned to the client;
- received the bind_session from the client;
- start with the regular activities of the session (subscription request ...).
But for the Java Client there is no request to create_session at all. Only bind_session which all fail due to sync error.
This behavior is very strange, and may be due to two reasons:
- the create_sessions of the java client end up in a wrong server instance, this may be due either to a problem with the balancer or with a misconfiguration of the client;
- the client has very serious delays such that the create request and the subsequent bind exceed the life of the server. Actually this is very unlikely.
Can you check whether in front of the Lightstreamer server there is a balancer that sends the requests of the same client to two different instances?
Do javascript and java clients have the same network intermediaries to get to the server?
However, it might be useful to also have the client side log that we can match with that of the server.
Please in order to enable the client log you can add the following lines to your application:
SystemOutLogProvider prov = new SystemOutLogProvider();
LightstreamerClient.setLoggerProvider(prov);
You may also need to add to your project the dependencies 'com.lightstreamer:ls-log-adapter-java:1.0.1' and 'com.lightstreamer:java-system-out-log:1.0.2', which you can find on our public Maven repo.
Please let us know if you need any further clarifications.
Regards,
Giuseppe