Results 1 to 10 of 12

Hybrid View

  1. #1
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi cleggink,

    I don't expect the library version to be a problem since 4.3.7 is also compatible with 7.0.x servers anyway.

    But you could try to leverage the debug logging of the client library; please make sure that your project has also this dependency:

    <dependency>
    <groupId>com.lightstreamer</groupId>
    <artifactId>java-system-out-log</artifactId>
    <version>1.0.2</version>
    </dependency>

    and add this line of code just before the LightstreamerClient initialization:

    LightstreamerClient.setLoggerProvider(new SystemOutLogProvider());

    That will produce the log of the client library, maybe will help find some clues about the problem.

    Regards,
    Giuseppe

  2. #2
    Apologies I thought I listed the project dependencies already.

    I am using Eclipse IDE Version: 2021-12 (4.22.0) Build id: 20211202-1639, overtop Java SE 17 on Windows 10. The project Maven dependencies I am using are: jackson-annotations_2.13.1, jackson-core_2.13.1, jackson-databind_2.13.1, lightstreamer_java-system-out.log_1.02, lightstreamer_ls-log-adapter-java_1.02, lightstreamer_ls-javase-client_4.3.0, slf4j-api_1.7.32, and slf4j-log4j12_1.7.32.

    And finally some debug information, thank you very much already!

    15.Jan.22 12:26:34,148|INFO |lightstreamer.actions|main|New client created
    15.Jan.22 12:26:34,170|INFO |lightstreamer.actions|main|Server Address value changed to https://push.cityindex.com/
    15.Jan.22 12:26:34,170|INFO |lightstreamer.actions|main|Adapter Set value changed to STREAMINGALL
    15.Jan.22 12:26:34,174|INFO |lightstreamer.actions|main|Forced Transport value changed to null
    15.Jan.22 12:26:34,174|INFO |lightstreamer.actions|main|User value changed to (removed my email address)
    15.Jan.22 12:26:34,175|INFO |lightstreamer.actions|main|Password value changed
    15.Jan.22 12:26:34,179|INFO |lightstreamer.actions|main|Connect requested
    Status: LIGHTSTREAMER CLIENT LISTENER STARTED
    15.Jan.22 12:26:34,187|DEBUG|lightstreamer.session|Session Thread <1>|Opening a new session and starting automatic reconnections
    15.Jan.22 12:26:34,191|DEBUG|lightstreamer.session|Session Thread <1>|SessionManager state change: OFF -> STREAMING_WS
    15.Jan.22 12:26:34,192|ERROR|lightstreamer.threads|Session Thread <1>|Uncaught exception
    15.Jan.22 12:26:34,193|DEBUG|lightstreamer.actions|main|Item list assigned: PRICE.401484300
    15.Jan.22 12:26:34,193|DEBUG|lightstreamer.actions|main|Fiel d list assigned: MarketId TickDate Bid Offer Price High Low
    15.Jan.22 12:26:34,194|DEBUG|lightstreamer.actions|main|Snap shot Required assigned: yes
    15.Jan.22 12:26:34,194|DEBUG|lightstreamer.actions|main|Adap ter Set assigned: PRICES
    java.lang.NoClassDefFoundError: io/netty/util/concurrent/GenericFutureListener
    Status: LIGHTSTREAMER SUBSCRIPTION LISTENER STARTED
    at com.lightstreamer.client.transport.providers.netty .NettyHttpProviderFactory.getInstance(NettyHttpPro viderFactory.java:22)
    at com.lightstreamer.client.transport.providers.netty .NettyHttpProviderFactory.getInstance(NettyHttpPro viderFactory.java:18)
    at com.lightstreamer.client.session.SessionFactory.cr eateNewSession(SessionFactory.java:38)
    at com.lightstreamer.client.session.SessionManager.pr epareNewSessionInstance(SessionManager.java:312)
    at com.lightstreamer.client.session.SessionManager.cr eateOrSwitchSession(SessionManager.java:301)
    at com.lightstreamer.client.LightstreamerEngine$1.run (LightstreamerEngine.java:119)
    at com.lightstreamer.client.session.SessionThread$1.r un(SessionThread.java:155)
    at com.lightstreamer.util.threads.LoggingRunnable.run (LoggingRunnable.java:20)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:539)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.jav a:264)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:304)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
    at com.lightstreamer.util.threads.JoinableSchedulerPo olExecutor$1$1.run(JoinableSchedulerPoolExecutor.j ava:33)
    Caused by: java.lang.ClassNotFoundException: io.netty.util.concurrent.GenericFutureListener
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(B uiltinClassLoader.java:641)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.lo adClass(ClassLoaders.java:188)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:5 20)
    ... 15 more
    15.Jan.22 12:26:34,208|INFO |lightstreamer.subscribe|Session Thread <1>|Adding subscription 1
    15.Jan.22 12:26:34,209|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 1 ready to be sent to server
    15.Jan.22 12:26:34,209|DEBUG|lightstreamer.actions|Session Thread <1>|structures reset for subscription 1
    15.Jan.22 12:26:34,210|DEBUG|lightstreamer.actions|Session Thread <1>|Subscription 1 is now on hold
    Last edited by cleggink; January 15th, 2022 at 05:40 PM.

  3. #3
    15.Jan.22 12:26:34,191|DEBUG|lightstreamer.session|Session Thread <1>|SessionManager state change: OFF -> STREAMING_WS

    seems to be the final action before the uncaught exempion

  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi cleggink,

    Strange, it seems that your project misses a netty class, that is a dependecny of the library, please could you just try to add this to your pom?

    <!-- https://mvnrepository.com/artifact/io.netty/netty-all -->
    <dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-all</artifactId>
    <version>4.1.46.Final</version>
    </dependency>


    Regards,
    Giuseppe

  5. #5
    It was a missing dependancy. I'm ashamed to admit that. Any idea what this means?

    |DEBUG|lightstreamer.protocol|Session Thread <1>|New message (1): CONERR,60,License not valid for this Client version

  6. #6
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Okay, now we indeed have a client library version compatibility problem. You should double check with your data provider.
    In any case maybe you could give a try to 4.2.x version (www.lightstreamer.com/repo/maven/com/lightstreamer/ls-javase-client/).

 

 

Similar Threads

  1. Connection issues
    By cleggink in forum Client SDKs
    Replies: 0
    Last Post: January 14th, 2022, 06:34 PM
  2. Connection Issues (SSL related?) [WinRT]
    By EricS in forum Client SDKs
    Replies: 7
    Last Post: January 24th, 2014, 09:25 AM
  3. Replies: 0
    Last Post: December 27th, 2006, 03:56 PM
  4. Firefox 2.0 final just tested - no known issues
    By Alessandro in forum Client SDKs
    Replies: 1
    Last Post: October 30th, 2006, 04:53 PM
  5. IE 7.0 final just tested - no known issues
    By Alessandro in forum Client SDKs
    Replies: 0
    Last Post: October 19th, 2006, 05:53 PM

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 10:38 PM.