java.lang.RuntimeException: Failed to instantiate class hudson.matrix.LabelAxis from {"":[{"values":"master"},{"values":"slave"}],"kind":"hudson.matrix.LabelAxis$DescriptorImpl","name":"label","stapler-class":"hudson.matrix.LabelAxis"}

Jenkins JIRA | u127nm | 6 years 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

    Repro steps: - start with clean installation - add one slave "slave" - add multi-configuration job - select "Add Axis" then select "Slaves" - select both "master" and "slave" - save the job When saving matrix configuration in Internet Explorer exception occurs: Status Code: 500 Exception: Stacktrace: java.lang.RuntimeException: Failed to instantiate class hudson.matrix.LabelAxis from {"":[{"values":"master"},{"values":"slave"}],"kind":"hudson.matrix.LabelAxis$DescriptorImpl","name":"label","stapler-class":"hudson.matrix.LabelAxis"} at hudson.model.Descriptor.newInstance(Descriptor.java:497) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:767) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:171) at hudson.matrix.MatrixProject.submit(MatrixProject.java:601) at hudson.model.Job.doConfigSubmit(Job.java:964) ... When saving matrix configuration in Firefox 3.6 everything is ok. Notice that correct instatiation string should be as follows: {"kind":"hudson.matrix.LabelAxis$DescriptorImpl","name":"label","stapler-class":"hudson.matrix.LabelAxis","values":["master","slave"]} instead of what we have in Internet Explorer: {"":[{"values":"master"},{"values":"slave"}],"kind":"hudson.matrix.LabelAxis$DescriptorImpl","name":"label","stapler-class":"hudson.matrix.LabelAxis"}

    Jenkins JIRA | 6 years ago | u127nm
    java.lang.RuntimeException: Failed to instantiate class hudson.matrix.LabelAxis from {"":[{"values":"master"},{"values":"slave"}],"kind":"hudson.matrix.LabelAxis$DescriptorImpl","name":"label","stapler-class":"hudson.matrix.LabelAxis"}
  2. 0

    Repro steps: - start with clean installation - add one slave "slave" - add multi-configuration job - select "Add Axis" then select "Slaves" - select both "master" and "slave" - save the job When saving matrix configuration in Internet Explorer exception occurs: Status Code: 500 Exception: Stacktrace: java.lang.RuntimeException: Failed to instantiate class hudson.matrix.LabelAxis from {"":[{"values":"master"},{"values":"slave"}],"kind":"hudson.matrix.LabelAxis$DescriptorImpl","name":"label","stapler-class":"hudson.matrix.LabelAxis"} at hudson.model.Descriptor.newInstance(Descriptor.java:497) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:767) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:171) at hudson.matrix.MatrixProject.submit(MatrixProject.java:601) at hudson.model.Job.doConfigSubmit(Job.java:964) ... When saving matrix configuration in Firefox 3.6 everything is ok. Notice that correct instatiation string should be as follows: {"kind":"hudson.matrix.LabelAxis$DescriptorImpl","name":"label","stapler-class":"hudson.matrix.LabelAxis","values":["master","slave"]} instead of what we have in Internet Explorer: {"":[{"values":"master"},{"values":"slave"}],"kind":"hudson.matrix.LabelAxis$DescriptorImpl","name":"label","stapler-class":"hudson.matrix.LabelAxis"}

    Jenkins JIRA | 6 years ago | u127nm
    java.lang.RuntimeException: Failed to instantiate class hudson.matrix.LabelAxis from {"":[{"values":"master"},{"values":"slave"}],"kind":"hudson.matrix.LabelAxis$DescriptorImpl","name":"label","stapler-class":"hudson.matrix.LabelAxis"}

    Root Cause Analysis

    1. java.lang.RuntimeException

      Failed to instantiate class hudson.matrix.LabelAxis from {"":[{"values":"master"},{"values":"slave"}],"kind":"hudson.matrix.LabelAxis$DescriptorImpl","name":"label","stapler-class":"hudson.matrix.LabelAxis"}

      at hudson.model.Descriptor.newInstance()
    2. Hudson
      Job.doConfigSubmit
      1. hudson.model.Descriptor.newInstance(Descriptor.java:497)
      2. hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:767)
      3. hudson.util.DescribableList.rebuildHetero(DescribableList.java:171)
      4. hudson.matrix.MatrixProject.submit(MatrixProject.java:601)
      5. hudson.model.Job.doConfigSubmit(Job.java:964)
      5 frames