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

GitHub | ppp0 | 6 months ago
  1. 0

    [Jenkins] - Test run without failures ends with java exception (and fails)

    GitHub | 6 months ago | ppp0
    java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken
  2. 0

    [JIRA] [core] (JENKINS-34775) Broken jobs after upgrade to 1.651.2 security update

    Google Groups | 7 months ago | leandro....@sociomantic.com (JIRA)
    java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken
  3. 0

    After upgrading to 1.651.2 security update, jobs are getting this error: {noformat} FATAL: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken at org.jenkinsci.plugins.GithubSecurityRealm.loadUserByUsername(GithubSecurityRealm.java:644) at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1049) at hudson.model.User.get(User.java:395) at hudson.model.User.get(User.java:364) at hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:374) at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:435) at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:350) at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:346) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:672) at hudson.model.Run.execute(Run.java:1763) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {noformat} Also, in the "Manage Old Data" section, I see very suspicious stuff: {noformat} hudson.matrix.MatrixRun Team » carbon-c-relay » precise #2 1.653 hudson.matrix.MatrixBuild Team » proj #22 1.653 hudson.model.FreeStyleBuild Team » other #255 1.653 {noformat} Why is there any data in 1.653 format if I'm using 1.651.2 (and upgraded from 1.651.1)? Is there any archive with old debian packages to be able to downgrade? All our jobs are broken now. Thanks!

    Jenkins JIRA | 7 months ago | Leandro Lucarella
    java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Please apply "JENKINS_JAVA_OPTIONS="-Dhudson.model.User.SECURITY_243_FULL_DEFENSE=false" in /etc/sysconfig/jenkins on OpenSCAP Jenkins slaves as a temporary workaround for JENKINS-34775 issue

    GitHub | 7 months ago | iankko
    java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken
  6. 0

    After upgrading to 1.651.2 security update, jobs are getting this error: {noformat} FATAL: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken at org.jenkinsci.plugins.GithubSecurityRealm.loadUserByUsername(GithubSecurityRealm.java:644) at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1049) at hudson.model.User.get(User.java:395) at hudson.model.User.get(User.java:364) at hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:374) at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:435) at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:350) at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:346) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:672) at hudson.model.Run.execute(Run.java:1763) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {noformat} Also, in the "Manage Old Data" section, I see very suspicious stuff: {noformat} hudson.matrix.MatrixRun Team » carbon-c-relay » precise #2 1.653 hudson.matrix.MatrixBuild Team » proj #22 1.653 hudson.model.FreeStyleBuild Team » other #255 1.653 {noformat} Why is there any data in 1.653 format if I'm using 1.651.2 (and upgraded from 1.651.1)? Is there any archive with old debian packages to be able to downgrade? All our jobs are broken now. Thanks!

    Jenkins JIRA | 7 months ago | Leandro Lucarella
    java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken

    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. 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.loadUserByUsername
      1. org.jenkinsci.plugins.GithubSecurityRealm.loadUserByUsername(GithubSecurityRealm.java:644)
      1 frame
    3. Hudson
      User.get
      1. hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1050)
      2. hudson.model.User.get(User.java:395)
      3. hudson.model.User.get(User.java:364)
      3 frames
    4. Hudson GIT plugin
      GitChangeSet.getAuthor
      1. hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:374)
      2. hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:435)
      2 frames
    5. Hudson
      Executor.run
      1. hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:350)
      2. hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:346)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669)
      4. hudson.model.Run.execute(Run.java:1766)
      5. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      6. hudson.model.ResourceController.execute(ResourceController.java:98)
      7. hudson.model.Executor.run(Executor.java:410)
      7 frames