4 Replies Latest reply on Jan 25, 2019 10:49 PM by jaikiran pai

    Errors with HTTP/2 enabled in WF 14 (with WF 10 same app worked)

    surfspider Newbie

      I get the following error in Wildfly 14:

       

      19:21:02,947 ERROR [io.undertow] (default task-59) UT005085: Connection io.undertow.server.protocol.http2.Http2ServerConnection@d75cd9 for exchange HttpServerExchange{ GET /Consult/org.richfaces.resources/javax.faces.resource/org.richfaces/jquery.js request {accept=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8], accept-language=[de,en-US;q=0.7,en;q=0.3], :authority=[zhsrv03:8443], accept-encoding=[gzip, deflate, br], :path=[/Consult/org.richfaces.resources/javax.faces.resource/org.richfaces/jquery.js], user-agent=[Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0], :scheme=[https], cookie=[JSESSIONID=uZsgWtyluXOMR2sKjzveOgAkveOE4PsXLQbMf], :method=[GET], Referer=[https://zhsrv03:8443/Consult/pages/main.jsf], upgrade-insecure-requests=[1], Host=[zhsrv03:8443]} response {Expires=[Wed, 23 Jan 2019 18:21:02 GMT], ETag=[W/"293650-1547662223817"], Last-Modified=[Wed, 16 Jan 2019 18:10:23 GMT], Set-Cookie=[JSESSIONID=uZsgWtyluXOcMKBjzvgAkveOE4PsXLQbMf.zhsrv03; path=/Consult], Content-Type=[application/javascript], Date=[Wed, 16 Jan 2019 18:21:02 GMT], :status=[200]}} was not closed cleanly, forcibly closing connection

       

      After I changed the attribute enable-http2 in standalone.xml from true to false like this it works:

       

      <https-listener name="https" socket-binding="https" security-realm="SslRealm" enable-http2="false"/>

       

      See also:

      https://developer.jboss.org/message/984394?et=watches.email.thread#984394

       

      With Wildfly 10 the same application worked with the enable-http2="true" setting.

       

      What is the reason I get the error with Wildfly 14? Can I not use anymore HTTP/2 in Wildfly 14 or how can I solve the problem?

        • 1. Re: Errors with HTTP/2 enabled in WF 14 (with WF 10 same app worked)
          jaikiran pai Master

          Is this reproducible against the latest released WildFly 15.x? If yes, can you please post details about the application which might help to reproduce this?

          • 2. Re: Errors with HTTP/2 enabled in WF 14 (with WF 10 same app worked)
            surfspider Newbie

            I have still almost the same problem with WildFly 15.0.1.

            The error above disappears but if I set enable-http2="true" I am getting the following error now:

             

            11:42:58,559 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-14) JSF1064: Ressource org.richfaces/jquery.js kann nicht gefunden oder bedient werden.

            11:42:58,559 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-14) : java.nio.channels.ClosedChannelException

                at io.undertow.channels.DetachableStreamSinkChannel.write(DetachableStreamSinkChannel.java:238)

                at io.undertow.server.HttpServerExchange$WriteDispatchChannel.write(HttpServerExchange.java:2103)

                at io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:574)

                at io.undertow.servlet.spec.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:150)

                at java.nio.channels.Channels$WritableByteChannelImpl.write(Channels.java:458)

                at com.sun.faces.application.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:351)

                at org.richfaces.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:219)

                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:667)

                at org.richfaces.webapp.ResourceServlet.httpService(ResourceServlet.java:129)

                at org.richfaces.webapp.ResourceServlet.service(ResourceServlet.java:123)

                at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)

                at io.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:55)

                at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

                at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

                at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

                at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)

                at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

                at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)

                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.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)

                at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

                at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

                at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)

                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 org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)

                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)

                at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)

                at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)

                at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)

                at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)

                at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

                at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)

                at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)

                at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)

                at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)

                at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)

                at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)

                at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)

                at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

                at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)

                at io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)

                at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)

                at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

                at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)

                at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)

                at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)

                at java.lang.Thread.run(Thread.java:748)

             

            It seems to be a loop. The same error appears many times.

             

            With enable-http2="false" it keeps without an error.

             

            I am using Richfaces 4.5.17.Final and JSF 2.x. Browser is Firefox 60.4.0.esr 32-bit or Edge 41.16299.x

            With Chrome I am getting an out of memory error.

             

            My UI uses  JSF templates, Richfaces dropdown and selectone menus.

              

             

             

            • 3. Re: Errors with HTTP/2 enabled in WF 14 (with WF 10 same app worked)
              Frank Langelage Master

              I'm using a current WildFly master build here (WildFly Full 16.0.0.Beta1-SNAPSHOT (WildFly Core 8.0.0.Beta4-SNAPSHOT)) and see similar errors:

               

              25.01. 22:32:42,214 WARNING [javax.enterprise.resource.webcontainer.jsf.application#logMissingResource] JSF1064: Unable to find or serve resource, components.js, from library, primefaces.
              25.01. 22:32:42,407 WARNING [javax.enterprise.resource.webcontainer.jsf.application#logMissingResource] : java.nio.channels.ClosedChannelException
                  at io.undertow.channels.DetachableStreamSinkChannel.write(DetachableStreamSinkChannel.java:238)
                  at io.undertow.server.HttpServerExchange$WriteDispatchChannel.write(HttpServerExchange.java:2103)
                  at io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:574)
                  at io.undertow.servlet.spec.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:150)
                  at java.nio.channels.Channels$WritableByteChannelImpl.write(Channels.java:458)
                  at com.sun.faces.application.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:351)
                  at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:178)
                  at org.primefaces.application.resource.PrimeResourceHandler.handleResourceRequest(PrimeResourceHandler.java:88)
                  at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:178)
                  at org.openfaces.application.OpenFacesResourceHandler.handleResourceRequest(OpenFacesResourceHandler.java:147)
                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:667)
                  at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
                  at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
                  at org.openfaces.util.ResourceFilter.doFilter(ResourceFilter.java:41)
                  at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
                  at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
                  at io.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:55)
                  at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
                  at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
                  at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
                  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
                  at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
                  at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
                  at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                  at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
                  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.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
                  at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
                  at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
                  at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
                  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 org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                  at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
                  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
                  at io.undertow.server.handlers.MetricsHandler.handleRequest(MetricsHandler.java:64)
                  at io.undertow.servlet.core.MetricsChainHandler.handleRequest(MetricsChainHandler.java:59)
                  at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
                  at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
                  at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
                  at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
                  at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
                  at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
                  at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
                  at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
                  at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
                  at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
                  at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
                  at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
                  at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
                  at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
                  at io.undertow.server.Connectors.executeRootHandler(Connectors.java:364)
                  at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
                  at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
                  at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
                  at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
                  at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
                  at java.lang.Thread.run(Thread.java:748)
              
              • 4. Re: Errors with HTTP/2 enabled in WF 14 (with WF 10 same app worked)
                jaikiran pai Master

                Is there a simple application to help reproduce it?