Results 1 to 5 of 5
  1. #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.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    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.

  3. #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

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    (with the help of milad.j we are addressing the issue; a workaround is available and will be released in a few days)

  5. #5
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    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

  1. Replies: 3
    Last Post: June 26th, 2018, 09:51 AM
  2. Replies: 25
    Last Post: December 19th, 2017, 10:08 AM
  3. Replies: 4
    Last Post: February 5th, 2009, 12:45 AM
  4. Problem connecting GI to LS server
    By camerone in forum Client SDKs
    Replies: 1
    Last Post: August 20th, 2007, 03:37 PM
  5. Replies: 1
    Last Post: March 15th, 2007, 03:44 PM

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 04:46 AM.