java.lang.ClassCastException: java.lang.String cannot be cast to io.vertx.core.buffer.Buffer

GitHub | k33g | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Method resolution fails with other Java Frameworks (sometimes)

    GitHub | 5 months ago | k33g
    java.lang.ClassCastException: java.lang.String cannot be cast to io.vertx.core.buffer.Buffer

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to io.vertx.core.buffer.Buffer

      at io.vertx.core.http.impl.HttpServerResponseImpl.end()
    2. Vert.x Core
      HttpServerResponseImpl.end
      1. io.vertx.core.http.impl.HttpServerResponseImpl.end(HttpServerResponseImpl.java:52)
      1 frame
    3. Java RT
      MethodHandle.invokeWithArguments
      1. java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      1 frame
    4. org.eclipse.golo
      MethodInvocationSupport.fallback
      1. org.eclipse.golo.runtime.MethodInvocationSupport.fallback(MethodInvocationSupport.java:280)
      1 frame
    5. Unknown
      webapp.__$$_sugar_closure_2
      1. webapp.__$$_sugar_closure_2(golox.golo:47)
      1 frame
    6. Java RT
      MethodHandleProxies$1.invoke
      1. java.lang.invoke.MethodHandleProxies$1.invoke(MethodHandleProxies.java:187)
      1 frame
    7. com.sun.proxy
      $Proxy4.handle
      1. com.sun.proxy.$Proxy4.handle(Unknown Source)
      1 frame
    8. io.vertx.ext
      BodyHandlerImpl.lambda$handle$34
      1. io.vertx.ext.web.impl.RouteImpl.handleContext(RouteImpl.java:221)
      2. io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:78)
      3. io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:93)
      4. io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.doEnd(BodyHandlerImpl.java:155)
      5. io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.end(BodyHandlerImpl.java:141)
      6. io.vertx.ext.web.handler.impl.BodyHandlerImpl.lambda$handle$34(BodyHandlerImpl.java:61)
      6 frames
    9. Vert.x Core
      VertxHandler.channelRead
      1. io.vertx.core.http.impl.HttpServerRequestImpl.handleEnd(HttpServerRequestImpl.java:406)
      2. io.vertx.core.http.impl.ServerConnection.handleEnd(ServerConnection.java:286)
      3. io.vertx.core.http.impl.ServerConnection.processMessage(ServerConnection.java:404)
      4. io.vertx.core.http.impl.ServerConnection.handleMessage(ServerConnection.java:134)
      5. io.vertx.core.http.impl.HttpServerImpl$ServerHandler.doMessageReceived(HttpServerImpl.java:514)
      6. io.vertx.core.http.impl.HttpServerImpl$ServerHandler.doMessageReceived(HttpServerImpl.java:420)
      7. io.vertx.core.http.impl.VertxHttpHandler.lambda$channelRead$18(VertxHttpHandler.java:80)
      8. io.vertx.core.impl.ContextImpl.lambda$wrapTask$16(ContextImpl.java:333)
      9. io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:225)
      10. io.vertx.core.http.impl.VertxHttpHandler.channelRead(VertxHttpHandler.java:80)
      11. io.vertx.core.net.impl.VertxHandler.channelRead(VertxHandler.java:124)
      11 frames
    10. Netty
      SingleThreadEventExecutor$2.run
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
      2. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
      3. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)
      4. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)
      5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
      6. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
      7. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
      8. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
      9. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
      10. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
      11. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
      12. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
      13. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
      13 frames
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame