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

Dev UI: exception related to log streaming #16537

Closed
FroMage opened this issue Apr 15, 2021 · 3 comments · Fixed by #16648
Closed

Dev UI: exception related to log streaming #16537

FroMage opened this issue Apr 15, 2021 · 3 comments · Fixed by #16648
Labels
area/dev-ui kind/bug Something isn't working
Milestone

Comments

@FroMage
Copy link
Member

FroMage commented Apr 15, 2021

Looking at the reproducer for #16534, and hitting http://localhost:8080/weather and http://localhost:8080/q/dev/io.quarkus.quarkus-cache/caches I've seen this exception several times:

2021-04-15 10:31:27,668 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (vert.x-eventloop-thread-13) HTTP Request to /q/dev/logstream failed, error id: 890ea464-d38e-457e-b1cd-71ca5a3e8133-2: java.lang.IllegalStateException: Request has already been read
	at io.vertx.core.http.impl.Http1xServerRequest.checkEnded(Http1xServerRequest.java:628)
	at io.vertx.core.http.impl.Http1xServerRequest.handler(Http1xServerRequest.java:288)
	at io.vertx.core.http.impl.Http1xServerRequest.webSocket(Http1xServerRequest.java:423)
	at io.vertx.core.http.impl.Http1xServerRequest.webSocket(Http1xServerRequest.java:413)
	at io.vertx.core.http.impl.Http1xServerRequest.toWebSocket(Http1xServerRequest.java:402)
	at io.vertx.core.http.HttpServerRequest.toWebSocket(HttpServerRequest.java:367)
	at io.quarkus.vertx.http.runtime.AbstractRequestWrapper.toWebSocket(AbstractRequestWrapper.java:266)
	at io.vertx.ext.web.impl.HttpServerRequestWrapper.toWebSocket(HttpServerRequestWrapper.java:325)
	at io.quarkus.vertx.http.runtime.logstream.LogStreamWebSocket.handle(LogStreamWebSocket.java:42)
	at io.quarkus.vertx.http.runtime.logstream.LogStreamWebSocket.handle(LogStreamWebSocket.java:21)
	at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1129)
	at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:151)
	at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:196)
	at io.vertx.ext.web.impl.RouterImpl.handleContext(RouterImpl.java:236)
	at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1129)
	at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:151)
	at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:133)
	at io.quarkus.vertx.http.runtime.VertxHttpRecorder$4.handle(VertxHttpRecorder.java:336)
	at io.quarkus.vertx.http.runtime.VertxHttpRecorder$4.handle(VertxHttpRecorder.java:314)
	at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1129)
	at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:151)
	at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:133)
	at io.quarkus.vertx.http.runtime.devmode.VertxHttpHotReplacementSetup$3.handle(VertxHttpHotReplacementSetup.java:86)
	at io.quarkus.vertx.http.runtime.devmode.VertxHttpHotReplacementSetup$3.handle(VertxHttpHotReplacementSetup.java:75)
	at io.vertx.core.impl.future.FutureImpl$3.onSuccess(FutureImpl.java:124)
	at io.vertx.core.impl.future.FutureBase.lambda$emitSuccess$0(FutureBase.java:54)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:834)

Steps to reproduce:

  • Start cache-quickstart in the dev mode
  • Open http://localhost:8080/weather
  • Open http://localhost:8080/q/dev/io.quarkus.quarkus-cache/caches
@FroMage FroMage added kind/bug Something isn't working area/dev-ui labels Apr 15, 2021
@FroMage
Copy link
Member Author

FroMage commented Apr 15, 2021

Perhaps @phillip-kruger ?

@phillip-kruger
Copy link
Member

I'll have a look a.s.a.p

@phillip-kruger
Copy link
Member

phillip-kruger commented Apr 19, 2021

I can not recreate this issue (using main branch)

Scratch that, just happened to me. Looking at it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dev-ui kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants