io.vertx.core.VertxException: Thread blocked

GitHub | johnoliver | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    HttpServerResponse.sendFile blocks eventloop

    GitHub | 6 months ago | johnoliver
    io.vertx.core.VertxException: Thread blocked

    Root Cause Analysis

    1. io.vertx.core.VertxException

      Thread blocked

      at com.sun.crypto.provider.GHASH.update()
    2. com.sun.crypto
      AESCipher.engineDoFinal
      1. com.sun.crypto.provider.GHASH.update(GHASH.java:167)
      2. com.sun.crypto.provider.GaloisCounterMode.doLastBlock(GaloisCounterMode.java:362)
      3. com.sun.crypto.provider.GaloisCounterMode.encryptFinal(GaloisCounterMode.java:419)
      4. com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1025)
      5. com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:984)
      6. com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:479)
      6 frames
    3. Android Platform
      Cipher.doFinal
      1. javax.crypto.CipherSpi.bufferCrypt(CipherSpi.java:776)
      2. javax.crypto.CipherSpi.engineDoFinal(CipherSpi.java:730)
      3. javax.crypto.Cipher.doFinal(Cipher.java:2416)
      3 frames
    4. Java JSSE
      SSLEngineImpl.wrap
      1. sun.security.ssl.CipherBox.encrypt(CipherBox.java:396)
      2. sun.security.ssl.EngineOutputRecord.write(EngineOutputRecord.java:300)
      3. sun.security.ssl.EngineOutputRecord.write(EngineOutputRecord.java:225)
      4. sun.security.ssl.EngineWriter.writeRecord(EngineWriter.java:186)
      5. sun.security.ssl.SSLEngineImpl.writeRecord(SSLEngineImpl.java:1280)
      6. sun.security.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1251)
      7. sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1166)
      7 frames
    5. Java RT
      SSLEngine.wrap
      1. javax.net.ssl.SSLEngine.wrap(SSLEngine.java:509)
      1 frame
    6. Netty
      AbstractChannel.writeAndFlush
      1. io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:700)
      2. io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:526)
      3. io.netty.handler.ssl.SslHandler.flush(SslHandler.java:501)
      4. io.netty.channel.AbstractChannelHandlerContext.invokeFlush0(AbstractChannelHandlerContext.java:762)
      5. io.netty.channel.AbstractChannelHandlerContext.invokeFlush(AbstractChannelHandlerContext.java:754)
      6. io.netty.channel.AbstractChannelHandlerContext.flush(AbstractChannelHandlerContext.java:735)
      7. io.netty.channel.ChannelOutboundHandlerAdapter.flush(ChannelOutboundHandlerAdapter.java:115)
      8. io.netty.channel.AbstractChannelHandlerContext.invokeFlush0(AbstractChannelHandlerContext.java:762)
      9. io.netty.channel.AbstractChannelHandlerContext.invokeFlush(AbstractChannelHandlerContext.java:754)
      10. io.netty.channel.AbstractChannelHandlerContext.flush(AbstractChannelHandlerContext.java:735)
      11. io.netty.handler.stream.ChunkedWriteHandler.doFlush(ChunkedWriteHandler.java:310)
      12. io.netty.handler.stream.ChunkedWriteHandler.flush(ChunkedWriteHandler.java:138)
      13. io.netty.channel.AbstractChannelHandlerContext.invokeFlush0(AbstractChannelHandlerContext.java:762)
      14. io.netty.channel.AbstractChannelHandlerContext.invokeFlush(AbstractChannelHandlerContext.java:754)
      15. io.netty.channel.AbstractChannelHandlerContext.flush(AbstractChannelHandlerContext.java:735)
      16. io.netty.channel.ChannelDuplexHandler.flush(ChannelDuplexHandler.java:117)
      17. io.netty.channel.AbstractChannelHandlerContext.invokeFlush0(AbstractChannelHandlerContext.java:762)
      18. io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:788)
      19. io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:800)
      20. io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:780)
      21. io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:817)
      22. io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1011)
      23. io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:289)
      23 frames
    7. Vert.x Core
      HttpServerResponse.sendFile
      1. io.vertx.core.net.impl.ConnectionBase.writeToChannel(ConnectionBase.java:117)
      2. io.vertx.core.http.impl.ServerConnection.writeToChannel(ServerConnection.java:184)
      3. io.vertx.core.net.impl.ConnectionBase.sendFile(ConnectionBase.java:248)
      4. io.vertx.core.http.impl.ServerConnection.sendFile(ServerConnection.java:393)
      5. io.vertx.core.http.impl.HttpServerResponseImpl.doSendFile(HttpServerResponseImpl.java:468)
      6. io.vertx.core.http.impl.HttpServerResponseImpl.sendFile(HttpServerResponseImpl.java:336)
      7. io.vertx.core.http.impl.HttpServerResponseImpl.sendFile(HttpServerResponseImpl.java:54)
      8. io.vertx.core.http.HttpServerResponse.sendFile(HttpServerResponse.java:275)
      9. io.vertx.core.http.HttpServerResponse.sendFile(HttpServerResponse.java:262)
      9 frames