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

Jenkins cannot release Jira version 'No content to map to Object due to end of input'

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: jira-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.166
      jira-plugin 3.0.6
      JIRA 8.0.1
    • Similar Issues:

      Description

      Since the introduction of a URL redirect on our side, the plugin can no longer release versions in jira. The plugin can however still create new versions.

      During the release of the version, the following stacktrace pops up in the jenkins log.

       

      jira rest client release version error. cause: RestClientException{statusCode=Optional.of(400), errorCollections=[ErrorCollection{status=400, errors={}, errorMessages=[No content to map to Object due to end of input]}]}
      RestClientException{statusCode=Optional.of(400), errorCollections=[ErrorCollection{status=400, errors={}, errorMessages=[No content to map to Object due to end of input]}]}
          at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$2.apply(AbstractAsynchronousRestClient.java:176)
          at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$2.apply(AbstractAsynchronousRestClient.java:170)
          at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(ResponsePromiseMapFunction.java:67)
          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.releaseVersion(JiraRestService.java:251)
          at hudson.plugins.jira.JiraSession.releaseVersion(JiraSession.java:209)
          at hudson.plugins.jira.VersionReleaser.releaseVersion(VersionReleaser.java:85)
          at hudson.plugins.jira.VersionReleaser.perform(VersionReleaser.java:48)
          at hudson.plugins.jira.JiraReleaseVersionUpdater.perform(JiraReleaseVersionUpdater.java:61)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
          at hudson.model.Build$BuildExecution.post2(Build.java:186)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
          at hudson.model.Run.execute(Run.java:1841)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429) 

       

       

       

       

        Attachments

          Activity

          Hide
          warden Radek Antoniuk added a comment - - edited

          Since you mentioned a change in your configuration (I'm assuming on the JIRA side), can you make sure all /rest/ requests are passed correctly to JIRA? (Try looking up what flows between Jenkins and JIRA with tcpdump/tcpick or wireshark). 
          Also, is this JIRA Server or Cloud?

          Show
          warden Radek Antoniuk added a comment - - edited Since you mentioned a change in your configuration (I'm assuming on the JIRA side), can you make sure all /rest/ requests are passed correctly to JIRA? (Try looking up what flows between Jenkins and JIRA with tcpdump/tcpick or wireshark).  Also, is this JIRA Server or Cloud?

            People

            • Assignee:
              Unassigned
              Reporter:
              rvries Rick de Vries
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: