Closed Goremortem closed 10 years ago
Are you using Vert.x 2.1?
yep i change scala=io.vertx~lang-scala~0.2.0:org.vertx.scala.platform.impl.ScalaVerticleFactory and run but dont work =( Starting async database module for MySQL and PostgreSQL. Async database module for MySQL and PostgreSQL started with config Configuration(user,localhost,5432,Some(pass),Some(db),UTF-8,16777216) SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. java.util.concurrent.Execu
I'd try using Vertx 2.1, Scala 1.0.0 and 0.3.0-SNAPSHOT. You probably need to change the repos.txt
file to use HTTPS instead of HTTP for the Sonatype Snapshot Repository. Maybe that helps for now?
PS: I could see the user/pw combination through the "Watcher" mail, not sure who else got it, so just to give you the hint to change it, if you're using it somewhere else than your test machine ;)
I think you have error about SLF4J library. this module contains slf4j library, but I think you use another slf4j library in your project. So there is a collision between two libraries.
I had a same problem before.
in build.gradle, there is a 'compaile' in 'dependencies'
compile("com.github.mauricio:postgresql-async_2.10:$asyncDriverVersion") { exclude group: 'org.scala-lang' exclude group: 'io.netty' exclude group: 'org.slf4j' } compile("com.github.mauricio:mysql-async_2.10:$asyncDriverVersion") { exclude group: 'org.scala-lang' exclude group: 'io.netty' exclude group: 'org.slf4j'
exclude group: 'org.slf4j' --> add this tow lines and then rebuild this module.
try this
ty gonsan =D
Sounds like this issue is solved -> closing.
user@user:~/vertx/vertxservices$ vertx install io.vertx~mod-mysql-postgresql~0.3.0-SNAPSHOT Attempting to install module io.vertx~mod-mysql-postgresql~0.3.0-SNAPSHOT Module io.vertx~mod-mysql-postgresql~0.3.0-SNAPSHOT not found in any repositories
vertx install io.vertx~mod-mysql-postgresql~0.2.0 // this install without problems but not run: Failed in deploying module java.lang.VerifyError: Bad type on operand stack Exception Details: Location: io/vertx/asyncsql/Starter.reportFailure(Ljava/lang/Throwable;)V @2: invokestatic Reason: Type 'io/vertx/asyncsql/Starter' (current frame, stack[0]) is not assignable to 'org/vertx/scala/core/VertxExecutionContext'