Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by k33g
, 1 year ago
java.lang.String cannot be cast to io.vertx.core.buffer.Buffer
java.lang.ClassCastException: java.lang.String cannot be cast to io.vertx.core.buffer.Buffer	at io.vertx.core.http.impl.HttpServerResponseImpl.end(HttpServerResponseImpl.java:52)	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)	at org.eclipse.golo.runtime.MethodInvocationSupport.fallback(MethodInvocationSupport.java:280)	at undefined.webapp.__$$_sugar_closure_2(golox.golo:47)	at java.lang.invoke.MethodHandleProxies$1.invoke(MethodHandleProxies.java:187)	at com.sun.proxy.$Proxy4.handle(Unknown Source)	at io.vertx.ext.web.impl.RouteImpl.handleContext(RouteImpl.java:221)	at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:78)	at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:93)	at io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.doEnd(BodyHandlerImpl.java:155)	at io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.end(BodyHandlerImpl.java:141)	at io.vertx.ext.web.handler.impl.BodyHandlerImpl.lambda$handle$34(BodyHandlerImpl.java:61)	at io.vertx.core.http.impl.HttpServerRequestImpl.handleEnd(HttpServerRequestImpl.java:406)	at io.vertx.core.http.impl.ServerConnection.handleEnd(ServerConnection.java:286)	at io.vertx.core.http.impl.ServerConnection.processMessage(ServerConnection.java:404)	at io.vertx.core.http.impl.ServerConnection.handleMessage(ServerConnection.java:134)	at io.vertx.core.http.impl.HttpServerImpl$ServerHandler.doMessageReceived(HttpServerImpl.java:514)	at io.vertx.core.http.impl.HttpServerImpl$ServerHandler.doMessageReceived(HttpServerImpl.java:420)	at io.vertx.core.http.impl.VertxHttpHandler.lambda$channelRead$18(VertxHttpHandler.java:80)	at io.vertx.core.impl.ContextImpl.lambda$wrapTask$16(ContextImpl.java:333)	at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:225)	at io.vertx.core.http.impl.VertxHttpHandler.channelRead(VertxHttpHandler.java:80)	at io.vertx.core.net.impl.VertxHandler.channelRead(VertxHandler.java:124)	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)	at java.lang.Thread.run(Thread.java:745)