Error while using JMS protocol in Gatling 2.2.3-SNAPSHOT

88 views
Skip to first unread message

prashant bhat

unread,
Sep 30, 2016, 7:26:35 PM9/30/16
to Gatling User Group
Gatling team,

Very happy to see that Fire and Forget JMS protocol will be supported during the 2.2.3 release.
Currently i am trying the Fire and Forget JMS protocol using SNAPSHOT version and looks like it is working but i get the below error during report generation and Hangs,

Simulation JMSTest_GatlingJMSProtocol completed in 0 seconds
Parsing log file(s)...
Parsing log file(s) done
Exception in thread "main" java.lang.NoClassDefFoundError: io/gatling/charts/component/impl/ComponentLibraryImpl
at io.gatling.charts.component.ComponentLibrary$.<init>(ComponentLibrary.scala:38)
at io.gatling.charts.component.ComponentLibrary$.<clinit>(ComponentLibrary.scala)
at io.gatling.charts.report.ReportsGenerator.generateFor(ReportsGenerator.scala:52)
at io.gatling.app.RunResultProcessor.generateReports(RunResultProcessor.scala:76)
at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:55)
at io.gatling.app.Gatling$.start(Gatling.scala:42)
at io.gatling.app.Gatling$.fromMap(Gatling.scala:30)
at Engine$.delayedEndpoint$Engine$1(Engine.scala:12)
at Engine$delayedInit$body.apply(Engine.scala:4)
at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
at scala.App$class.main(App.scala:76)
at Engine$.main(Engine.scala:4)
at Engine.main(Engine.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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: java.lang.ClassNotFoundException: io.gatling.charts.component.impl.ComponentLibraryImpl
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 23 more
Generating reports...


My script is as below ,

  val jmsConfig = jms
    .connectionFactoryName(jmsConnectionFactory)
    .url(jmsUrl)
    .credentials(jmsUsername,jmsPwd)
    .disableAnonymousConnect
    .contextFactory(classOf[org.apache.activemq.jndi.ActiveMQInitialContextFactory].getName)
    .listenerCount(1)
    //.usePersistentDeliveryMode
    //.matchByCorrelationID

  val scn = scenario("JMS test")
      .exec(jms("req reply testing").send
      .queue(jmsQname)
      .textMessage("hello  to jms queue")
      .property("test_header", "test_value")
      .property("locale", "en_US")
      .property("country", "US")
      .property("MessageOperation", "Publish")
      .property("event_type", "Alert")
      .property("event_subtype", "setDDStatus")
      .property("entity_type", "Payslip")
      .property("Back-Office-Id", companyID)
      .property("entity_id", paycheckID)
    )

  setUp(scn.inject(atOnceUsers(2)))
    .protocols(jmsConfig)

Konstantinos Papalias

unread,
Oct 13, 2016, 7:35:01 AM10/13/16
to Gatling User Group
Hi,

Obvious first question, but given the lack of context, have you included gatling-charts into your dependencies ? 

Cheers,
Konstantinos
Reply all
Reply to author
Forward
0 new messages