val client = new Client(
apiKey = "",
appKey = ""
)
val metric: Metric = Metric(
"foo.bar.test",
Seq((1412183578, 12.0), (1412183579, 123.0)),
Some("gauge"),
Some(Seq("tag1", "tag2:foo")),
Some("poop.example.com")
)
client.addMetrics(
Seq(metric)
)`
And I'm getting this error:
ava.lang.ClassNotFoundException: scala.Product$class at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 18 common frames omitted Wrapped by: java.lang.NoClassDefFoundError: scala/Product$class at github.gphat.datadog.package$Metric.<init>(package.scala:5) at inventory.InventorySimulation.$anonfun$new$2(InventorySimulation.scala:111) at io.gatling.core.scenario.Simulation.$anonfun$executeBefore$1(Simulation.scala:176) at io.gatling.core.scenario.Simulation.$anonfun$executeBefore$1$adapted(Simulation.scala:176) at scala.collection.immutable.List.foreach(List.scala:392) at io.gatling.core.scenario.Simulation.executeBefore(Simulation.scala:176) at io.gatling.app.Runner.run0(Runner.scala:79) at io.gatling.app.Runner.run(Runner.scala:60) at io.gatling.app.Gatling$.start(Gatling.scala:73) at io.gatling.app.Gatling$.fromArgs(Gatling.scala:46) at io.gatling.app.Gatling$.main(Gatling.scala:38) at io.gatling.app.Gatling.main(Gatling.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50) at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50) at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33) Caused by: java.lang.NoClassDefFoundError: scala/Product$class at github.gphat.datadog.package$Metric.<init>(package.scala:5) at inventory.InventorySimulation.$anonfun$new$2(InventorySimulation.scala:111) at io.gatling.core.scenario.Simulation.$anonfun$executeBefore$1(Simulation.scala:176) at io.gatling.core.scenario.Simulation.$anonfun$executeBefore$1$adapted(Simulation.scala:176) at scala.collection.immutable.List.foreach(List.scala:392) at io.gatling.core.scenario.Simulation.executeBefore(Simulation.scala:176) at io.gatling.app.Runner.run0(Runner.scala:79) at io.gatling.app.Runner.run(Runner.scala:60) at io.gatling.app.Gatling$.start(Gatling.scala:73) at io.gatling.app.Gatling$.fromArgs(Gatling.scala:46) at io.gatling.app.Gatling$.main(Gatling.scala:38) at io.gatling.app.Gatling.main(Gatling.scala) ... 6 more Caused by: java.lang.ClassNotFoundException: scala.Product$class at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 18 more
Any clue about what's wrong? I've seen last package builds failed...is this library still active?
Piece of code executed, based on library tests:
`import github.gphat.datadog._
And I'm getting this error:
ava.lang.ClassNotFoundException: scala.Product$class at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 18 common frames omitted Wrapped by: java.lang.NoClassDefFoundError: scala/Product$class at github.gphat.datadog.package$Metric.<init>(package.scala:5) at inventory.InventorySimulation.$anonfun$new$2(InventorySimulation.scala:111) at io.gatling.core.scenario.Simulation.$anonfun$executeBefore$1(Simulation.scala:176) at io.gatling.core.scenario.Simulation.$anonfun$executeBefore$1$adapted(Simulation.scala:176) at scala.collection.immutable.List.foreach(List.scala:392) at io.gatling.core.scenario.Simulation.executeBefore(Simulation.scala:176) at io.gatling.app.Runner.run0(Runner.scala:79) at io.gatling.app.Runner.run(Runner.scala:60) at io.gatling.app.Gatling$.start(Gatling.scala:73) at io.gatling.app.Gatling$.fromArgs(Gatling.scala:46) at io.gatling.app.Gatling$.main(Gatling.scala:38) at io.gatling.app.Gatling.main(Gatling.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50) at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50) at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33) Caused by: java.lang.NoClassDefFoundError: scala/Product$class at github.gphat.datadog.package$Metric.<init>(package.scala:5) at inventory.InventorySimulation.$anonfun$new$2(InventorySimulation.scala:111) at io.gatling.core.scenario.Simulation.$anonfun$executeBefore$1(Simulation.scala:176) at io.gatling.core.scenario.Simulation.$anonfun$executeBefore$1$adapted(Simulation.scala:176) at scala.collection.immutable.List.foreach(List.scala:392) at io.gatling.core.scenario.Simulation.executeBefore(Simulation.scala:176) at io.gatling.app.Runner.run0(Runner.scala:79) at io.gatling.app.Runner.run(Runner.scala:60) at io.gatling.app.Gatling$.start(Gatling.scala:73) at io.gatling.app.Gatling$.fromArgs(Gatling.scala:46) at io.gatling.app.Gatling$.main(Gatling.scala:38) at io.gatling.app.Gatling.main(Gatling.scala) ... 6 more Caused by: java.lang.ClassNotFoundException: scala.Product$class at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 18 more
Any clue about what's wrong? I've seen last package builds failed...is this library still active?