Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenkins Job fail #29

Closed
jnehring opened this issue Aug 23, 2016 · 4 comments
Closed

Jenkins Job fail #29

jnehring opened this issue Aug 23, 2016 · 4 comments
Assignees
Labels

Comments

@jnehring
Copy link
Member

Many Jenkins Job fail with this error message. Usually it works when I hit build again for some times but this is very annoying and leads to a lot of questions like "we is my update not deployed on freme-dev?"

FATAL: java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234)
    at com.google.common.cache.LocalCache.get(LocalCache.java:3965)
    at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)
    at jenkins.security.UserDetailsCache.loadUserByUsername(UserDetailsCache.java:127)
    at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1064)
    at hudson.model.User.get(User.java:398)
    at hudson.model.User.get(User.java:367)
    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:669)
    at hudson.model.Run.execute(Run.java:1745)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:404)
Caused by: java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.GithubAuthenticationToken
    at org.jenkinsci.plugins.GithubSecurityRealm.loadUserByUsername(GithubSecurityRealm.java:542)
    at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:172)
    at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:161)
    at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767)
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
    ... 15 more
@jnehring jnehring added the bug label Aug 23, 2016
@jnehring jnehring self-assigned this Aug 23, 2016
@jnehring
Copy link
Member Author

As suggested in a Jenkins forum, I restarted Jenkins. It seems it works better now. I leave this issue open because I am not sure if it is really fixed now.

@jnehring
Copy link
Member Author

I upgraded Jenkins to the latest version and restarted. The problem seems to be gone.

@jnehring
Copy link
Member Author

The bug still occurs

@jnehring jnehring reopened this Aug 24, 2016
@jnehring
Copy link
Member Author

I upgraded all the plugins also. Then I build 5 jobs and the error did not occur once. So I think it is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant