org.kohsuke.github.HttpException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Our organization recently updated to GitHub Enterprise 2.1 from 11.10.340. When this happened, our job to build pull requests stopped updating the pull request status. The console output from the job reads: {code} Setting status of ... to SUCCESS with url ... and message: 'Build finished. ... tests run, ... skipped, ... failed.' Could not update commit status of the Pull Request on GitHub. java.io.IOException: Failed to deserialize [] at org.kohsuke.github.Requester.parse(Requester.java:464) at org.kohsuke.github.Requester._to(Requester.java:227) at org.kohsuke.github.Requester.to(Requester.java:194) at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:829) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:179) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildComplete(GhprbSimpleStatus.java:160) at org.jenkinsci.plugins.ghprb.GhprbBuilds.onCompleted(GhprbBuilds.java:167) at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:27) at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:12) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199) at hudson.model.Run.execute(Run.java:1796) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of org.kohsuke.github.GHCommitStatus out of START_ARRAY token at [Source: java.io.StringReader@77eed97b; line: 1, column: 1] at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164) at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:575) at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:569) at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromArray(BeanDeserializerBase.java:1121) at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:148) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:123) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034) at org.kohsuke.github.Requester.parse(Requester.java:462) ... 13 more {code}
    via by Geoffrey Begen,
  • Our organization recently updated to GitHub Enterprise 2.1 from 11.10.340. When this happened, our job to build pull requests stopped updating the pull request status. The console output from the job reads: {code} Setting status of ... to SUCCESS with url ... and message: 'Build finished. ... tests run, ... skipped, ... failed.' Could not update commit status of the Pull Request on GitHub. java.io.IOException: Failed to deserialize [] at org.kohsuke.github.Requester.parse(Requester.java:464) at org.kohsuke.github.Requester._to(Requester.java:227) at org.kohsuke.github.Requester.to(Requester.java:194) at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:829) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:179) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildComplete(GhprbSimpleStatus.java:160) at org.jenkinsci.plugins.ghprb.GhprbBuilds.onCompleted(GhprbBuilds.java:167) at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:27) at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:12) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199) at hudson.model.Run.execute(Run.java:1796) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of org.kohsuke.github.GHCommitStatus out of START_ARRAY token at [Source: java.io.StringReader@77eed97b; line: 1, column: 1] at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164) at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:575) at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:569) at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromArray(BeanDeserializerBase.java:1121) at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:148) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:123) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034) at org.kohsuke.github.Requester.parse(Requester.java:462) ... 13 more {code}
    via by Geoffrey Begen,
  • How to read subtype?
    via GitHub by gaydenko
    ,
  • angularjs - springboot - spring data/rest
    via Stack Overflow by ek1984
    ,
  • Deserializing nested json's with jackson
    via Stack Overflow by labbyfrost
    ,
  • Problem with type information
    via GitHub by WaDelma
    ,
  • Jackson doesn't deserialize
    via Stack Overflow by Yves Nicolas
    ,
    • org.kohsuke.github.HttpException: Server returned HTTP response code: 200, message: 'OK' for URL: http://policestate/api/v3/repos/operationalplatform/ruby-workbench/statuses/e77d34b0cb8e79456a7df6c99e879dfec98e9082 at org.kohsuke.github.Requester.parse(Requester.java:551) at org.kohsuke.github.Requester._to(Requester.java:262) at org.kohsuke.github.Requester.to(Requester.java:224) at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:973) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:273) at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildStart(GhprbSimpleStatus.java:186) at org.jenkinsci.plugins.ghprb.GhprbBuilds.onStarted(GhprbBuilds.java:132) at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:24) at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:17) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:216) at hudson.model.Run.execute(Run.java:1737) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.io.IOException: Failed to deserialize [{"url":"http://policestate/api/v3/repos/operationalplatform/ruby-workbench/statuses/e77d34b0cb8e79456a7df6c99e879dfec98e9082","id":2,"state":"pending","description":"The build is runnning!","target_url":"http://jenkins-police/job/Ruby-workbench-builder/lastSuccessfulBuild/console","context":"continuous-integration/jenkins","created_at":"2017-01-06T10:10:17Z","updated_at":"2017-01-06T10:10:17Z","creator":{"login":"callum","id":5,"avatar_url":"http://policestate/avatars/u/5?","gravatar_id":"","url":"http://policestate/api/v3/users/callum","html_url":"http://policestate/callum","followers_url":"http://policestate/api/v3/users/callum/followers","following_url":"http://policestate/api/v3/users/callum/following{/other_user}","gists_url":"http://policestate/api/v3/users/callum/gists{/gist_id}","starred_url":"http://policestate/api/v3/users/callum/starred{/owner}{/repo}","subscriptions_url":"http://policestate/api/v3/users/callum/subscriptions","organizations_url":"http://policestate/api/v3/users/callum/orgs","repos_url":"http://policestate/api/v3/users/callum/repos","events_url":"http://policestate/api/v3/users/callum/events{/privacy}","received_events_url":"http://policestate/api/v3/users/callum/received_events","type":"User","site_admin":false}},{"url":"http://policestate/api/v3/repos/operationalplatform/ruby-workbench/statuses/e77d34b0cb8e79456a7df6c99e879dfec98e9082","id":1,"state":"pending","description":"The build is runnning!","target_url":"http://jenkins-police/job/Ruby-workbench-builder/lastSuccessfulBuild/console","context":"continuous-integration/jenkins","created_at":"2017-01-06T09:36:01Z","updated_at":"2017-01-06T09:36:01Z","creator":{"login":"callum","id":5,"avatar_url":"http://policestate/avatars/u/5?","gravatar_id":"","url":"http://policestate/api/v3/users/callum","html_url":"http://policestate/callum","followers_url":"http://policestate/api/v3/users/callum/followers","following_url":"http://policestate/api/v3/users/callum/following{/other_user}","gists_url":"http://policestate/api/v3/users/callum/gists{/gist_id}","starred_url":"http://policestate/api/v3/users/callum/starred{/owner}{/repo}","subscriptions_url":"http://policestate/api/v3/users/callum/subscriptions","organizations_url":"http://policestate/api/v3/users/callum/orgs","repos_url":"http://policestate/api/v3/users/callum/repos","events_url":"http://policestate/api/v3/users/callum/events{/privacy}","received_events_url":"http://policestate/api/v3/users/callum/received_events","type":"User","site_admin":false}}] at org.kohsuke.github.Requester.parse(Requester.java:541) ... 13 more Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of org.kohsuke.github.GHCommitStatus out of START_ARRAY token at [Source: java.io.StringReader@51dc34e8; line: 1, column: 1] at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164) at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:575) at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:569) at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromArray(BeanDeserializerBase.java:1121) at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:148) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:123) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034) at org.kohsuke.github.Requester.parse(Requester.java:539) ... 13 more

    Users with the same issue

    tvrmsmith
    15 times, last one,
    Axelo
    3 times, last one,
    Unknown visitor1 times, last one,
    jstrayer
    1 times, last one,
    zsamboki
    3 times, last one,
    139 more bugmates