about vertx.jdbc-service

43 views
Skip to first unread message

asdfgas...@gmail.com

unread,
Jan 20, 2016, 9:27:42 PM1/20/16
to vert.x
HI

Do you know the cause exiting the following error at run time?

  vertx.deployVerticle("service:io.vertx.jdbc-service", options, res -> {

>>
: Failure in calling handler
java.lang.RuntimeException: java.lang.NoClassDefFoundError: io/vertx/core/logging/impl/LoggerFactory
        at com.Test.lambda$start$0(Test.java:48)
        at io.vertx.core.impl.DeploymentManager.lambda$reportResult$157(DeploymentManager.java:398)
        at io.vertx.core.impl.ContextImpl.lambda$wrapTask$16(ContextImpl.java:335)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: io/vertx/core/logging/impl/LoggerFactory
        at io.vertx.ext.jdbc.impl.JdbcServiceImpl.<clinit>(JdbcServiceImpl.java:38)
        at io.vertx.ext.jdbc.JdbcService.create(JdbcService.java:51)
        at io.vertx.ext.jdbc.JdbcServiceVerticle.start(JdbcServiceVerticle.java:33)
        at io.vertx.core.AbstractVerticle.start(AbstractVerticle.java:111)
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$159(DeploymentManager.java:429)
        ... 5 more
Caused by: java.lang.ClassNotFoundException: io.vertx.core.logging.impl.LoggerFactory
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)


environment
vert.x 3.2

gradle:
dependencies {
    compile "io.vertx:vertx-core:3.2.0"
    compile "io.vertx:vertx-service-factory:3.2.0"
    compile "io.vertx:vertx-jdbc-service:3.0.0-milestone4"

Clement Escoffier

unread,
Jan 21, 2016, 1:28:09 AM1/21/16
to ve...@googlegroups.com
Hi,

Unfortunately, the JDBC service has not been released (and has been dropped) and the last release is not compatible with vert.x 3.2.0 (actually, it’s not compatible since 3.0.0). You should use the vertx-jdbc-client.

Clement



--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/b46c7f14-a0b5-4ec6-a922-eda010d3ad1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages