java.lang.IllegalStateException

Unable to crypt bytes with cipher [javax.crypto.Cipher@1a11151].

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via Unknown by Kristine O'Connor,
  • via Unknown by Kristine O'Connor,
  • via Unknown by Kristine O'Connor,
  • Stack trace

    • java.lang.IllegalStateException: Unable to crypt bytes with cipher [javax.crypto.Cipher@1a11151]. at org.jsecurity.crypto.BlowfishCipher.crypt(BlowfishCipher.java:127) at org.jsecurity.crypto.BlowfishCipher.crypt(BlowfishCipher.java:142) at org.jsecurity.crypto.BlowfishCipher.decrypt(BlowfishCipher.java:98) at org.jsecurity.subject.AbstractRememberMeManager.decrypt(AbstractRememberMeManager.java:243) at org.jsecurity.subject.AbstractRememberMeManager.getRememberedPrincipals(AbstractRememberMeManager.java:192) at org.jsecurity.mgt.DefaultSecurityManager.getRememberedIdentity(DefaultSecurityManager.java:402) at org.jsecurity.web.DefaultWebSecurityManager.getPrincipals(DefaultWebSecurityManager.java:179) at org.jsecurity.web.DefaultWebSecurityManager.createSubject(DefaultWebSecurityManager.java:217) at org.jsecurity.web.DefaultWebSecurityManager.createSubject(DefaultWebSecurityManager.java:213) at org.jsecurity.web.DefaultWebSecurityManager.createSubject(DefaultWebSecurityManager.java:202) at org.jsecurity.mgt.DefaultSecurityManager.getSubject(DefaultSecurityManager.java:417) at org.jsecurity.mgt.DefaultSecurityManager.getSubject(DefaultSecurityManager.java:424) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:367) at org.sonatype.nexus.security.filter.NexusJSecurityFilter.doFilterInternal(NexusJSecurityFilter.java:67) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.BlowfishCipher.engineDoFinal(DashoA13*..) at javax.crypto.Cipher.doFinal(DashoA13*..) at org.jsecurity.crypto.BlowfishCipher.crypt(BlowfishCipher.java:124) ... 31 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.