java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken

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

    Jenkins Authorization is integrated with Assembla's auth. Security Realm uses Assembla Auth Plugin. Jobs finish with FAILURE status with the following error message (always the last item in the console log) : {code:java} FATAL: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken at com.assembla.jenkinsci.plugin.AssemblaSecurityRealm.loadUserByUsername(AssemblaSecurityRealm.java:333) at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1050) 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$AbstractBuildExecution.post(AbstractBuild.java:669) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE {code} This behaviour didn't occur in the previous Jenkins version 1.6.x

    Jenkins JIRA | 9 months ago | Jakub Czaplicki
    java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken
  2. 0

    Jenkins Authorization is integrated with Assembla's auth. Security Realm uses Assembla Auth Plugin. Jobs finish with FAILURE status with the following error message (always the last item in the console log) : {code:java} FATAL: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken at com.assembla.jenkinsci.plugin.AssemblaSecurityRealm.loadUserByUsername(AssemblaSecurityRealm.java:333) at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1050) 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$AbstractBuildExecution.post(AbstractBuild.java:669) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE {code} This behaviour didn't occur in the previous Jenkins version 1.6.x

    Jenkins JIRA | 9 months ago | Jakub Czaplicki
    java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken
  3. 0

    [JIRA] [assembla-auth] (JENKINS-34948) UsernamePasswordAuthenticationToken cannot be cast AssemblaAuthenticationToken

    Google Groups | 9 months ago | jakub.c...@gmail.com (JIRA)
    java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be <span class="code-keyword" style="color: #000091">cast</span> to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] (JENKINS-40796) NPE on getUserByUsername when using api/xml

    Google Groups | 2 months ago | doro...@gmail.com (JIRA)
    java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to com.assembla.jenkinsci.plugin.AssemblaAuthenticationToken

      at com.assembla.jenkinsci.plugin.AssemblaSecurityRealm.loadUserByUsername()
    2. com.assembla.jenkinsci
      AssemblaSecurityRealm.loadUserByUsername
      1. com.assembla.jenkinsci.plugin.AssemblaSecurityRealm.loadUserByUsername(AssemblaSecurityRealm.java:333)
      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$AbstractBuildExecution.post(AbstractBuild.java:669)
      3. hudson.model.Run.execute(Run.java:1766)
      4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      5. hudson.model.ResourceController.execute(ResourceController.java:98)
      6. hudson.model.Executor.run(Executor.java:410)
      6 frames