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

Jenkins JIRA | Stephen Connolly | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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 | Stephen Connolly
    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

    Help:basic RMI question

    Google Groups | 2 decades ago | Paolo De Lutiis
    java.lang.ClassCastException: serverPackage.ServerClass_Stub at clientPackage.myApplet.init(myApplet.java:line#) at sun.applet.AppletPanel.run(AppletPanel.java:273) at java.lang.Thread.
  6. 0

    Shared hosting Bungeecord problems.

    GitHub | 3 years ago | Arksenu
    java.lang.ClassCastException: bka cannot be cast to fs All my servers are set to onlinemode: false Here is my config.yml groups: arksenu: - admin disabled_commands: - find player_limit: -1 stats: 347d1d62-6fb6-4869-bd43-7d0745de8e3c permissions: default: - bungeecord.command.server - bungeecord.command.list admin: - bungeecord.command.ip - bungeecord.command.alert - bungeecord.command.end - bungeecord.command.reload listeners: - max_players: 18 fallback_server: hub host: 0.0.0.0:35289 bind_local_address: true ping_passthrough: false tab_list: GLOBAL_PING default_server: hub forced_hosts: pvp.md-5.net: hub tab_size: 60 force_default_server: true motd: ’Network’ query_enabled: false query_port: 25565 timeout: 30000 connection_throttle: 4000 servers: hub: address: 108.170.8.146:35289 restricted: false motd: test UvGames: address: 66.85.165.170:26200 restricted: false motd: test UvPrison: address: 66.85.128.90:25928 restricted: false motd: test ip_forward: false online_mode: true And here is my console message -> UpstreamBridge has disconnected disconnected with: Exception Connecting:RuntimeException : Server is online mode! @ net.md_5.bungee.ServerConnector:188

    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