java.lang.ClassCastException: org.apereo.cas.authentication.UsernamePasswordCredential cannot be cast to org.apereo.cas.authentication.Credential

GitHub | niliubang | 5 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

    WARN [org.apereo.cas.web.flow.resolver.impl.InitialAuthenticationAttemptWebflowEventResolver] - <org.apereo.cas.authentication.UsernamePasswordCredential cannot be cast to org.apereo.cas.authentication.Credential>

    GitHub | 5 months ago | niliubang
    java.lang.ClassCastException: org.apereo.cas.authentication.UsernamePasswordCredential cannot be cast to org.apereo.cas.authentication.Credential
  2. 0

    java.lang.ClassCastException: org.apereo.cas.authentication.UsernamePasswordCredential cannot be cast to org.apereo.cas.authentication.Credential

    GitHub | 6 months ago | niliubang
    java.lang.ClassCastException: org.apereo.cas.authentication.UsernamePasswordCredential cannot be cast to org.apereo.cas.authentication.Credential

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apereo.cas.authentication.UsernamePasswordCredential cannot be cast to org.apereo.cas.authentication.Credential

      at org.apereo.cas.web.support.WebUtils.getCredential()
    2. org.apereo.cas
      AbstractCasWebflowEventResolver.resolveSingle
      1. org.apereo.cas.web.support.WebUtils.getCredential(WebUtils.java:345)[bin/:?]
      2. org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver.getCredentialFromContext(AbstractCasWebflowEventResolver.java:167)[bin/:?]
      3. org.apereo.cas.web.flow.resolver.impl.InitialAuthenticationAttemptWebflowEventResolver.resolveInternal(InitialAuthenticationAttemptWebflowEventResolver.java:42)[bin/:?]
      4. org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver.resolve(AbstractCasWebflowEventResolver.java:427)[bin/:?]
      5. org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver.resolveSingle(AbstractCasWebflowEventResolver.java:440)[bin/:?]
      5 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_91]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_91]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_91]
      4. java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_91]
      4 frames