java.security.ProviderException: Could not determine buffer size

Stack Overflow | Fitzjava | 7 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

    Tomcat 8 Manager war deploy upload fails over SSL

    Stack Overflow | 7 months ago | Fitzjava
    java.security.ProviderException: Could not determine buffer size

    Root Cause Analysis

    1. javax.crypto.ShortBufferException

      Output buffer must be (at least) 12272 bytes long

      at com.oracle.security.ucrypto.NativeGCMCipher.engineUpdate()
    2. com.oracle.security
      NativeGCMCipher.engineUpdate
      1. com.oracle.security.ucrypto.NativeGCMCipher.engineUpdate(NativeGCMCipher.java:266)
      1 frame
    3. Android Platform
      Cipher.doFinal
      1. javax.crypto.CipherSpi.bufferCrypt(CipherSpi.java:828)
      2. javax.crypto.CipherSpi.engineDoFinal(CipherSpi.java:730)
      3. javax.crypto.Cipher.doFinal(Cipher.java:2460)
      3 frames
    4. Java JSSE
      SSLEngineImpl.unwrap
      1. sun.security.ssl.CipherBox.decrypt(CipherBox.java:535)
      2. sun.security.ssl.EngineInputRecord.decrypt(EngineInputRecord.java:200)
      3. sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:974)
      4. sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:907)
      5. sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
      5 frames
    5. Java RT
      SSLEngine.unwrap
      1. javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
      1 frame
    6. Grizzly HTTP
      Request.doRead
      1. org.apache.tomcat.util.net.SecureNioChannel.read(SecureNioChannel.java:455)
      2. org.apache.tomcat.util.net.NioBlockingSelector.read(NioBlockingSelector.java:173)
      3. org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:251)
      4. org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:232)
      5. org.apache.coyote.http11.InternalNioInputBuffer.fill(InternalNioInputBuffer.java:133)
      6. org.apache.coyote.http11.InternalNioInputBuffer$SocketInputBuffer.doRead(InternalNioInputBuffer.java:177)
      7. org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:110)
      8. org.apache.coyote.http11.AbstractInputBuffer.doRead(AbstractInputBuffer.java:416)
      9. org.apache.coyote.Request.doRead(Request.java:469)
      9 frames
    7. Glassfish Core
      InputBuffer.realReadBytes
      1. org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:338)
      1 frame
    8. Tomcat Util
      ByteChunk.substract
      1. org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:395)
      1 frame
    9. Glassfish Core
      CoyoteInputStream.read
      1. org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:363)
      2. org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:190)
      2 frames
    10. Java RT
      FilterInputStream.read
      1. java.io.FilterInputStream.read(FilterInputStream.java:133)
      1 frame
    11. org.apache.tomcat
      MultipartStream$ItemInputStream.read
      1. org.apache.tomcat.util.http.fileupload.util.LimitedInputStream.read(LimitedInputStream.java:132)
      2. org.apache.tomcat.util.http.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:946)
      3. org.apache.tomcat.util.http.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:850)
      3 frames
    12. Java RT
      InputStream.read
      1. java.io.InputStream.read(InputStream.java:101)
      1 frame
    13. org.apache.tomcat
      FileUploadBase.parseRequest
      1. org.apache.tomcat.util.http.fileupload.util.Streams.copy(Streams.java:98)
      2. org.apache.tomcat.util.http.fileupload.util.Streams.copy(Streams.java:68)
      3. org.apache.tomcat.util.http.fileupload.MultipartStream.readBodyData(MultipartStream.java:539)
      4. org.apache.tomcat.util.http.fileupload.MultipartStream.discardBodyData(MultipartStream.java:563)
      5. org.apache.tomcat.util.http.fileupload.MultipartStream.skipPreamble(MultipartStream.java:580)
      6. org.apache.tomcat.util.http.fileupload.FileUploadBase$FileItemIteratorImpl.findNextItem(FileUploadBase.java:874)
      7. org.apache.tomcat.util.http.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:854)
      8. org.apache.tomcat.util.http.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:256)
      9. org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:280)
      9 frames
    14. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.connector.Request.parseParts(Request.java:2730)
      2. org.apache.catalina.connector.Request.parseParameters(Request.java:3064)
      3. org.apache.catalina.connector.Request.getParameter(Request.java:1093)
      4. org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:380)
      5. org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:185)
      6. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      7. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      7 frames
    15. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    16. Glassfish Core
      StandardHostValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
      4. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      5. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      6. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
      7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      8. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)
      9. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
      9 frames
    17. org.apache.catalina
      ReplicationValve.invoke
      1. org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:194)
      2. org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:318)
      2 frames
    18. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      2. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
      3. org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:676)
      4. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      5. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
      5 frames
    19. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
      3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)
      4 frames
    20. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    21. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    22. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame