Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66396

Null pointer exception exporting platformlabeler config with JCasC

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • platformlabeler-plugin
    • None
    • Jenkins 2.307, platformlabeler plugin latest release
    • 1091.v6e861c253a70

      A null pointer exception is reported in the JCasC generated configuration on my Jenkins controller. The null pointer exception is reported for one of the agents that uses a non-default platform labeling configuration.

      The stack trace is:

              hudson.slaves.DumbSlave#nodeProperties: java.lang.NullPointerException
                at org.jvnet.hudson.plugins.platformlabeler.LabelConfig.<init>(LabelConfig.java:27)
                at org.jvnet.hudson.plugins.platformlabeler.PlatformLabelerNodeProperty.getLabelConfig(PlatformLabelerNodeProperty.java:22)
              Caused: java.lang.reflect.InvocationTargetException
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                at io.jenkins.plugins.casc.Attribute._getValue(Attribute.java:452)
              Caused: io.jenkins.plugins.casc.ConfiguratorException: Can't read attribute 'labelConfig' from org.jvnet.hudson.plugins.platformlabeler.PlatformLabelerNodeProperty@3078d1ae
                at io.jenkins.plugins.casc.Attribute._getValue(Attribute.java:463)
                at io.jenkins.plugins.casc.Attribute.getValue(Attribute.java:235)
                at io.jenkins.plugins.casc.Attribute.equals(Attribute.java:338)
                at io.jenkins.plugins.casc.BaseConfigurator.compare(BaseConfigurator.java:390)
                at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.describe(DataBoundConfigurator.java:311)
      
      

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: