org.codehaus.jackson.map.JsonMappingException: Can not construct instance of com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepository, problem: abstract types can only be instantiated with additional type information at [Source: java.io.StringReader@562aebe5; line: 1, column: 2396] (through reference chain: com.cloudbees.jenkins.plugins.bitbucket.client.events.BitbucketCloudPullRequestEvent["repository"])

Jenkins JIRA | Antonio Muñiz | 5 months ago
  1. 0

    Getting this exception on pull request webhook payload is received: {noformat} jul 02, 2016 1:00:03 PM com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudWebhookPayload pullRequestEventFromPayload SEVERE: Can not read hook payload org.codehaus.jackson.map.JsonMappingException: Can not construct instance of com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepository, problem: abstract types can only be instantiated with additional type information at [Source: java.io.StringReader@562aebe5; line: 1, column: 2396] (through reference chain: com.cloudbees.jenkins.plugins.bitbucket.client.events.BitbucketCloudPullRequestEvent["repository"]) at org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163) at org.codehaus.jackson.map.deser.StdDeserializationContext.instantiationException(StdDeserializationContext.java:233) at org.codehaus.jackson.map.deser.AbstractDeserializer.deserialize(AbstractDeserializer.java:60) at org.codehaus.jackson.map.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:299) at org.codehaus.jackson.map.deser.SettableBeanProperty$MethodProperty.deserializeAndSet(SettableBeanProperty.java:414) at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:697) at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580) at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732) {noformat}

    Jenkins JIRA | 5 months ago | Antonio Muñiz
    org.codehaus.jackson.map.JsonMappingException: Can not construct instance of com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepository, problem: abstract types can only be instantiated with additional type information at [Source: java.io.StringReader@562aebe5; line: 1, column: 2396] (through reference chain: com.cloudbees.jenkins.plugins.bitbucket.client.events.BitbucketCloudPullRequestEvent["repository"])
  2. 0

    JsonMappingException + Unable to deserialize

    Stack Overflow | 2 years ago | madmatrix
    org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: [B@45812b51; line: 1, column: 2] (through reference chain: MessageBody["Message"])
  3. 0

    {code:java} Can not read hook payload org.codehaus.jackson.map.JsonMappingException: Can not construct instance of com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepository, problem: abstract types can only be instantiated with additional type information at [Source: java.io.StringReader@7dd7306; line: 1, column: 345] (through reference chain: com.cloudbees.jenkins.plugins.bitbucket.client.events.BitbucketCloudPullRequestEvent["repository"]) at org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163) at org.codehaus.jackson.map.deser.StdDeserializationContext.instantiationException(StdDeserializationContext.java:233) at org.codehaus.jackson.map.deser.AbstractDeserializer.deserialize(AbstractDeserializer.java:60) at org.codehaus.jackson.map.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:299) at org.codehaus.jackson.map.deser.SettableBeanProperty$MethodProperty.deserializeAndSet(SettableBeanProperty.java:414) at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:697) at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580) at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732) at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1863) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudWebhookPayload.parse(BitbucketCloudWebhookPayload.java:65) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudWebhookPayload.pullRequestEventFromPayload(BitbucketCloudWebhookPayload.java:56) at com.cloudbees.jenkins.plugins.bitbucket.hooks.PullRequestHookProcessor.process(PullRequestHookProcessor.java:39) at com.cloudbees.jenkins.plugins.bitbucket.hooks.BitbucketSCMSourcePushHookReceiver.doNotify(BitbucketSCMSourcePushHookReceiver.java:75) {code}

    Jenkins JIRA | 5 months ago | hugo fonseca
    org.codehaus.jackson.map.JsonMappingException: Can not construct instance of com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepository, problem: abstract types can only be instantiated with additional type information at [Source: java.io.StringReader@7dd7306; line: 1, column: 345] (through reference chain: com.cloudbees.jenkins.plugins.bitbucket.client.events.BitbucketCloudPullRequestEvent["repository"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] (JENKINS-36307) "Can not read hook payload" exception whenever a hook is received

    Google Groups | 5 months ago | hugo.f...@beubi.com (JIRA)
    org.codehaus.jackson.map.JsonMappingException: Can not construct instance of com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepository, problem: <span class="code-keyword" style="color: #000091">abstract</span> types can only be instantiated with additional type information at [Source: java.io.StringReader@7dd7306; line: 1, column: 345] (through reference chain: com.cloudbees.jenkins.plugins.bitbucket.client.events.BitbucketCloudPullRequestEvent[<span class="code-quote" style="color: #009100">"repository"</span>])
  6. 0

    how to deal with interfaces at jackson?

    Stack Overflow | 2 years ago | user2601512
    org.codehaus.jackson.map.JsonMappingException: Can not construct instance of com.despegar.henry.automation.services.semaphoreservice.response.ISemaphore, problem: abstract types can only be instantiated with additional type information at [Source: java.io.StringReader@17a5f5a5; line: 1, column: 2] (through reference chain: com.despegar.henry.automation.services.semaphoreservice.response.SemaphoreResponse["semaphore"])

    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. org.codehaus.jackson.map.JsonMappingException

      Can not construct instance of com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepository, problem: abstract types can only be instantiated with additional type information at [Source: java.io.StringReader@562aebe5; line: 1, column: 2396] (through reference chain: com.cloudbees.jenkins.plugins.bitbucket.client.events.BitbucketCloudPullRequestEvent["repository"])

      at org.codehaus.jackson.map.JsonMappingException.from()
    2. Data Mapper for Jackson
      ObjectMapper._readMapAndClose
      1. org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163)
      2. org.codehaus.jackson.map.deser.StdDeserializationContext.instantiationException(StdDeserializationContext.java:233)
      3. org.codehaus.jackson.map.deser.AbstractDeserializer.deserialize(AbstractDeserializer.java:60)
      4. org.codehaus.jackson.map.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:299)
      5. org.codehaus.jackson.map.deser.SettableBeanProperty$MethodProperty.deserializeAndSet(SettableBeanProperty.java:414)
      6. org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:697)
      7. org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
      8. org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732)
      8 frames