java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken

Jenkins JIRA | rsandell | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    [JIRA] [core] (JENKINS-25791) User.impersonate throws ClassCastException when using GitHub auth

    Google Groups | 2 years ago | sam.m...@gmail.com (JIRA)
    java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken<br />
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken

      at org.jenkinsci.plugins.GithubSecurityRealm.loadUserByUsername()
    2. org.jenkinsci.plugins
      GithubSecurityRealm$2.loadUserByUsername
      1. org.jenkinsci.plugins.GithubSecurityRealm.loadUserByUsername(GithubSecurityRealm.java:542)
      2. org.jenkinsci.plugins.GithubSecurityRealm$2.loadUserByUsername(GithubSecurityRealm.java:494)
      2 frames
    3. jenkins.security
      ImpersonatingUserDetailsService.loadUserByUsername
      1. jenkins.security.ImpersonatingUserDetailsService.loadUserByUsername(ImpersonatingUserDetailsService.java:32)
      1 frame
    4. Hudson
      User.impersonate
      1. hudson.model.User.impersonate(User.java:282)
      1 frame