RichP1
Hi,
We're getting the following PushServerException ("Incorrect Answer") thrown in our application and we're not sure why. Could you shed some light on what might cause this problem?
Thanks,
Richard
25-Feb-2009 13:43:19 com.lightstreamer.ls_client.ServerManager waitEvents
SEVERE: Error while listening for data in session S147e2fb49e25364dT4232984
2009-02-25 13:43:19,552 ERROR
com.lightstreamer.ls_client.PushServerException: Incorrect answer: END
at com.lightstreamer.ls_client.PushServerTranslator.parsePushData(PushServerTranslator.java:661)
at com.lightstreamer.ls_client.PushServerProxy.waitUpdate(PushServerProxy.java:485)
at com.lightstreamer.ls_client.ServerManager.waitEvents(ServerManager.java:585)
at com.lightstreamer.ls_client.ServerManager$1.run(ServerManager.java:94)
25-Feb-2009 13:43:19 com.lightstreamer.ls_client.ServerManager waitEvents
SEVERE: Error while listening for data in session S147e2fb49e25364dT4232984
2009-02-25 13:43:19,552 ERROR
com.lightstreamer.ls_client.PushServerException: Incorrect answer:
at com.lightstreamer.ls_client.PushServerTranslator.parsePushData(PushServerTranslator.java:661)
at com.lightstreamer.ls_client.PushServerProxy.waitUpdate(PushServerProxy.java:485)
at com.lightstreamer.ls_client.ServerManager.waitEvents(ServerManager.java:585)
at com.lightstreamer.ls_client.ServerManager$1.run(ServerManager.java:94)
25-Feb-2009 13:43:19 com.lightstreamer.ls_client.ServerManager waitEvents
SEVERE: Error while listening for data in session S147e2fb49e25364dT4232984
2009-02-25 13:43:19,552 ERROR
com.lightstreamer.ls_client.PushConnException: java.io.IOException
at com.lightstreamer.ls_client.PushServerProxy.waitCommand(PushServerProxy.java:454)
at com.lightstreamer.ls_client.PushServerProxy.waitUpdate(PushServerProxy.java:472)
at com.lightstreamer.ls_client.ServerManager.waitEvents(ServerManager.java:585)
at com.lightstreamer.ls_client.ServerManager$1.run(ServerManager.java:94)
Caused by: java.io.IOException
at com.lightstreamer.ls_client.PushServerTranslator.waitCommand(PushServerTranslator.java:607)
at com.lightstreamer.ls_client.PushServerProxy.waitCommand(PushServerProxy.java:425)
... 3 more
unsubscr table
Dario Crivelli
You actually have found a bug. The Server shouldn't have sent the END message, as it is reserved for future versions of the client library (thus, the bug is in the Server).
Note that the END message just notifies that the session is being forcibly (and unexpectedly from the client point of view) closed by the Server.
However, the current version of the java client library does not support this notification and just finds that the connection closes at once.
Therefore, without the bug, the session would have been closed the same; you just wouldn't have got the two onDataError calls, but only the final onFailure call.
We cannot fix the bug in short time and we apologize for the inconvenient. For now, you can just recognize the "Incorrect answer" errors and ignore them.
If needed, a look at the corresponding Server log could help us understand the reason why the Server forcibly closed the session.