-
November 13th, 2020, 11:17 PM
#1
NoClassDefFoundError: com/lightstreamer/interfaces/metadata/MetadataControlListener
We've been using Lightstreamer for Java for many years. We are building new Linux servers with 7.1.2, and are getting this error on startup.
I can't find this class in the distributed Lightstreamer jars. Can someone help me find the right jar? Googling didn't help.
13-Nov-20 18:02:42,388|DEBUG|L.init |main |Loading Adapters...
13-Nov-20 18:02:42,390|ERROR|L.init |main |Unexpected error in configuration:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.lightstreamer.a.i.b(i.java)
at com.lightstreamer.a.i.a(i.java)
at com.lightstreamer.a.i.a(i.java)
at com.lightstreamer.a.r.i(r.java)
at com.lightstreamer.a.r.<init>(r.java)
at com.lightstreamer.h.a.a(a.java)
at com.lightstreamer.LS.main(LS.java)
Caused by: java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl .newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl .newInstance(NativeConstructorAccessorImpl.java:62 )
at java.base/jdk.internal.reflect.DelegatingConstructorAccessor Impl.newInstance(DelegatingConstructorAccessorImpl .java
:45)
at java.base/java.lang.reflect.Constructor.newInstance(Construc tor.java:490)
... 7 common frames omitted
Caused by: java.lang.NoClassDefFoundError: com/lightstreamer/interfaces/metadata/MetadataControlListener
at com.lightstreamer.c.ac.<init>(ac.java)
... 11 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.lightstreamer.interfaces.metadata.MetadataCont rolListener
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.j ava:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:5 89)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:5 22)
... 12 common frames omitted
-
November 16th, 2020, 10:48 AM
#2
The MetadataControlListener class was introduced in Lightstreamer Server version 7.1.0 (as part of the java in-process SDK version 7.2.0).
However, since Lightstreamer Server version 7.1.2, the jar that contains this class has changed place.
Up to 7.1.1 it was Lightstreamer/lib/ls-adapter-interface.jar
From 7.1.2, that library (now part of the java in-process SDK version 7.3.0, which has become open-source) is now included as Lightstreamer/lib/adapters/ls-adapter-inprocess-7.3.0.jar
The launch scripts in Lightstreamer/bin/unix-like have changed to add it to the classpath.
Perhaps you expected fewer changes in this upgrade and are still using the previous launch script?
Similar Threads
-
By kimi in forum Adapter SDKs
Replies: 5
Last Post: January 29th, 2016, 12:44 PM
-
By kpturner in forum General
Replies: 3
Last Post: July 30th, 2014, 12:23 PM
-
By stephenlam in forum Adapter SDKs
Replies: 4
Last Post: December 12th, 2008, 10:52 AM
-
By CitiMan in forum Adapter SDKs
Replies: 4
Last Post: November 21st, 2008, 05:24 PM
-
By chinghunglai in forum General
Replies: 2
Last Post: March 26th, 2008, 09:50 AM
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 11:36 PM.
Bookmarks