Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version that works with default scala lang module #63

Open
akostadinov opened this issue Jan 22, 2015 · 0 comments
Open

version that works with default scala lang module #63

akostadinov opened this issue Jan 22, 2015 · 0 comments

Comments

@akostadinov
Copy link

Hello, any chances a version can be released that works with vert.x 2.1.4's default scala lang module?
With 0.3.0-SNAPSHOT (non 2.10 or 2.11) I'm getting:

Bad type on operand stack
Exception Details:
  Location:
    io/vertx/asyncsql/Starter.execute(Ljava/lang/Runnable;)V @2: invokestatic
  Reason:
    Type 'io/vertx/asyncsql/Starter' (current frame, stack[0]) is not assignable to 'org/vertx/scala/core/VertxExecutionContext'
  Current Frame:
    bci: @2
    flags: { }
    locals: { 'io/vertx/asyncsql/Starter', 'java/lang/Runnable' }
    stack: { 'io/vertx/asyncsql/Starter', 'java/lang/Runnable' }
  Bytecode:
    0000000: 2a2b b800 6bb1                         

java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)
java.lang.Class.getConstructor0(Class.java:2885)
java.lang.Class.newInstance(Class.java:350)
org.vertx.scala.lang.ClassLoaders$$anonfun$newInstance$1.apply(ClassLoaders.scala:38)
scala.util.Try$.apply(Try.scala:161)
org.vertx.scala.lang.ClassLoaders$.newInstance(ClassLoaders.scala:36)
org.vertx.scala.platform.impl.ScalaVerticleFactory.createVerticle(ScalaVerticleFactory.scala:69)
org.vertx.java.platform.impl.DefaultPlatformManager$21.run(DefaultPlatformManager.java:1740)
org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:175)
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:370)
io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
java.lang.Thread.run(Thread.java:745)

Default in vert.x 2.1.4 is io.vertx~lang-scala~1.0.0:org.vertx.scala.platform.impl.ScalaVerticleFactory.

Scala 2.11 version works fine for me but one has to also update vertx's scala lang module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant