gatling+jdbc+sql

137 views
Skip to first unread message

Elloumi Nisrine

unread,
Sep 14, 2018, 9:41:29 AM9/14/18
to Gatling User Group
Hello!!!


I'm newbie with  gatling. I'm using gatling with jdbc hive. I got this error while lunching ./gatling.sh. Any ideas please!!!!

regards 
Elloumi


Exception in thread "main" java.lang.NoClassDefFoundError: scalikejdbc/ConnectionPool$
        at de.codecentric.gatling.jdbc.protocol.JdbcProtocol.<init>(JdbcProtocol.scala:16)
        at de.codecentric.gatling.jdbc.protocol.JdbcProtocol$.apply(JdbcProtocol.scala:38)
        at de.codecentric.gatling.jdbc.protocol.JdbcProtocolBuilder.build(JdbcProtocolBuilderBase.scala:35)
        at de.codecentric.gatling.jdbc.JdbcDsl.jdbcProtocolBuilder2JdbcProtocol(JdbcDsl.scala:19)
        at de.codecentric.gatling.jdbc.JdbcDsl.jdbcProtocolBuilder2JdbcProtocol$(JdbcDsl.scala:19)
        at de.codecentric.gatling.jdbc.Predef$.jdbcProtocolBuilder2JdbcProtocol(Predef.scala:6)
        at createtable.<init>(createtable.scala:33)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at io.gatling.app.Runner.run0(Runner.scala:79)
        at io.gatling.app.Runner.run(Runner.scala:64)
        at io.gatling.app.Gatling$.start(Gatling.scala:63)
        at io.gatling.app.Gatling$.fromArgs(Gatling.scala:45)
        at io.gatling.app.Gatling$.main(Gatling.scala:37)
        at io.gatling.app.Gatling.main(Gatling.scala)
Caused by: java.lang.ClassNotFoundException: scalikejdbc.ConnectionPool$
        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)
        ... 18 more

Stéphane LANDELLE

unread,
Sep 14, 2018, 10:04:11 AM9/14/18
to gat...@googlegroups.com
You're using the lib from codecentric. It depends on scalikejdbc and this library is missing from your classpath.


Stéphane Landelle
GatlingCorp CEO



--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Elloumi Nisrine

unread,
Sep 17, 2018, 9:13:59 AM9/17/18
to Gatling User Group
Hello,
Thank you for your response but when i run ./gatling.sh  -cp  gatling-charts-highcharts-bundle-2.3.1/lib/gatling-jdbc_2.12-1.0.1.jar, I get Unknown argument as an error.
So  i added in application.conf my # JDBC settings db.default.driver="org.h2.Driver" .....  same errors too.


My question is if their is any another way to make it works .PS: even without codecentric, i just wanna use Gatling. 
Regards Elloumi Nisrine
Reply all
Reply to author
Forward
0 new messages