Results 1 to 5 of 5
  1. #1

    notifyNewSession getting called continuosuly in a session

    So I am new to lightstreamer trying it on my local computer. What I observed while
    debugging is it happens that notifyNewSession, notifySessionClose is getting called continuously in a session even if there is no internet fluctuation. My assumption after going through documents is when the client gets connected to server notifyNewSession will be called and when client ask to disconnect notifySessionClose will be called. It will keep connection active through the session. I am confused why it is behaving like this. Have I missed something in doc ? Or is it normal behaviour that it will continuously connect and disconnect even on a good internet connection.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,022
    In fact, notifyNewSession and notifySessionClose are not supposed to be invoked during the life of a session.
    Something else must be happening, such as another client struggling to connect.
    If you have left the factory log configuration, the log produced during the session life should show that.

  3. #3
    Thanks got it.

  4. #4
    Also one more issue I am facing today, while trying to deploy it locally, it was running fine yesterday.
    But today I am facing this error continuosuly

    |Unexpected error while managing the request:
    java.lang.NoSuchMethodError: com.lightstreamer.interfaces.metadata.TableInfo.<i nit>(ILcom/lightstreamer/interfaces/metadata/Mode;Ljava/lang/String;Ljava/lang/String;IILjava/lang/StringV
    at com.lightstreamer.i.b.c.<init>(c.java)
    at com.lightstreamer.k.c.g.h(g.java)
    at com.lightstreamer.k.c.f.f(f.java)
    at com.lightstreamer.k.a.aa.a(aa.java)
    at com.lightstreamer.k.a.z.b(z.java)
    at com.lightstreamer.g.aw.a(aw.java)
    at com.lightstreamer.g.c.i.a(i.java)
    at com.lightstreamer.g.r.a(r.java)
    at com.lightstreamer.g.r.a(r.java)
    at com.lightstreamer.g.r.b(r.java)
    at com.lightstreamer.g.r.a(r.java)
    at com.lightstreamer.g.a6.a(a6.java)
    at com.lightstreamer.e.a.ab.a(ab.java)
    at com.lightstreamer.e.a.p.a(p.java)
    at com.lightstreamer.e.a.p.a(p.java)
    at com.lightstreamer.e.a.k.d(k.java)
    at com.lightstreamer.a.a.m.b(m.java)
    at com.lightstreamer.a.a.m.run(m.java)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
    at com.lightstreamer.a.a.d.c(d.java)
    at com.lightstreamer.a.a.e.c(e.java)
    at com.lightstreamer.a.a.b.run(b.java)

    What could be possible reason?

  5. #5
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,022
    The signature is that of a previous version.
    A possible reason for the error is that the Server in use is version 7.0.x or earlier and the adapter interface jar is for a later Server version.
    Obviously, we assume that some change has happened involving the classpath.
    For instance, you may have downloaded the latest version of the adapter interface jar from maven or from github and you have placed it before the older at Lightstreamer\lib\ls-adapter-interface.jar.

 

 

Similar Threads

  1. NotifyNewSession
    By EWANG in forum Adapter SDKs
    Replies: 5
    Last Post: May 28th, 2018, 10:20 AM
  2. My notifyUserMessage method is not getting called
    By kpturner in forum Adapter SDKs
    Replies: 2
    Last Post: December 3rd, 2012, 10:34 PM
  3. Replies: 1
    Last Post: June 7th, 2010, 12:13 PM
  4. Table.onEndOfSnapshot not being called
    By jweber in forum Client SDKs
    Replies: 10
    Last Post: February 10th, 2010, 10:25 AM
  5. Data Adapter's subscribe() method not getting called
    By CitiMan in forum Adapter SDKs
    Replies: 8
    Last Post: November 30th, 2006, 05:26 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 06:06 AM.