-
November 10th, 2018, 08:54 AM
#1
LightStreamer Server Disconnect after connecting
Hello,
The Server Send an "end" message after client(javascript api) successfully connected to server so the connection disconnected.
it doesn't happen every time,
and also I find the following line in the server's log:
Unexpected error while managing data for session Sc5b0f27563b49eecM87aT5148650:
java.lang.ClassCastException: java.base/java.lang.String cannot be cast to com.lightstreamer.d.c.v
at com.lightstreamer.k.ai.a(ai.java)
at com.lightstreamer.l.c.r.a(r.java)
at com.lightstreamer.l.c.j.a(j.java)
at com.lightstreamer.l.z.b(z.java)
at com.lightstreamer.l.a.bk.a(bk.java)
at com.lightstreamer.l.a.aq.a(aq.java)
at com.lightstreamer.l.a.aq.a(aq.java)
at com.lightstreamer.l.a.ac.a(ac.java)
at com.lightstreamer.l.r.l(r.java)
at com.lightstreamer.l.r.f(r.java)
at com.lightstreamer.l.e.a(e.java)
at com.lightstreamer.d.j.d(j.java)
at com.lightstreamer.d.b.d.b(d.java)
at com.lightstreamer.d.b.d.run(d.java)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1135)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
at com.lightstreamer.d.b.bt.d(bt.java)
at com.lightstreamer.d.b.bu.d(bu.java)
at com.lightstreamer.d.b.br.run(br.java)
10-Nov-18 11:51:52,150|ERROR|L.scheduler |PUMP POOLED THREAD 62 |Unexpected error while sending data: Caught: java.lang.ClassCastException: java.base/java.lang.String cannot be cast to com.lightstreamer.d.c.v.
10-Nov-18 11:51:52,150|ERROR|L.connections |PUMP POOLED THREAD 62 |Interruption during data processing: Caught: java.lang.ClassCastException: java.base/java.lang.String cannot be cast to com.lightstreamer.d.c.v.
10-Nov-18 11:51:52,166|INFO |L.requests |PUMP POOLED THREAD 49 |Closed session Sc5b0f27563b49eecM87aT5148650 with internal cause code: 43/4 (Failure).
Thanks in advance.
-
November 12th, 2018, 11:13 AM
#2
Hi,
Please check if your Data Adapter is reusing in some way the HashMap objects it has sent through update() or smartUpdate() invocations.
In fact, we explicitly forbid that and claim exclusive use of these objects to improve performance (on the kernel side).
A reuse may explain the issue.
-
December 17th, 2018, 08:58 AM
#3
Hi,
Thanks for your answer,
But we are using .net adapter so it doesn't apply to our condition,
anyway may be this log is irrelevant
my problem is client disconnect right after successful connection and client receive "end(33);", how can I solve the problem?
and here the staus change log
CONNECTING
CONNECTED:STREAM-SENSING
CONNECTED:WS-STREAMING
DISCONNECTED
-
December 28th, 2018, 08:52 AM
#4
(with the help of milad.j we are addressing the issue; a workaround is available and will be released in a few days)
-
January 8th, 2019, 11:33 AM
#5
With milad.j's help we have finally found a bug which originates the issue.
The bug was triggered by a rare race condition, only possible with items subscribed to in both RAW and MERGE mode.
The new Lightstreamer release 7.0.3, which fixes the bug, is now available on the download page.
Similar Threads
-
By tscreators in forum General
Replies: 3
Last Post: June 26th, 2018, 08:51 AM
-
By rvkvino in forum General
Replies: 25
Last Post: December 19th, 2017, 09:08 AM
-
By jsharpe in forum Client SDKs
Replies: 4
Last Post: February 4th, 2009, 11:45 PM
-
By camerone in forum Client SDKs
Replies: 1
Last Post: August 20th, 2007, 02:37 PM
-
Replies: 1
Last Post: March 15th, 2007, 02:44 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 02:17 AM.
Bookmarks