I don’t understand I have a ClassCastException her...
# vertx
f
I don’t understand I have a ClassCastException here
Copy code
abstract class ServiceTask : Handler<Message<MessageBody>>, Loggify {
  override fun handle(message: Message<MessageBody>) {
        <http://logger.info|logger.info>("Handle event message ${message.body()}")
        safeHandle(message)
    }
Any ideas?
Copy code
''2017-10-19 12:12:59 GRAVE io.vertx.core.impl.ContextImpl Unhandled exception
java.lang.ClassCastException: io.vertx.core.json.JsonObject cannot be cast to fstn.vertxFlow.core.dynamic.MessageBody
My MessageBody extends JsonObject It didn’t use my decoder, it’s take my MessageBody an cast it as JsonObject to send it