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
    Join Date
    Jul 2006
    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>(
    at com.lightstreamer.k.c.g.h(
    at com.lightstreamer.k.c.f.f(
    at com.lightstreamer.k.a.aa.a(
    at com.lightstreamer.k.a.z.b(
    at com.lightstreamer.g.c.i.a(
    at com.lightstreamer.g.r.a(
    at com.lightstreamer.g.r.a(
    at com.lightstreamer.g.r.b(
    at com.lightstreamer.g.r.a(
    at com.lightstreamer.g.a6.a(
    at com.lightstreamer.e.a.ab.a(
    at com.lightstreamer.e.a.p.a(
    at com.lightstreamer.e.a.p.a(
    at com.lightstreamer.e.a.k.d(
    at com.lightstreamer.a.a.m.b(
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$ (
    at com.lightstreamer.a.a.d.c(
    at com.lightstreamer.a.a.e.c(

    What could be possible reason?

  5. #5
    Join Date
    Jul 2006
    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, 09:20 AM
  2. My notifyUserMessage method is not getting called
    By kpturner in forum Adapter SDKs
    Replies: 2
    Last Post: December 3rd, 2012, 09:34 PM
  3. Replies: 1
    Last Post: June 7th, 2010, 11:13 AM
  4. Table.onEndOfSnapshot not being called
    By jweber in forum Client SDKs
    Replies: 10
    Last Post: February 10th, 2010, 09:25 AM
  5. Data Adapter's subscribe() method not getting called
    By CitiMan in forum Adapter SDKs
    Replies: 8
    Last Post: November 30th, 2006, 04:26 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
All times are GMT +1. The time now is 07:25 AM.