org.apache.shiro.authc.AuthenticationException: Authentication token of type [class org.apache.shiro.authc.UsernamePasswordToken] could not be authenticated by any configured realms. Please ensure that at least one realm can authenticate these tokens.

Stack Overflow | user3600073 | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    Zeppelin LDAP authentication

    Stack Overflow | 8 months ago | user3600073
    org.apache.shiro.authc.AuthenticationException: Authentication token of type [class org.apache.shiro.authc.UsernamePasswordToken] could not be authenticated by any configured realms. Please ensure that at least one realm can authenticate these tokens.
  2. 0
    samebug tip
    Assign onCickListener to imageView in ExpandableListView inside getChildView.
  3. 0
    samebug tip
    Update graylog2-server to lastest version, 0.20.7 or further
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    In your web.xml, try moving shiro's configuration before any other filter-mapping declarations.
  6. 0

    Issue with login

    Google Groups | 3 years ago | wingZero21
    org.apache.shiro.authc.AuthenticationException: Authentication token of type [class org.apache.shiro.authc.UsernamePasswordToken] could not be authenticated by any configured realms. Please ensure that at least one realm can authenticate these tokens.

  1. kid 6 times, last 10 months ago
2 unregistered visitors
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.authc.AuthenticationException

    Authentication token of type [class org.apache.shiro.authc.UsernamePasswordToken] could not be authenticated by any configured realms. Please ensure that at least one realm can authenticate these tokens.

    at org.apache.shiro.authc.pam.AtLeastOneSuccessfulStrategy.afterAllAttempts()
  2. Shiro
    DelegatingSubject.login
    1. org.apache.shiro.authc.pam.AtLeastOneSuccessfulStrategy.afterAllAttempts(AtLeastOneSuccessfulStrategy.java:54)
    2. org.apache.shiro.authc.pam.ModularRealmAuthenticator.doMultiRealmAuthentication(ModularRealmAuthenticator.java:235)
    3. org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:269)
    4. org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
    5. org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
    6. org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
    7. org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
    7 frames
  3. org.apache.zeppelin
    LoginRestApi.postLogin
    1. org.apache.zeppelin.rest.LoginRestApi.postLogin(LoginRestApi.java:76)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  5. Apache CXF Core
    AbstractInvoker.invoke
    1. org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    2. org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
    2 frames
  6. Apache CXF Runtime JAX-RS Frontend
    JAXRSInvoker.invoke
    1. org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:192)
    2. org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
    2 frames
  7. Apache CXF Core
    ChainInitiationObserver.onMessage
    1. org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
    2. org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
    3. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
    4. org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
    4 frames
  8. Apache CXF Runtime HTTP Transport
    AbstractHTTPServlet.doPost
    1. org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
    2. org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
    3. org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
    4. org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
    5. org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:167)
    6. org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
    7. org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
    7 frames
  9. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
    1 frame
  10. Apache CXF Runtime HTTP Transport
    AbstractHTTPServlet.service
    1. org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
    1 frame
  11. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
    2. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
    2 frames
  12. Shiro
    OncePerRequestFilter.doFilter
    1. org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
    2. org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
    3. org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
    4. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
    5. org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
    6. org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
    7. org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
    8. org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
    9. org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
    10. org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
    11. org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
    12. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
    12 frames
  13. Jetty
    ServletHandler$CachedChain.doFilter
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    1 frame
  14. org.apache.zeppelin
    CorsFilter.doFilter
    1. org.apache.zeppelin.server.CorsFilter.doFilter(CorsFilter.java:72)
    1 frame
  15. Jetty
    QueuedThreadPool$3.run
    1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
    12. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    13. org.eclipse.jetty.server.Server.handle(Server.java:499)
    14. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
    15. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    16. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
    17. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    18. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    18 frames
  16. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame