java.lang.ClassCastException: jenkins.branch.MultiBranchProject$3 cannot be cast to hudson.security.SidACL

Jenkins JIRA | stephenconnolly | 1 year ago
  1. 0

    [JIRA] [branch-api-plugin] (JENKINS-31860) java.lang.ClassCastException: jenkins.branch.MultiBranchProject$3 cannot be cast to hudson.security.SidACL

    Google Groups | 1 year ago | stephen...@java.net (JIRA)
    java.lang.ClassCastException: jenkins.branch.MultiBranchProject$3 cannot be cast to hudson.security.SidACL
  2. 0

    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}

    Jenkins JIRA | 1 year ago | stephenconnolly
    java.lang.ClassCastException: jenkins.branch.MultiBranchProject$3 cannot be cast to hudson.security.SidACL
  3. 0

    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}

    Jenkins JIRA | 1 year ago | stephenconnolly
    java.lang.ClassCastException: jenkins.branch.MultiBranchProject$3 cannot be cast to hudson.security.SidACL
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClassCastException when retrieving AgendaEventListener collection

    https://bugzilla.redhat.com/bugzilla/ | 5 years ago | Tomas Schlosser
    java.lang.ClassCastException: org.jbpm.process.instance.ProcessRuntimeImpl$3 cannot be cast to org.drools.event.rule.AgendaEventListener
  6. 0

    ClassCastException when creating new character

    GitHub | 5 years ago | kelemen
    java.lang.ClassCastException: net.infonode.gui.draggable.DraggableComponentBox$3 cannot be cast to net.infonode.gui.ScrollableBox

    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

      jenkins.branch.MultiBranchProject$3 cannot be cast to hudson.security.SidACL

      at hudson.security.ProjectMatrixAuthorizationStrategy.getACL()
    2. Hudson
      AbstractItem.hasPermission
      1. hudson.security.ProjectMatrixAuthorizationStrategy.getACL(ProjectMatrixAuthorizationStrategy.java:71)
      2. hudson.security.ProjectMatrixAuthorizationStrategy.getACL(ProjectMatrixAuthorizationStrategy.java:64)
      3. hudson.model.Job.getACL(Job.java:1479)
      4. hudson.model.AbstractItem.hasPermission(AbstractItem.java:505)
      4 frames
    3. com.cloudbees.hudson
      AbstractFolder.getItems
      1. com.cloudbees.hudson.plugins.folder.AbstractFolder.getItems(AbstractFolder.java:566)
      1 frame
    4. Hudson
      Items.getAllItems
      1. hudson.model.Items.getAllItems(Items.java:350)
      2. hudson.model.Items.getAllItems(Items.java:370)
      3. hudson.model.Items.getAllItems(Items.java:370)
      4. hudson.model.Items.getAllItems(Items.java:346)
      4 frames
    5. jenkins.model
      Jenkins.getAllItems
      1. jenkins.model.Jenkins.getAllItems(Jenkins.java:1404)
      1 frame
    6. com.cloudbees.hudson
      FolderCron.doRun
      1. com.cloudbees.hudson.plugins.folder.computed.FolderCron.checkTriggers(FolderCron.java:117)
      2. com.cloudbees.hudson.plugins.folder.computed.FolderCron.doRun(FolderCron.java:99)
      2 frames
    7. Hudson
      SafeTimerTask.run
      1. hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51)
      1 frame
    8. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames