bmaguireibm / gatling-prometheus-datawriter

This repo holds code to add a Prometheus DataWriter to export real time results to a Prometheus db from a running https://gatling.io test.
Apache License 2.0
20 stars 14 forks source link

gatling-prometheus-datawriter issue with Gatling 3.9.1 #5

Open kaushikroy90 opened 1 year ago

kaushikroy90 commented 1 year ago

While working implementing gatling live metrics to prometheus, facing below issue while running packaged JAR.

Java Version -17 Gatling version - 3.9.1 gatling prometheus-datawriter version - 0.0.1

Error stacktrace

Exception in thread "main" java.lang.NoClassDefFoundError: scala/Serializable at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012) at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862) at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760) at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681) at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) at com.typesafe.scalalogging.StrictLogging.$init$(Logging.scala:39) at io.gatling.app.Gatling$.(Gatling.scala:35) at io.gatling.app.Gatling.main(Gatling.scala) Caused by: java.lang.ClassNotFoundException: scala.Serializable at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)