org.apache.shiro.crypto.CryptoException: Unable to execute 'doFinal' with cipher instance [javax.crypto.Cipher@17386918].

shiro-user | Les Hazlewood | 6 years 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

    Shiro User - Padding problems with Crypto

    nabble.com | 9 months ago
    org.apache.shiro.crypto.CryptoException: Unable to execute 'doFinal' with cipher instance [javax.crypto.Cipher@17386918].
  2. 0

    Re: Padding problems with Crypto

    shiro-user | 6 years ago | Tauren Mills
    org.apache.shiro.crypto.CryptoException: Unable to execute 'doFinal' with cipher instance [javax.crypto.Cipher@17386918].
  3. 0

    Re: Padding problems with Crypto

    shiro-user | 6 years ago | Les Hazlewood
    org.apache.shiro.crypto.CryptoException: Unable to execute 'doFinal' with cipher instance [javax.crypto.Cipher@17386918].
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I obtain following exception while entering the secure page: [java] 101637 [http-8080-1] WARN org.apache.shiro.mgt.DefaultSecurityManager - Delegate RememberMeManager instance of type [org.apache.shiro.web.mgt.CookieRememberMeManager] threw an exception during getRememberedPrincipals(). [java] org.apache.shiro.crypto.CryptoException: Unable to correctly extract the Initialization Vector or ciphertext. [java] at org.apache.shiro.crypto.JcaCipherService.decrypt(JcaCipherService.java:381) [java] at org.apache.shiro.mgt.AbstractRememberMeManager.decrypt(AbstractRememberMeManager.java:491) [java] at org.apache.shiro.mgt.AbstractRememberMeManager.convertBytesToPrincipals(AbstractRememberMeManager.java:431) [java] at org.apache.shiro.mgt.AbstractRememberMeManager.getRememberedPrincipals(AbstractRememberMeManager.java:398) [java] at org.apache.shiro.mgt.DefaultSecurityManager.getRememberedIdentity(DefaultSecurityManager.java:567) [java] at org.apache.shiro.mgt.DefaultSecurityManager.resolvePrincipals(DefaultSecurityManager.java:434) [java] at org.apache.shiro.mgt.DefaultSecurityManager.createSubject(DefaultSecurityManager.java:335) [java] at org.apache.shiro.subject.Subject$Builder.buildSubject(Subject.java:819) [java] at org.apache.shiro.web.subject.WebSubject$Builder.buildWebSubject(WebSubject.java:149) [java] at org.apache.shiro.web.servlet.AbstractShiroFilter.createSubject(AbstractShiroFilter.java:202) [java] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:269) [java] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:83) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) [java] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) [java] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) [java] at java.lang.Thread.run(Thread.java:619) [java] Caused by: java.lang.ArrayIndexOutOfBoundsException [java] at java.lang.System.arraycopy(Native Method) [java] at org.apache.shiro.crypto.JcaCipherService.decrypt(JcaCipherService.java:373) [java] ... 23 more Of course I have set the "securityManager.rememberMeManager.cipherKey" in shiro.ini but it did not help. kind regards.

    Apache's JIRA Issue Tracker | 7 years ago | RynekMedyczny.pl
    org.apache.shiro.crypto.CryptoException: Unable to correctly extract the Initialization Vector or ciphertext.
  6. 0

    [Shiro-dev] [jira] Created: (SHIRO-183) Unable to correctly extract the Initialization Vector or ciphertext - Grokbase

    grokbase.com | 7 months ago
    org.apache.shiro.crypto.CryptoException: Unable to correctly extract the Initialization Vector or ciphertext.

  1. johnxfly 4 times, last 1 month ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.shiro.crypto.CryptoException

    Unable to execute 'doFinal' with cipher instance [javax.crypto.Cipher@17386918].

    at org.apache.shiro.crypto.JcaCipherService.crypt()
  2. Shiro
    JcaCipherService.decrypt
    1. org.apache.shiro.crypto.JcaCipherService.crypt(JcaCipherService.java:464)
    2. org.apache.shiro.crypto.JcaCipherService.crypt(JcaCipherService.java:447)
    3. org.apache.shiro.crypto.JcaCipherService.decrypt(JcaCipherService.java:392)
    4. org.apache.shiro.crypto.JcaCipherService.decrypt(JcaCipherService.java:384)
    4 frames
  3. com.sprtz.test
    CryptoTest.main
    1. com.sprtz.test.CryptoTest.doIt(CryptoTest.java:61)
    2. com.sprtz.test.CryptoTest.main(CryptoTest.java:17)
    2 frames