java.lang.NullPointerException

Jenkins JIRA | Jesse Glick | 3 years ago
  1. 0

    The bug in this ticket is if a user creates a job and the artifactory server becomes unavailable it will fail to load the job on a restart. Below is a reproducible scenario where the job fails to load if artifactory is not available: {quote} 1. Create an artifactory server. 2. Go to Manage Jenkins and link Jenkins to artifactory server 3. Create a new Job that uses the artifactory configuration created in step 2. 4. Shut down artifactory server. 5. Restart the Jenkins server. 6. The job disappears! 7. Start up artifactory. 8. Restart the Jenkins server. 9. The job is now back! {quote} Stack trace: {quote}... SEVERE jenkins.InitReactorRunner$1 onTaskFailed Failed Loading job <foldername> java.lang.NullPointerException at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.getProjectActions(ArtifactoryGenericConfigurator.java:210) at hudson.model.Project.createTransientActions(Project.java:221) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:739) at hudson.model.AbstractProject.onLoad(AbstractProject.java:334) at hudson.model.Project.onLoad(Project.java:90) at hudson.model.Items.load(Items.java:276) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) at hudson.model.Items.load(Items.java:276) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) at hudson.model.Items.load(Items.java:276) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) at hudson.model.Items.load(Items.java:276) at jenkins.model.Jenkins$18.run(Jenkins.java:2593) at ... {quote}

    JFrog JIRA | 3 years ago | Steven Christou
    java.lang.NullPointerException
  2. 0

    A user of the Artifactory plugin encountered an error which caused an entire folder to not load: {code:none} ... SEVERE jenkins.InitReactorRunner$1 onTaskFailed Failed Loading job <foldername> java.lang.NullPointerException at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.getProjectActions(ArtifactoryGenericConfigurator.java:210) at hudson.model.Project.createTransientActions(Project.java:221) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:739) at hudson.model.AbstractProject.onLoad(AbstractProject.java:334) at hudson.model.Project.onLoad(Project.java:90) at hudson.model.Items.load(Items.java:276) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) at hudson.model.Items.load(Items.java:276) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) at hudson.model.Items.load(Items.java:276) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) at hudson.model.Items.load(Items.java:276) at jenkins.model.Jenkins$18.run(Jenkins.java:2593) at ... {code} The bug is in the Artifactory plugin, yet Jenkins core ought to have caught this and reported it without breaking loading of the job, much less the whole (top-level) folder.

    Jenkins JIRA | 3 years ago | Jesse Glick
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    The bug in this ticket is if a user creates a job and the artifactory server becomes unavailable it will fail to load the job on a restart. Below is a reproducible scenario where the job fails to load if artifactory is not available: {quote} 1. Create an artifactory server. 2. Go to Manage Jenkins and link Jenkins to artifactory server 3. Create a new Job that uses the artifactory configuration created in step 2. 4. Shut down artifactory server. 5. Restart the Jenkins server. 6. The job disappears! 7. Start up artifactory. 8. Restart the Jenkins server. 9. The job is now back! {quote} Stack trace: {quote}... SEVERE jenkins.InitReactorRunner$1 onTaskFailed Failed Loading job <foldername> java.lang.NullPointerException at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.getProjectActions(ArtifactoryGenericConfigurator.java:210) at hudson.model.Project.createTransientActions(Project.java:221) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:739) at hudson.model.AbstractProject.onLoad(AbstractProject.java:334) at hudson.model.Project.onLoad(Project.java:90) at hudson.model.Items.load(Items.java:276) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) at hudson.model.Items.load(Items.java:276) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) at hudson.model.Items.load(Items.java:276) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) at hudson.model.Items.load(Items.java:276) at jenkins.model.Jenkins$18.run(Jenkins.java:2593) at ... {quote}

    JFrog JIRA | 3 years ago | Steven Christou
    java.lang.NullPointerException

    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.NullPointerException

      No message provided

      at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.getProjectActions()
    2. org.jfrog.hudson
      ArtifactoryGenericConfigurator.getProjectActions
      1. org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.getProjectActions(ArtifactoryGenericConfigurator.java:210)
      1 frame
    3. Hudson
      ItemGroupMixIn.loadChildren
      1. hudson.model.Project.createTransientActions(Project.java:221)
      2. hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:739)
      3. hudson.model.AbstractProject.onLoad(AbstractProject.java:334)
      4. hudson.model.Project.onLoad(Project.java:90)
      5. hudson.model.Items.load(Items.java:276)
      6. hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105)
      6 frames
    4. com.cloudbees.hudson
      Folder.onLoad
      1. com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238)
      1 frame
    5. Hudson
      ItemGroupMixIn.loadChildren
      1. hudson.model.Items.load(Items.java:276)
      2. hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105)
      2 frames
    6. com.cloudbees.hudson
      Folder.onLoad
      1. com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238)
      1 frame
    7. Hudson
      ItemGroupMixIn.loadChildren
      1. hudson.model.Items.load(Items.java:276)
      2. hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105)
      2 frames
    8. com.cloudbees.hudson
      Folder.onLoad
      1. com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238)
      1 frame
    9. Hudson
      Items.load
      1. hudson.model.Items.load(Items.java:276)
      1 frame
    10. jenkins.model
      Jenkins$18.run
      1. jenkins.model.Jenkins$18.run(Jenkins.java:2593)
      1 frame