iksrazal
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.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java
:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.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.MetadataControlListener
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 12 common frames omitted
Dario Crivelli
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?