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

NullPointerException publishing data to target

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • influxdb-plugin
    • None

      I am running the InfluxDBPlugin inside of a Flexible Publish plugin on a freestyle job. I am getting the following NullPointerException in the log:

      *20:09:28* [InfluxDB Plugin] Collecting data...
      *20:09:28* [InfluxDB plugin] Custom Data plugin data found. Writing to InfluxDB...
      *20:09:28* [InfluxDB plugin] Git plugin data found. Writing to InfluxDB...
      *20:09:28* [InfluxDB plugin] Metrics plugin data found. Writing to InfluxDB...
      *20:09:28* [InfluxDB Plugin] Publishing data to target 'Work Zone InfluxDB' (url='
      [https://myurl.com...|https://influxdb.wz-dash-prod.wz-dash.c.na-us-2.cloud.sap/]
      ', database='mydb/autogen')
      *20:09:28* ERROR: [flexible-publish] Publish build data to InfluxDB (jenkinsci.plugins.influxdb.InfluxDbPublisher@5b6b4f44) aborted due to exception
      *20:09:28* java.lang.NullPointerException
      

      I'm trying to figure out how to debug the NullPointerException. There doesn't seem to be any way to add debug logging. Do I need to install a debug version of the plugin?
      I have checked the connection to InfluxDB, using the Test Connection feature and that works fine. 

      InfluxDB Plugin: 3.6.1
      Jenkins: 2.452.2
      Flexible Publish: 0.16.1
      Metrics Plugin: 4.2.21-451.vd51df8df52ec
      Git plugin: 5.2.2
      Build with Parameters: 76.v9382db_f78962

          [JENKINS-73465] NullPointerException publishing data to target

          Aleksi Simell added a comment -

          Hi  carlsoane,

          Sorry for the delay in my response.

          Unfortunately, this log trace doesn't really give me any insight on what could be causing this issue. But I also have no idea what "flexible-publish" is. Could that cause the issue?

          There's no official debug version of the plugin available, but you are of course very welcome to fork the repository, make some changes, build it, install it, and then check how your changes affect the behaviour. That's how open source works!

          Aleksi Simell added a comment - Hi   carlsoane , Sorry for the delay in my response. Unfortunately, this log trace doesn't really give me any insight on what could be causing this issue. But I also have no idea what "flexible-publish" is. Could that cause the issue? There's no official debug version of the plugin available, but you are of course very welcome to fork the repository, make some changes, build it, install it, and then check how your changes affect the behaviour. That's how open source works!

            aleksisimell Aleksi Simell
            carlsoane Carl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: