Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4684

Quarkus: WebSockets not working

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 4.0.2, 4.1.0-RC2
    • None
    • Extension Feature
    • None

    Description

      Using a WebSocket in Quarkus throws this

       Suppressed: java.lang.NullPointerException: Cannot invoke "org.apache.myfaces.push.cdi.WebsocketScopeManager$AbstractScope.isChannelAvailable(String)" because the return value of "org.apache.myfaces.push.cdi.WebsocketScopeManager.getScope(String, boolean)" is null
                      at org.apache.myfaces.push.WebsocketComponentRenderer.encodeEnd(WebsocketComponentRenderer.java:148)
                      at jakarta.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:634)
                      at jakarta.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:523)
                      at jakarta.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:519)
                      at jakarta.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:519)
                      at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1779)
                      at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
                      at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:122)
                      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
                      at jakarta.faces.webapp.FacesServlet.service(FacesServlet.java:225)
                      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
                      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:63)
                      at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
                      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
                      at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:67)
                      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:133)
                      at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
                      at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:65)
                      at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
                      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
                      at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
                      at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:247)
                      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:111)
                      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:108)
                      at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
                      at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
                      at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$9$1.call(UndertowDeploymentRecorder.java:626)
                      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
                      at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:152)
                      at io.undertow.server.handlers.CanonicalPathHandler.handleRequest(CanonicalPathHandler.java:49)
                      at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$1.handleRequest(UndertowDeploymentRecorder.java:125)
                      at io.undertow.server.Connectors.executeRootHandler(Connectors.java:284)
                      at io.undertow.server.DefaultExchangeHandler.handle(DefaultExchangeHandler.java:18)
                      at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$5$2.run(UndertowDeploymentRecorder.java:441)
                      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
                      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                      at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:582)
                      at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
                      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
                      at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
                      at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
                      at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
                      at java.base/java.lang.Thread.run(Thread.java:840)
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            melloware Melloware
            melloware Melloware

            Dates

              Created:
              Updated:

              Slack

                Issue deployment