Jobs are missing in the UI with ArrayIndexOutOfBoundsException

Article ID:360054884952
1 minute readKnowledge base


You have a folder that is missing all of its jobs and:

  • You notice the jobs are still on the filesystem and they’re still being built.

  • You’re getting an angry Jenkins screen when trying to access to the jobs on the UI.

  • You’re getting the following error on the logs:

java.lang.ArrayIndexOutOfBoundsException: 0
    at java.util.concurrent.CopyOnWriteArrayList.get(
    at java.util.concurrent.CopyOnWriteArrayList.get(
    at hudson.model.ViewGroupMixIn.getPrimaryView(
    at jenkins.model.Jenkins.getPrimaryView(
    at hudson.model.View.isDefault(
    at hudson.model.AbstractItem.getUrl(
    at hudson.model.AbstractItem.getUrl(
Caused: java.lang.reflect.InvocationTargetException


This issue is caused by an assumption of an existing view on Jenkins core.

Update your product to the higher version as possible but not older than as it will include the fix for this issue implemented on Jenkins core 2.206.


To work around it, you can create a Dashboard view with the following configuration:

  • Check using Recurse in subfolders.

  • Check Use a regular expression to include jobs into the view and set it to .*.

This will provide you with a view that is showing up this specific folder content.