org.apache.shiro.authc.AuthenticationException

Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - testUser, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web49

  • via Google Groups by Linus Nikander, 9 months ago
    Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - testUser, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
  • Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - admin, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
  • via Google Groups by SoftDev, 1 month ago
    Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - admin, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
  • Stack trace

    • org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - testUser, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException). at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:214)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)[shiro-core-1.2.3.jar:1.2.3] at com.manydesigns.portofino.actions.user.LoginAction.login(LoginAction.java:152)[portofino-base-4.1.3.jar:4.1.3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_80] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_80] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_80] at java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_80] at net.sourceforge.stripes.controller.DispatcherHelper$6.intercept(DispatcherHelper.java:456)[stripes-1.5.8.jar:1.5.8] at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:158)[stripes-1.5.8.jar:1.5.8] at com.manydesigns.portofino.interceptors.GuardsInterceptor.intercept(GuardsInterceptor.java:61)[portofino-base-4.1.3.jar:4.1.3] at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)[stripes-1.5.8.jar:1.5.8] at net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)[stripes-1.5.8.jar:1.5.8] at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)[stripes-1.5.8.jar:1.5.8] at net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74)[stripes-1.5.8.jar:1.5.8] at net.sourceforge.stripes.controller.DispatcherHelper.invokeEventHandler(DispatcherHelper.java:454)[stripes-1.5.8.jar:1.5.8] at net.sourceforge.stripes.controller.DispatcherServlet.invokeEventHandler(DispatcherServlet.java:278)[stripes-1.5.8.jar:1.5.8] at net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:160)[stripes-1.5.8.jar:1.5.8] at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)[servlet-api.jar:na] at net.sourceforge.stripes.controller.DynamicMappingFilter$2.doFilter(DynamicMappingFilter.java:453)[stripes-1.5.8.jar:1.5.8] at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:260)[stripes-1.5.8.jar:1.5.8] at net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:440)[stripes-1.5.8.jar:1.5.8] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)[catalina.jar:7.0.62] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)[catalina.jar:7.0.62] at com.manydesigns.portofino.servlets.I18nFilter.doFilter(I18nFilter.java:60)[portofino-base-4.1.3.jar:4.1.3] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)[catalina.jar:7.0.62] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)[catalina.jar:7.0.62] at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:260)[stripes-1.5.8.jar:1.5.8] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)[catalina.jar:7.0.62] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)[catalina.jar:7.0.62] at com.manydesigns.portofino.servlets.CleanupFilter.doFilter(CleanupFilter.java:47)[portofino-database-4.1.3.jar:4.1.3] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)[catalina.jar:7.0.62] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)[catalina.jar:7.0.62] at com.manydesigns.portofino.servlets.DispatcherFilter.doFilter(DispatcherFilter.java:61)[portofino-pageactions-4.1.3.jar:4.1.3] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)[catalina.jar:7.0.62] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)[catalina.jar:7.0.62] at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)[shiro-web-1.2.3.jar:1.2.3] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.3.jar:1.2.3] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)[catalina.jar:7.0.62] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)[catalina.jar:7.0.62] at com.manydesigns.elements.servlet.ElementsFilter.doHttpFilter(ElementsFilter.java:132)[elements-4.1.3.jar:4.1.3] at com.manydesigns.elements.servlet.ElementsFilter.doFilter(ElementsFilter.java:83)[elements-4.1.3.jar:4.1.3] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)[catalina.jar:7.0.62] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)[catalina.jar:7.0.62] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)[catalina.jar:7.0.62] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)[catalina.jar:7.0.62] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)[catalina.jar:7.0.62] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)[catalina.jar:7.0.62] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)[catalina.jar:7.0.62] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)[catalina.jar:7.0.62] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)[catalina.jar:7.0.62] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)[catalina.jar:7.0.62] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)[tomcat-coyote.jar:7.0.62] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)[tomcat-coyote.jar:7.0.62] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)[tomcat-coyote.jar:7.0.62] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_80] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_80] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-coyote.jar:7.0.62] at java.lang.Thread.run(Thread.java:745)[na:1.7.0_80] Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.math.BigInteger at org.hibernate.type.descriptor.java.BigIntegerTypeDescriptor.unwrap(BigIntegerTypeDescriptor.java:36)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.type.descriptor.sql.DecimalTypeDescriptor$1.doBind(DecimalTypeDescriptor.java:65)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:90)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:286)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:281)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.Loader.bindPositionalParameters(Loader.java:1995)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.Loader.bindParameterValues(Loader.java:1966)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1901)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1862)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1839)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.Loader.doQuery(Loader.java:910)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:355)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.Loader.doList(Loader.java:2554)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.Loader.doList(Loader.java:2540)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2370)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.Loader.list(Loader.java:2365)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:126)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1682)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:380)[hibernate-core-4.3.8.Final.jar:4.3.8.Final] at org.hibernate.Criteria$list$0.call(Unknown Source)[na:na] at Security.loadAuthenticationInfo(Security.groovy:142)[na:na] at Security$loadAuthenticationInfo.callCurrent(Unknown Source)[na:na] at Security.doGetAuthenticationInfo(Security.groovy:113)[na:na] at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)[shiro-core-1.2.3.jar:1.2.3] at com.manydesigns.portofino.shiro.SecurityGroovyRealm.getAuthenticationInfo(SecurityGroovyRealm.java:213)[portofino-pageactions-4.1.3.jar:4.1.3] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)[shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)[shiro-core-1.2.3.jar:1.2.3] ... 64 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

    You’re the first here who have seen this exception.