Skip to content

verticle extends with org.vertx.scala.platform.Verticle failed to deploy #47

Closed
@angeloh

Description

@angeloh

When testing verticle extends with org.vertx.scala.platform.Verticle, it would throw an exception.

java.lang.ClassCastException: verticles.SockJSVerticle cannot be cast to org.vertx.java.platform.Verticle

Here is my deploy code:

container.deployVerticle(
  classOf[SockJSVerticle].getName,
  (ar: AsyncResult[String]) => {

  })

Here is my verticle code

import org.vertx.scala.platform.Verticle

class SockJSVerticle extends Verticle {

   override def start(future: Future[Void]):Unit = {
    start()
   }
} 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions