Skip to content

Instantly share code, notes, and snippets.

@vivek
Created September 7, 2017 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivek/06e8416eb8fec4b4915f3d67d49a67f5 to your computer and use it in GitHub Desktop.
Save vivek/06e8416eb8fec4b4915f3d67d49a67f5 to your computer and use it in GitHub Desktop.
com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of boolean out of START_OBJECT token
at [Source: {"name":"b1","commit":{"sha":"fafca8f366f5a40d9b28746262a3159dd38b98da","commit":{"author":{"name":"Vivek Pandey","email":"vivek.pandey@gmail.com","date":"2017-09-07T21:18:04Z"},"committer":{"name":"Vivek Pandey","email":"vivek.pandey@gmail.com","date":"2017-09-07T21:18:04Z"},"message":"Added Jenkinsfile","tree":{"sha":"4a6ecb363c01b4266bd2db5e77a60034ddaee714","url":"https://api.github.com/repos/vivek/empty1/git/trees/4a6ecb363c01b4266bd2db5e77a60034ddaee714"},"url":"https://api.github.com/repos/vivek/empty1/git/commits/fafca8f366f5a40d9b28746262a3159dd38b98da","comment_count":0},"url":"https://api.github.com/repos/vivek/empty1/commits/fafca8f366f5a40d9b28746262a3159dd38b98da","html_url":"https://github.com/vivek/empty1/commit/fafca8f366f5a40d9b28746262a3159dd38b98da","comments_url":"https://api.github.com/repos/vivek/empty1/commits/fafca8f366f5a40d9b28746262a3159dd38b98da/comments","author":{"login":"vivek","id":38139,"avatar_url":"https://avatars1.githubusercontent.com/u/38139?v=4","gravatar_id":"","url":"https://api.github.com/users/vivek","html_url":"https://github.com/vivek","followers_url":"https://api.github.com/users/vivek/followers","following_url":"https://api.github.com/users/vivek/following{/other_user}","gists_url":"https://api.github.com/users/vivek/gists{/gist_id}","starred_url":"https://api.github.com/users/vivek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivek/subscriptions","organizations_url":"https://api.github.com/users/vivek/orgs","repos_url":"https://api.github.com/users/vivek/repos","events_url":"https://api.github.com/users/vivek/events{/privacy}","received_events_url":"https://api.github.com/users/vivek/received_events","type":"User","site_admin":false},"committer":{"login":"vivek","id":38139,"avatar_url":"https://avatars1.githubusercontent.com/u/38139?v=4","gravatar_id":"","url":"https://api.github.com/users/vivek","html_url":"https://github.com/vivek","followers_url":"https://api.github.com/users/vivek/followers","following_url":"https://api.github.com/users/vivek/following{/other_user}","gists_url":"https://api.github.com/users/vivek/gists{/gist_id}","starred_url":"https://api.github.com/users/vivek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivek/subscriptions","organizations_url":"https://api.github.com/users/vivek/orgs","repos_url":"https://api.github.com/users/vivek/repos","events_url":"https://api.github.com/users/vivek/events{/privacy}","received_events_url":"https://api.github.com/users/vivek/received_events","type":"User","site_admin":false},"parents":[{"sha":"323bf9ade63f9823a1489423b674a68d89dfdf52","url":"https://api.github.com/repos/vivek/empty1/commits/323bf9ade63f9823a1489423b674a68d89dfdf52","html_url":"https://github.com/vivek/empty1/commit/323bf9ade63f9823a1489423b674a68d89dfdf52"}]},"_links":{"self":"https://api.github.com/repos/vivek/empty1/branches/b1","html":"https://github.com/vivek/empty1/tree/b1"},"protected":false,"protection":{"enabled":false,"required_status_checks":{"enforcement_level":"off","contexts":[]}},"protection_url":"https://api.github.com/repos/vivek/empty1/branches/b1/protection"}; line: 1, column: 2997] (through reference chain: org.kohsuke.github.GHBranch["protection"])
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:270)
at com.fasterxml.jackson.databind.DeserializationContext.reportMappingException(DeserializationContext.java:1234)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1122)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1075)
at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseBoolean(StdDeserializer.java:220)
at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$BooleanDeserializer.deserialize(NumberDeserializers.java:178)
at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$BooleanDeserializer.deserialize(NumberDeserializers.java:161)
at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:504)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:111)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:276)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:140)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3814)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2858)
at io.jenkins.blueocean.blueocean_github_pipeline.HttpRequest.to(HttpRequest.java:98)
at io.jenkins.blueocean.blueocean_github_pipeline.GithubScmSaveFileRequest.createBranchIfNotPresent(GithubScmSaveFileRequest.java:170)
at io.jenkins.blueocean.blueocean_github_pipeline.GithubScmSaveFileRequest.save(GithubScmSaveFileRequest.java:74)
at io.jenkins.blueocean.blueocean_github_pipeline.GithubScmContentProvider.saveContent(GithubScmContentProvider.java:133)
at io.jenkins.blueocean.blueocean_github_pipeline.GithubScmContentProvider.saveContent(GithubScmContentProvider.java:121)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment