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

JIRA Jenkins plugin stopped working between 17/02/2020 and 18/02/2020 - issue doesn't exist

    Details

    • Similar Issues:

      Description

      We are using Jira plugin on Jenkins to comment on Jira issues about build status. Since we have not done any infrastructure changes on 17th and 18th I suspect some Jira update caused the official Jira plugin to fail with the message as below:

      ABC-1234 issue doesn't exist in Jira

      To be sure I updated Jenkins along with all it's plugins to the latest versions, re-generated API key for the user in question - it made no difference.

      Using curl/postman I could successfuly query the issue details by directly requesting from the API. Changing the Jenkins JIRA plugin issue selector regex to the default one (replacing empty with regex suggested in help) did not make any difference.

      Captcha error response header is absent in the response to API call.

      There are at least 2 known users reporting this problem - Jira community

        Attachments

          Issue Links

            Activity

            Hide
            jbrozen Josh Brozen added a comment -

            This appears to be related to the changes Atlassian recently made to the REST API: https://community.atlassian.com/t5/Jira-questions/REST-API-numerous-calls-now-throwing-an-error/qaq-p/1305234

            Show
            jbrozen Josh Brozen added a comment - This appears to be related to the changes Atlassian recently made to the REST API:  https://community.atlassian.com/t5/Jira-questions/REST-API-numerous-calls-now-throwing-an-error/qaq-p/1305234
            Hide
            jbrozen Josh Brozen added a comment -

            Seeing this error in the Jenkin Logs:

            jira rest client get issue from jql search error. cause: RestClientException{statusCode=Optional.absent(), errorCollections=[]}
            org.codehaus.jettison.json.JSONException: JSONObject["name"] not found.
            	at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360)
            	at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487)
            	at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192)
            	at com.atlassian.jira.rest.client.internal.json.UserJsonParser.parse(UserJsonParser.java:34)
            	at com.atlassian.jira.rest.client.internal.json.UserJsonParser.parse(UserJsonParser.java:31)
            	at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.getOptionalNestedField(IssueJsonParser.java:300)
            	at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:234)
            	at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:88)
            	at com.atlassian.jira.rest.client.internal.json.GenericJsonArrayParser.parse(GenericJsonArrayParser.java:39)
            	at com.atlassian.jira.rest.client.internal.json.SearchResultJsonParser.parse(SearchResultJsonParser.java:40)
            	at com.atlassian.jira.rest.client.internal.json.SearchResultJsonParser.parse(SearchResultJsonParser.java:27)
            	at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$1.handle(AbstractAsynchronousRestClient.java:148)
            	at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$3.apply(AbstractAsynchronousRestClient.java:189)
            Caused: RestClientException{statusCode=Optional.absent(), errorCollections=[]}
            	at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$3.apply(AbstractAsynchronousRestClient.java:191)
            	at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$3.apply(AbstractAsynchronousRestClient.java:185)
            	at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(ResponsePromiseMapFunction.java:81)
            	at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(ResponsePromiseMapFunction.java:11)
            	at com.atlassian.util.concurrent.Promises$Of$3.apply(Promises.java:295)
            	at com.atlassian.util.concurrent.Promises$2.onSuccess(Promises.java:185)
            	at com.google.common.util.concurrent.Futures$6.run(Futures.java:975)
            	at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)
            	at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149)
            	at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134)
            	at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:170)
            	at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53)
            	at com.atlassian.util.concurrent.Promises$Of$3.apply(Promises.java:295)
            	at com.atlassian.util.concurrent.Promises$2.onSuccess(Promises.java:185)
            	at com.google.common.util.concurrent.Futures$6.run(Futures.java:975)
            	at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)
            	at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149)
            	at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134)
            	at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:170)
            	at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53)
            	at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$1.lambda$doCompleted$0(SettableFuturePromiseHttpPromiseAsyncClient.java:41)
            	at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable.lambda$run$0(SettableFuturePromiseHttpPromiseAsyncClient.java:150)
            	at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient.runInContext(SettableFuturePromiseHttpPromiseAsyncClient.java:69)
            	at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable.run(SettableFuturePromiseHttpPromiseAsyncClient.java:150)
            	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)
            Caused: java.util.concurrent.ExecutionException
            	at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289)
            	at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:262)
            	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:91)
            	at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:69)
            	at com.atlassian.jira.rest.client.internal.async.DelegatingPromise.get(DelegatingPromise.java:113)
            	at hudson.plugins.jira.JiraRestService.getIssuesFromJqlSearch(JiraRestService.java:197)
            	at hudson.plugins.jira.JiraSession.getIssuesFromJqlSearch(JiraSession.java:136)
            	at hudson.plugins.jira.JiraSite.progressMatchingIssues(JiraSite.java:1043)
            	at hudson.plugins.jira.JiraIssueUpdateBuilder.perform(JiraIssueUpdateBuilder.java:105)
            	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
            	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
            	at hudson.model.Build$BuildExecution.build(Build.java:206)
            	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
            	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
            	at hudson.model.Run.execute(Run.java:1880)
            	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            	at hudson.model.ResourceController.execute(ResourceController.java:97)
            	at hudson.model.Executor.run(Executor.java:428)
            
            Show
            jbrozen Josh Brozen added a comment - Seeing this error in the Jenkin Logs: jira rest client get issue from jql search error. cause: RestClientException{statusCode=Optional.absent(), errorCollections=[]} org.codehaus.jettison.json.JSONException: JSONObject[ "name" ] not found. at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360) at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487) at com.atlassian.jira. rest .client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:192) at com.atlassian.jira. rest .client.internal.json.UserJsonParser.parse(UserJsonParser.java:34) at com.atlassian.jira. rest .client.internal.json.UserJsonParser.parse(UserJsonParser.java:31) at com.atlassian.jira. rest .client.internal.json.IssueJsonParser.getOptionalNestedField(IssueJsonParser.java:300) at com.atlassian.jira. rest .client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:234) at com.atlassian.jira. rest .client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:88) at com.atlassian.jira. rest .client.internal.json.GenericJsonArrayParser.parse(GenericJsonArrayParser.java:39) at com.atlassian.jira. rest .client.internal.json.SearchResultJsonParser.parse(SearchResultJsonParser.java:40) at com.atlassian.jira. rest .client.internal.json.SearchResultJsonParser.parse(SearchResultJsonParser.java:27) at com.atlassian.jira. rest .client.internal.async.AbstractAsynchronousRestClient$1.handle(AbstractAsynchronousRestClient.java:148) at com.atlassian.jira. rest .client.internal.async.AbstractAsynchronousRestClient$3.apply(AbstractAsynchronousRestClient.java:189) Caused: RestClientException{statusCode=Optional.absent(), errorCollections=[]} at com.atlassian.jira. rest .client.internal.async.AbstractAsynchronousRestClient$3.apply(AbstractAsynchronousRestClient.java:191) at com.atlassian.jira. rest .client.internal.async.AbstractAsynchronousRestClient$3.apply(AbstractAsynchronousRestClient.java:185) at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(ResponsePromiseMapFunction.java:81) at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(ResponsePromiseMapFunction.java:11) at com.atlassian.util.concurrent.Promises$Of$3.apply(Promises.java:295) at com.atlassian.util.concurrent.Promises$2.onSuccess(Promises.java:185) at com.google.common.util.concurrent.Futures$6.run(Futures.java:975) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134) at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:170) at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53) at com.atlassian.util.concurrent.Promises$Of$3.apply(Promises.java:295) at com.atlassian.util.concurrent.Promises$2.onSuccess(Promises.java:185) at com.google.common.util.concurrent.Futures$6.run(Futures.java:975) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134) at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:170) at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53) at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$1.lambda$doCompleted$0(SettableFuturePromiseHttpPromiseAsyncClient.java:41) at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable.lambda$run$0(SettableFuturePromiseHttpPromiseAsyncClient.java:150) at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient.runInContext(SettableFuturePromiseHttpPromiseAsyncClient.java:69) at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable.run(SettableFuturePromiseHttpPromiseAsyncClient.java:150) 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) Caused: java.util.concurrent.ExecutionException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:262) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:91) at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:69) at com.atlassian.jira. rest .client.internal.async.DelegatingPromise.get(DelegatingPromise.java:113) at hudson.plugins.jira.JiraRestService.getIssuesFromJqlSearch(JiraRestService.java:197) at hudson.plugins.jira.JiraSession.getIssuesFromJqlSearch(JiraSession.java:136) at hudson.plugins.jira.JiraSite.progressMatchingIssues(JiraSite.java:1043) at hudson.plugins.jira.JiraIssueUpdateBuilder.perform(JiraIssueUpdateBuilder.java:105) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741) at hudson.model.Build$BuildExecution.build(Build.java:206) at hudson.model.Build$BuildExecution.doRun(Build.java:163) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1880) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:428)
            Show
            rodrigc Craig Rodrigues added a comment - Josh Brozen Can you try: https://issues.jenkins-ci.org/browse/JENKINS-56987?focusedCommentId=386448&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-386448
            Hide
            too Michal Turecki added a comment -

            Craig Rodrigues, the pull request you mentioned indeed fixes the issue without any configuration changes - many thanks for that. Do you know the official version release date?

            Show
            too Michal Turecki added a comment - Craig Rodrigues , the pull request you mentioned indeed fixes the issue without any configuration changes - many thanks for that. Do you know the official version release date?
            Hide
            warden Radek Antoniuk added a comment -

            I have closed this as duplicate, please track the other ticket. The release will be done as soon as the related PRs are reviewed and merged.

            Show
            warden Radek Antoniuk added a comment - I have closed this as duplicate, please track the other ticket. The release will be done as soon as the related PRs are reviewed and merged.

              People

              • Assignee:
                Unassigned
                Reporter:
                too Michal Turecki
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: