[JIRA] (JENKINS-52751) Exceptions when failure-cause plugin is installed but does not identify failure causes

41 views
Skip to first unread message

tobias.getrost@web.de (JIRA)

unread,
Jul 26, 2018, 8:09:01 AM7/26/18
to jenkinsc...@googlegroups.com
Tobias Getrost created an issue
 
Jenkins / Bug JENKINS-52751
Exceptions when failure-cause plugin is installed but does not identify failure causes
Issue Type: Bug Bug
Assignee: Tobias Getrost
Components: statistics-gatherer-plugin
Created: 2018-07-26 12:08
Environment: Jenkins 2.121.2 LTS
statistics-gatherer-plugin: 2.0.3
Priority: Major Major
Reporter: Tobias Getrost

I experience the following exceptions with the statistics-gatherer-plugin: when the failure-cause plugin is installed, but does not identify a failure cause:

 

org.json.JSONException: JSONObject["actions"] not found.
 at org.json.JSONObject.get(JSONObject.java:473)
 at org.json.JSONObject.getJSONArray(JSONObject.java:555)
 at org.jenkins.plugins.statistics.gatherer.listeners.RunStatsListener.addBuildFailureCauses(RunStatsListener.java:247)
 at org.jenkins.plugins.statistics.gatherer.listeners.RunStatsListener.onFinalized(RunStatsListener.java:228)
 at hudson.model.listeners.RunListener.fireFinalized(RunListener.java:257)
 at hudson.model.Run.onEndBuilding(Run.java:1986)
 at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:827)
 at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1100(WorkflowRun.java:144)
 at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1206)
 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1438)
 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:417)
 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:35)
 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
 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)

 

 

 
org.json.JSONException: JSONObject["actions"] not found.

 at org.json.JSONObject.get(JSONObject.java:473)
 at org.json.JSONObject.getJSONArray(JSONObject.java:555)
 at org.jenkins.plugins.statistics.gatherer.listeners.RunStatsListener.addBuildFailureCauses(RunStatsListener.java:247)
 at org.jenkins.plugins.statistics.gatherer.listeners.RunStatsListener.onFinalized(RunStatsListener.java:228)
 at hudson.model.listeners.RunListener.fireFinalized(RunListener.java:257)
 at hudson.model.Run.onEndBuilding(Run.java:1986)
 at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:827)
 at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1100(WorkflowRun.java:144)
 at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1206)
 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1438)
 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:417)
 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:35)
 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
 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)

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

tobias.getrost@web.de (JIRA)

unread,
Jul 26, 2018, 8:10:01 AM7/26/18
to jenkinsc...@googlegroups.com
Tobias Getrost started work on Bug JENKINS-52751
 
Change By: Tobias Getrost
Status: Open In Progress

tobias.getrost@web.de (JIRA)

unread,
Jul 26, 2018, 8:16:02 AM7/26/18
to jenkinsc...@googlegroups.com
Tobias Getrost updated an issue
Change By: Tobias Getrost
I experience the following exceptions with the statistics-gatherer-plugin: when the failure-cause plugin is installed, but does not identify a failure cause:

 
{noformat}

org.json.JSONException: JSONObject["actions"] not found.
at org.json.JSONObject.get(JSONObject.java:473)
at org.json.JSONObject.getJSONArray(JSONObject.java:555)
at org.jenkins.plugins.statistics.gatherer.listeners.RunStatsListener.addBuildFailureCauses(RunStatsListener.java:247)
at org.jenkins.plugins.statistics.gatherer.listeners.RunStatsListener.onFinalized(RunStatsListener.java:228)
at hudson.model.listeners.RunListener.fireFinalized(RunListener.java:257)
at hudson.model.Run.onEndBuilding(Run.java:1986)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:827)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1100(WorkflowRun.java:144)
at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1206)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1438)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:417)
at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:35)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
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){noformat}
 


 
{noformat}
 
org.json.JSONException: JSONObject["
actions foundFailureCauses "] not found.

at org.json.JSONObject.get(JSONObject.java:473)
at org.json.JSONObject.getJSONArray(JSONObject.java:555)
at org.jenkins.plugins.statistics.gatherer.listeners.RunStatsListener.addBuildFailureCauses(RunStatsListener.java: 247 253 )

at org.jenkins.plugins.statistics.gatherer.listeners.RunStatsListener.onFinalized(RunStatsListener.java:228)
at hudson.model.listeners.RunListener.fireFinalized(RunListener.java:257)
at hudson.model.Run.onEndBuilding(Run.java:1986)
at org hudson . jenkinsci model . plugins Run . workflow.job.WorkflowRun.finish execute ( WorkflowRun Run .java: 827 1867 )
at
org hudson . jenkinsci model . plugins FreeStyleBuild . workflow.job.WorkflowRun.access$1100(WorkflowRun.java:144)

at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1206)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1438)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3. run( CpsThreadGroup FreeStyleBuild .java: 417 43 )
at
org hudson . jenkinsci model . plugins ResourceController . workflow.cps.CpsVmExecutorService$1.run execute ( CpsVmExecutorService ResourceController .java: 35 97 )
at hudson.
remoting model . SingleLaneExecutorService$1 Executor .run( SingleLaneExecutorService Executor .java: 131 429 )
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
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)
{noformat}
 

rene.scheibe@gmail.com (JIRA)

unread,
Jan 26, 2019, 10:03:02 AM1/26/19
to jenkinsc...@googlegroups.com
Change By: René Scheibe
Status: In Progress Review
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

rene.scheibe@gmail.com (JIRA)

unread,
Jan 26, 2019, 10:04:02 AM1/26/19
to jenkinsc...@googlegroups.com

leibkel@yahoo.com (JIRA)

unread,
Sep 7, 2019, 8:52:02 AM9/7/19
to jenkinsc...@googlegroups.com
Lee Leibke commented on Bug JENKINS-52751
 
Re: Exceptions when failure-cause plugin is installed but does not identify failure causes

Are there any updates on this issue?

I've just installed the Statististics Gatherer plugin and am also receiving this.

  • Jenkins version:  2.164.3
  • Statistics Gatherer version:  2.0.3

bosse.arndt@magna.com (JIRA)

unread,
Nov 16, 2019, 4:47:02 AM11/16/19
to jenkinsc...@googlegroups.com

I was able to "solve" the issue. Somehow during upgrades of jenkins and the plugin some failure causes are not properly migrated.

If you open up and store the Failure Causes again (creating again the unique identifiers) the second callstack is no more visible.

 

But the first callstack is still valid.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

bertrand.roussel@cor-net.org (JIRA)

unread,
Jan 30, 2020, 7:11:02 AM1/30/20
to jenkinsc...@googlegroups.com

Could we get a new release for this plugin?

It seems that PR #22 was merged some time ago, so a build from the trunk would likely have that fixed, but the latest release is 1.1.3 and does not include that fix.

cc: Tobias Getrost Luca Domenico Milanesio

Reply all
Reply to author
Forward
0 new messages