java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Seems to be either an invalid assumption that return type narrowing is valid in {{ProjectMatrixAuthorizationStrategy}} or the branch-api needs to honour the {{SidACL}} expectation {code:none} java.lang.ClassCastException: jenkins.branch.MultiBranchProject$3 cannot be cast to hudson.security.SidACL at hudson.security.ProjectMatrixAuthorizationStrategy.getACL(ProjectMatrixAuthorizationStrategy.java:71) at hudson.security.ProjectMatrixAuthorizationStrategy.getACL(ProjectMatrixAuthorizationStrategy.java:64) at hudson.model.Job.getACL(Job.java:1479) at hudson.model.AbstractItem.hasPermission(AbstractItem.java:505) at com.cloudbees.hudson.plugins.folder.AbstractFolder.getItems(AbstractFolder.java:566) at hudson.model.Items.getAllItems(Items.java:350) at hudson.model.Items.getAllItems(Items.java:370) at hudson.model.Items.getAllItems(Items.java:370) at hudson.model.Items.getAllItems(Items.java:346) at jenkins.model.Jenkins.getAllItems(Jenkins.java:1404) at com.cloudbees.hudson.plugins.folder.computed.FolderCron.checkTriggers(FolderCron.java:117) at com.cloudbees.hudson.plugins.folder.computed.FolderCron.doRun(FolderCron.java:99) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}
    via by stephenconnolly,
  • Seems to be either an invalid assumption that return type narrowing is valid in {{ProjectMatrixAuthorizationStrategy}} or the branch-api needs to honour the {{SidACL}} expectation {code:none} java.lang.ClassCastException: jenkins.branch.MultiBranchProject$3 cannot be cast to hudson.security.SidACL at hudson.security.ProjectMatrixAuthorizationStrategy.getACL(ProjectMatrixAuthorizationStrategy.java:71) at hudson.security.ProjectMatrixAuthorizationStrategy.getACL(ProjectMatrixAuthorizationStrategy.java:64) at hudson.model.Job.getACL(Job.java:1479) at hudson.model.AbstractItem.hasPermission(AbstractItem.java:505) at com.cloudbees.hudson.plugins.folder.AbstractFolder.getItems(AbstractFolder.java:566) at hudson.model.Items.getAllItems(Items.java:350) at hudson.model.Items.getAllItems(Items.java:370) at hudson.model.Items.getAllItems(Items.java:370) at hudson.model.Items.getAllItems(Items.java:346) at jenkins.model.Jenkins.getAllItems(Jenkins.java:1404) at com.cloudbees.hudson.plugins.folder.computed.FolderCron.checkTriggers(FolderCron.java:117) at com.cloudbees.hudson.plugins.folder.computed.FolderCron.doRun(FolderCron.java:99) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}
    via by Stephen Connolly,
    • java.lang.ClassCastException: jenkins.branch.MultiBranchProject$3 cannot be cast to hudson.security.SidACL at hudson.security.ProjectMatrixAuthorizationStrategy.getACL(ProjectMatrixAuthorizationStrategy.java:71) at hudson.security.ProjectMatrixAuthorizationStrategy.getACL(ProjectMatrixAuthorizationStrategy.java:64) at hudson.model.Job.getACL(Job.java:1479) at hudson.model.AbstractItem.hasPermission(AbstractItem.java:505) at com.cloudbees.hudson.plugins.folder.AbstractFolder.getItems(AbstractFolder.java:566) at hudson.model.Items.getAllItems(Items.java:350) at hudson.model.Items.getAllItems(Items.java:370) at hudson.model.Items.getAllItems(Items.java:370) at hudson.model.Items.getAllItems(Items.java:346) at jenkins.model.Jenkins.getAllItems(Jenkins.java:1404) at com.cloudbees.hudson.plugins.folder.computed.FolderCron.checkTriggers(FolderCron.java:117) at com.cloudbees.hudson.plugins.folder.computed.FolderCron.doRun(FolderCron.java:99) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
    No Bugmate found.