[JIRA] (JENKINS-55594) NPE on not matching targets

2 views
Skip to first unread message

christopher.fenner@sap.com (JIRA)

unread,
Jan 15, 2019, 4:22:04 AM1/15/19
to jenkinsc...@googlegroups.com
Christopher Fenner created an issue
 
Jenkins / Bug JENKINS-55594
NPE on not matching targets
Issue Type: Bug Bug
Assignee: Aleksi Simell
Components: influxdb-plugin
Created: 2019-01-15 09:21
Priority: Minor Minor
Reporter: Christopher Fenner

If no matching target is found in the target list, the plugin exits with a NPE.If no matching target is found in the target list, the plugin exits with a NPE.

java.lang.NullPointerException
	at jenkinsci.plugins.influxdb.InfluxDbPublisher.resolveTimestampForPointGenerationInNanoseconds(InfluxDbPublisher.java:363)
	at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:315)
	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:51)
	at hudson.security.ACL.impersonate(ACL.java:290)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:48)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Fix & test provided in https://github.com/jenkinsci/influxdb-plugin/pull/53 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

christopher.fenner@sap.com (JIRA)

unread,
Jan 15, 2019, 4:32:03 AM1/15/19
to jenkinsc...@googlegroups.com
Christopher Fenner updated an issue
Change By: Christopher Fenner
{{If no matching target is found in the target list, the plugin exits with a NPE.If no matching target is found in the target list, the plugin exits with a NPE.}}
{code:java}

java.lang.NullPointerException
at jenkinsci.plugins.influxdb.InfluxDbPublisher.resolveTimestampForPointGenerationInNanoseconds(InfluxDbPublisher.java:363)
at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:315)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:51)
at hudson.security.ACL.impersonate(ACL.java:290)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:48)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748){code}
Fix & test provided in [https://github.com/jenkinsci/influxdb-plugin/pull/53


 

Pipeline to test:
{code:java}
node{
step([
   $class: 'InfluxDbPublisher',
   selectedTarget: 'anything',
   customPrefix: null,
   customData: null,
   customDataMap: [jenkins_custom_data: ['anything': 'test']]
])
}{code}

aleksi.simell@eficode.com (JIRA)

unread,
Jan 17, 2019, 1:43:02 AM1/17/19
to jenkinsc...@googlegroups.com
Aleksi Simell updated Bug JENKINS-55594
 

Pull request merged.

Change By: Aleksi Simell
Status: Open Fixed but Unreleased
Resolution: Fixed

aleksi.simell@eficode.com (JIRA)

unread,
Feb 20, 2019, 6:39:02 AM2/20/19
to jenkinsc...@googlegroups.com
Change By: Aleksi Simell
Status: Fixed but Unreleased Closed

rene.scheibe@gmail.com (JIRA)

unread,
Aug 29, 2019, 2:35:02 AM8/29/19
to jenkinsc...@googlegroups.com
René Scheibe updated an issue
Change By: René Scheibe
Released As: 1.20.3
Reply all
Reply to author
Forward
0 new messages