Skip to content

DevUI: Not reachable in 3.0.0.Alpha5 #31738

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

Closed
melloware opened this issue Mar 9, 2023 · 20 comments · Fixed by #31751
Closed

DevUI: Not reachable in 3.0.0.Alpha5 #31738

melloware opened this issue Mar 9, 2023 · 20 comments · Fixed by #31751
Assignees
Labels
area/dev-ui env/windows Impacts Windows machines kind/bug Something isn't working
Milestone

Comments

@melloware
Copy link
Contributor

melloware commented Mar 9, 2023

Describe the bug

Trying to hit the new Dev UI at q/dev-ui in 3.0.0.Alpha5 and the browser just spins and spins and says "not found"

Expected behavior

New DEV UI appears.

Actual behavior

Browser just spins

How to Reproduce?

  1. git clone https://github.com/melloware/quarkus-faces
  2. run mvn quarkus:dev
  3. hit http://localhost:8081/q/dev-ui

See nothing happens

Output of uname -a or ver

Microsoft Windows [Version 10.0.22621.1265]

Output of java -version

OpenJDK 64-Bit Server VM Temurin-17.0.5+8 (build 17.0.5+8, mixed mode, sharing)

GraalVM version (if different from Java)

Mandrel 22.3

Quarkus version or git rev

3.0.0.Alpha5

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63) Maven home: C:\Tools\apache-maven-3.8.6 Java version: 17.0.5, vendor: Eclipse Adoptium, runtime: C:\Tools\jdk-17 Default locale: en_US, platform encoding: Cp1252 OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"

Additional information

No response

@melloware melloware added the kind/bug Something isn't working label Mar 9, 2023
@quarkus-bot quarkus-bot bot added area/mandrel env/windows Impacts Windows machines labels Mar 9, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 9, 2023

/cc @Karm (mandrel), @galderz (mandrel), @zakkak (mandrel)

@melloware
Copy link
Contributor Author

cc @phillip-kruger

@mkouba
Copy link
Contributor

mkouba commented Mar 9, 2023

I was not able to reproduce the problem on Linux with Firefox 110.0.1 and Chromium 110.0.5481.177. @melloware what browser do you use?

@maxandersen
Copy link
Member

Alpha5 does not have the polyfill PR that fixes this for "older" browsers #31672

in short - this is broken in alpha5 but work on main.

@melloware you can either:

  1. in firefox goto about:config and set dom.importMaps.enabled to true
  2. use a browser that has importmap support (Chrome and Edge had for a while, Firefox is recent)
  3. build quarkus locally from main and should just work no matter browser age/setting.

@melloware
Copy link
Contributor Author

Cool i will close this for now if its going to be fixed in Alpha6!

@gsmet
Copy link
Member

gsmet commented Mar 9, 2023

@melloware for our information, which browser are you using and which version it is? I would like to make sure we don't have a problem we haven't caught.

@melloware
Copy link
Contributor Author

I was definitely using latest Firefox and I am pretty sure I tried latest Chrome too. Same behavior on both.

@melloware
Copy link
Contributor Author

Confirmed I cannot reach it in Chrome 111, Firefox 110.0.1 (64-bit) the browser just sits there on the Network tab saying "in Progress".

@melloware melloware reopened this Mar 9, 2023
@melloware
Copy link
Contributor Author

OK when trying it with the Quarkus POI extension which has a bare bones integration test when I hit the site in Chrome 111 it starts infinitely stack tracing.

 at io.quarkus.resteasy.runtime.standalone.ResteasyStandaloneRecorder$3.handle(ResteasyStandaloneRecorder.java:187)
        at io.quarkus.resteasy.runtime.standalone.ResteasyStandaloneRecorder$3.handle(ResteasyStandaloneRecorder.java:157)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:141)
        at io.quarkus.vertx.http.runtime.devmode.VertxHttpHotReplacementSetup.handleHotReplacementRequest(VertxHttpHotReplacementSetup.java:135)
        at io.quarkus.vertx.http.runtime.VertxHttpRecorder$11.handle(VertxHttpRecorder.java:517)
        at io.quarkus.vertx.http.runtime.VertxHttpRecorder$11.handle(VertxHttpRecorder.java:513)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:141)
        at io.vertx.ext.web.impl.RoutingContextImplBase.restart(RoutingContextImplBase.java:130)
        at io.vertx.ext.web.impl.RoutingContextImpl.reroute(RoutingContextImpl.java:430)
        at io.vertx.ext.web.impl.RoutingContextWrapper.reroute(RoutingContextWrapper.java:303)
        at io.vertx.ext.web.RoutingContext.reroute(RoutingContext.java:571)
        at io.quarkus.devui.runtime.VaadinRouterHandler.handle(VaadinRouterHandler.java:31)
        at io.quarkus.devui.runtime.VaadinRouterHandler.handle(VaadinRouterHandler.java:9)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:200)
        at io.quarkus.devui.runtime.DevUIBuildTimeStaticHandler.handle(DevUIBuildTimeStaticHandler.java:68)
        at io.quarkus.devui.runtime.DevUIBuildTimeStaticHandler.handle(DevUIBuildTimeStaticHandler.java:15)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:200)
        at io.quarkus.devui.runtime.DevUIBuildTimeStaticHandler.handle(DevUIBuildTimeStaticHandler.java:68)
      .quarkus.devui.runtime.DevUIBuildTimeStaticHandler.handle(DevUIBuildTimeStaticHandler.java:15)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:200)
        at io.quarkus.vertx.http.runtime.devmode.FileSystemStaticHandler.sendStatic(FileSystemStaticHandler.java:140)
        at io.quarkus.vertx.http.runtime.devmode.FileSystemStaticHandler.handle(FileSystemStaticHandler.java:86)
        at io.quarkus.vertx.http.runtime.devmode.FileSystemStaticHandler.handle(FileSystemStaticHandler.java:32)
        at io.quarkus.vertx.http.runtime.webjar.WebJarStaticHandler.handle(WebJarStaticHandler.java:94)
        at io.quarkus.vertx.http.runtime.webjar.WebJarStaticHandler.handle(WebJarStaticHandler.java:18)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:200)
        at io.vertx.ext.web.impl.RouterImpl.handleContext(RouterImpl.java:250)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:141)
        at io.quarkus.vertx.http.runtime.VertxHttpRecorder$6.handle(VertxHttpRecorder.java:437)
        at io.quarkus.vertx.http.runtime.VertxHttpRecorder$6.handle(VertxHttpRecorder.java:415)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:141)
        at io.quarkus.resteasy.runtime.standalone.ResteasyStandaloneRecorder$3.handle(ResteasyStandaloneRecorder.java:187)
        at io.quarkus.resteasy.runtime.standalone.ResteasyStandaloneRecorder$3.handle(ResteasyStandaloneRecorder.java:157)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:141)
        at io.quarkus.vertx.http.runtime.devmode.VertxHttpHotReplacementSetup.handleHotReplacementRequest(VertxHttpHotReplacementSetup.java:135)
        at io.quarkus.vertx.http.runtime.VertxHttpRecorder$11.handle(VertxHttpRecorder.java:517)
        at io.quarkus.vertx.http.runtime.VertxHttpRecorder$11.handle(VertxHttpRecorder.java:513)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:141)
        at io.vertx.ext.web.impl.RoutingContextImplBase.restart(RoutingContextImplBase.java:130)
        at io.vertx.ext.web.impl.RoutingContextImpl.reroute(RoutingContextImpl.java:430)
        at io.vertx.ext.web.impl.RoutingContextWrapper.reroute(RoutingContextWrapper.java:303)
        at io.vertx.ext.web.RoutingContext.reroute(RoutingContext.java:571)
        at io.quarkus.devui.runtime.VaadinRouterHandler.handle(VaadinRouterHandler.java:31)
        at io.quarkus.devui.runtime.VaadinRouterHandler.handle(VaadinRouterHandler.java:9)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:200)
        at io.quarkus.devui.runtime.DevUIBuildTimeStaticHandler.handle(DevUIBuildTimeStaticHandler.java:68)
        at io.quarkus.devui.runtime.DevUIBuildTimeStaticHandler.handle(DevUIBuildTimeStaticHandler.java:15)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:200)
        at io.quarkus.devui.runtime.DevUIBuildTimeStaticHandler.handle(DevUIBuildTimeStaticHandler.java:68)
        at io.quarkus.devui.runtime.DevUIBuildTimeStaticHandler.handle(DevUIBuildTimeStaticHandler.java:15)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:200)
        at io.quarkus.vertx.http.runtime.devmode.FileSystemStaticHandler.sendStatic(FileSystemStaticHandler.java:140)
        at io.quarkus.vertx.http.runtime.devmode.FileSystemStaticHandler.handle(FileSystemStaticHandler.java:86)
        at io.quarkus.vertx.http.runtime.devmode.FileSystemStaticHandler.handle(FileSystemStaticHandler.java:32)
        at io.quarkus.vertx.http.runtime.webjar.WebJarStaticHandler.handle(WebJarStaticHandler.java:94)
        at io.quarkus.vertx.http.runtime.webjar.WebJarStaticHandler.handle(WebJarStaticHandler.java:18)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)
        at io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:200)
        at io.vertx.ext.web.impl.RouterImpl.handleContext(RouterImpl.java:250)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1284)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:177)

@phillip-kruger
Copy link
Member

@melloware do you have a reproducer of the above stacktrace ?

@phillip-kruger
Copy link
Member

For reference, the issue with browsers (that we have the polyfill for) is because of importmaps: https://caniuse.com/import-maps , but your browser version is definitely fine, so it's something else. I have not managed to recreate the issue on my firefox / chrome, and I do not get the above stacktrace. Any more info would help :) Thanks

working_firefox

@melloware
Copy link
Contributor Author

Yep just Git clone Quarkiverse POI which is a simple wrapper library by @gastaldi Run Quarkus dev in the integration tests folder. It happens every time for me.

@phillip-kruger
Copy link
Member

Ok, trying now. Is there anything in your browser developer console ?

@phillip-kruger
Copy link
Member

@melloware Locally Poi extension works for me:
working_poi

Let me know if there is anything in your browser log

@melloware
Copy link
Contributor Author

melloware commented Mar 9, 2023

So could the difference be I am running on Windows? I can't see how that example works for you and not for me if both are identical other than OS difference?

And no browser console errors it just goes in a server side death spiral and the browser hangs on the initial HTTP request

@phillip-kruger
Copy link
Member

I actually have a Windows VM. Let me confirm. Hold on

@phillip-kruger
Copy link
Member

@melloware - Got it ! Managed to recreate on Windows. Looking...

@phillip-kruger phillip-kruger self-assigned this Mar 10, 2023
@melloware
Copy link
Contributor Author

Ok I feel better that I am not going crazy 😃

@melloware
Copy link
Contributor Author

You guys rock. I want to build new Dev UIs for OmniFaces, PrimeFaces, MyFaces extensions. Not sure what I will put in there but excited for the new UI.

@phillip-kruger
Copy link
Member

Please reach out on zulip if you have questions w.r.r Dev UI

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

Successfully merging a pull request may close this issue.

5 participants