Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3331

Https: ArrayIndexOutOfBoundsException when rendering a resulting JSF page

XMLWordPrintable

      I tried the latest snapshot with Undertow 1.0.9 and get the stacktrace below after a search request over https. This issue didn't exist with the snapshot from April/24 with Undertow 1.0.6. Also Bouncycastle was upgraded from 1.46 to 1.50. My OS is Windows 7 Enterprise SP1.

      SEVERE [javax.enterprise.resource.webcontainer.jsf.application] Error Rendering View[/rf/artikelverwaltung/listArtikel.xhtml]: java.lang.ArrayIndexOutOfBoundsException
      	at java.lang.System.arraycopy(Native Method) [rt.jar:1.8.0_05]
      	at org.bouncycastle.crypto.modes.GCMBlockCipher.doFinal(Unknown Source)
      	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)
      	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
      	at javax.crypto.CipherSpi.bufferCrypt(CipherSpi.java:830) [jce.jar:1.8.0]
      	at javax.crypto.CipherSpi.engineDoFinal(CipherSpi.java:730) [jce.jar:1.8.0]
      	at javax.crypto.Cipher.doFinal(Cipher.java:2416) [jce.jar:1.8.0]
      	at sun.security.ssl.CipherBox.encrypt(CipherBox.java:396) [jsse.jar:1.8.0_05]
      	at sun.security.ssl.EngineOutputRecord.write(EngineOutputRecord.java:300) [jsse.jar:1.8.0_05]
      	at sun.security.ssl.EngineOutputRecord.write(EngineOutputRecord.java:225) [jsse.jar:1.8.0_05]
      	at sun.security.ssl.EngineWriter.writeRecord(EngineWriter.java:186) [jsse.jar:1.8.0_05]
      	at sun.security.ssl.SSLEngineImpl.writeRecord(SSLEngineImpl.java:1280) [jsse.jar:1.8.0_05]
      	at sun.security.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1251) [jsse.jar:1.8.0_05]
      	at sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1166) [jsse.jar:1.8.0_05]
      	at org.xnio.ssl.JsseSslConduitEngine.engineWrap(JsseSslConduitEngine.java:312)
      	at org.xnio.ssl.JsseSslConduitEngine.wrap(JsseSslConduitEngine.java:237)
      	at org.xnio.ssl.JsseSslStreamSinkConduit.write(JsseSslStreamSinkConduit.java:113)
      	at org.xnio.ssl.JsseSslStreamSinkConduit.write(JsseSslStreamSinkConduit.java:77)
      	at io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:559) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.conduits.ChunkedStreamSinkConduit.doWrite(ChunkedStreamSinkConduit.java:164) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.conduits.ChunkedStreamSinkConduit.write(ChunkedStreamSinkConduit.java:127) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:150)
      	at io.undertow.channels.DetachableStreamSinkChannel.write(DetachableStreamSinkChannel.java:217) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:585) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.spec.ServletOutputStreamImpl.flushInternal(ServletOutputStreamImpl.java:498) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.spec.ServletPrintWriter.write(ServletPrintWriter.java:157) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.spec.ServletPrintWriter.write(ServletPrintWriter.java:201) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.spec.ServletPrintWriterDelegate.write(ServletPrintWriterDelegate.java:101) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at com.sun.faces.application.view.WriteBehindStateWriter.flushToWriter(WriteBehindStateWriter.java:240) [jsf-impl-2.2.6-jbossorg-4.jar:]
      	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:478) [jsf-impl-2.2.6-jbossorg-4.jar:]
      	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133) [jsf-impl-2.2.6-jbossorg-4.jar:]
      	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.6.jar:2.2.6]
      	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.6.jar:2.2.6]
      	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.6.jar:2.2.6]
      	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) [jsf-impl-2.2.6-jbossorg-4.jar:]
      	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.2.6-jbossorg-4.jar:]
      	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219) [jsf-impl-2.2.6-jbossorg-4.jar:]
      	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647) [jboss-jsf-api_2.2_spec-2.2.6.jar:2.2.6]
      	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727) [undertow-core-1.0.9.Final.jar:1.0.9.Final]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_05]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_05]
      	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_05]
      

              tomazcerar Tomaž Cerar (Inactive)
              juergen.zimmermann Juergen Zimmermann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: