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

"Can not read hook payload" exception whenever a hook is received

XMLWordPrintable

      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)
      

            amuniz Antonio Muñiz
            fonsecas72 hugo fonseca
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: