java.io.IOException: Failed to deserialize []

Jenkins JIRA | Geoffrey Begen | 1 year ago
  1. 0

    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}

    Jenkins JIRA | 1 year ago | Geoffrey Begen
    java.io.IOException: Failed to deserialize []
  2. 0

    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}

    Jenkins JIRA | 1 year ago | Geoffrey Begen
    java.io.IOException: Failed to deserialize []
  3. 0

    Reading an object of inner class throws MarkLogicIOException

    GitHub | 2 years ago | sravanr
    com.marklogic.client.MarkLogicIOException: com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class com.marklogic.javaclient.TestPOJOsample1$Student]: can not instantiate from JSON object (need to add/enable type information?) at [Source: java.io.InputStreamReader@37e4320e; line: 1, column: 54]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to read subtype?

    GitHub | 2 years ago | gaydenko
    com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate abstract type [simple type, class scala.runtime.Nothing$] (need to add/enable type information?) at [Source: {"i":42}; line: 1, column: 2]
  6. 0

    angularjs - springboot - spring data/rest

    Stack Overflow | 2 years ago | ek1984
    com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: fr.stockmanagement.Customer["status"]) at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:232)

  1. tvrmsmith 1 times, last 3 weeks ago
  2. tyson925 48 times, last 3 weeks ago
  3. RoiOtero 18 times, last 2 months ago
  4. Andreas Häber 4 times, last 2 months ago
  5. davidvanlaatum 2 times, last 3 months ago
12 more registered users
83 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Jackson
    ObjectMapper.readValue
    1. com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164)
    2. com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:575)
    3. com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:569)
    4. com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromArray(BeanDeserializerBase.java:1121)
    5. com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:148)
    6. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:123)
    7. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888)
    8. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034)
    8 frames
  3. org.kohsuke.github
    GHRepository.createCommitStatus
    1. org.kohsuke.github.Requester.parse(Requester.java:462)
    2. org.kohsuke.github.Requester._to(Requester.java:227)
    3. org.kohsuke.github.Requester.to(Requester.java:194)
    4. org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:829)
    4 frames
  4. org.jenkinsci.plugins
    GhprbBuildListener.onCompleted
    1. org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:179)
    2. org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildComplete(GhprbSimpleStatus.java:160)
    3. org.jenkinsci.plugins.ghprb.GhprbBuilds.onCompleted(GhprbBuilds.java:167)
    4. org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:27)
    5. org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:12)
    5 frames
  5. Hudson
    Executor.run
    1. hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199)
    2. hudson.model.Run.execute(Run.java:1796)
    3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    4. hudson.model.ResourceController.execute(ResourceController.java:89)
    5. hudson.model.Executor.run(Executor.java:240)
    5 frames