question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Numeric value out of range of int

See original GitHub issue

I use GitHub commit status plugin to set commit status at the end of the build and get next error:

com.fasterxml.jackson.core.JsonParseException: Numeric value (4295001555) out of range of int
 at [Source: {"url":"https://api.github.com/repos/organiztion/repo/statuses/120ba5d2a8719c59a8c5b28b116049330121349e","id":4295001555,"state":"success","description":"Build #4 succeeded in 1 min 8 sec","target_url":"target_url","context":"context","created_at":"2017-10-18T14:36:05Z","updated_at":"2017-10-18T14:36:05Z"}; line: 1, column: 134]
	at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1702)
	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:558)
	at com.fasterxml.jackson.core.base.ParserBase.convertNumberToInt(ParserBase.java:928)
	at com.fasterxml.jackson.core.base.ParserBase._parseIntValue(ParserBase.java:866)
	at com.fasterxml.jackson.core.base.ParserBase.getIntValue(ParserBase.java:694)
	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:306)
	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:286)
	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:504)
	at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:108)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:276)
Caused: com.fasterxml.jackson.databind.JsonMappingException: Numeric value (4295001555) out of range of int
 at [Source: {"url":"https://api.github.com/repos/organization/repo/statuses/120ba5d2a8719c59a8c5b28b116049330121349e","id":4295001555,"state":"success","description":"Build #4 succeeded in 1 min 8 sec","target_url":"target_url","context":"context"}; line: 1, column: 134]
 at [Source: {"url":"https://api.github.com/repos/organization/repo/statuses/120ba5d2a8719c59a8c5b28b116049330121349e","id":4295001555,"state":"success","description":"Build #4 succeeded in 1 min 8 sec","target_url":"target_url","context":"context","created_at":"2017-10-18T14:36:05Z","updated_at":"2017-10-18T14:36:05Z"}; line: 1, column: 124] (through reference chain: org.kohsuke.github.GHCommitStatus["id"])
	at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:388)
	at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:348)
	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.wrapAndThrow(BeanDeserializerBase.java:1607)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:278)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:140)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3798)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2842)
	at org.kohsuke.github.Requester.parse(Requester.java:616)
Caused: java.io.IOException: Failed to deserialize {"url":"https://api.github.com/repos/organization/repo/statuses/120ba5d2a8719c59a8c5b28b116049330121349e","id":4295001555,"state":"success","description":"Build #4 succeeded in 1 min 8 sec","target_url":"target_url","context":"context","created_at":"2017-10-18T14:36:05Z","updated_at":"2017-10-18T14:36:05Z"}
	at org.kohsuke.github.Requester.parse(Requester.java:618)
Caused: org.kohsuke.github.HttpException: Server returned HTTP response code: 201, message: 'Created' for URL: https://api.github.com/repos/organization/repo/statuses/120ba5d2a8719c59a8c5b28b116049330121349e
	at org.kohsuke.github.Requester.parse(Requester.java:633)
	at org.kohsuke.github.Requester.parse(Requester.java:594)
	at org.kohsuke.github.Requester._to(Requester.java:272)
	at org.kohsuke.github.Requester.to(Requester.java:234)
	at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:1071)
	at org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter.perform(GitHubCommitStatusSetter.java:160)
Caused: org.jenkinsci.plugins.github.common.CombineErrorHandler$ErrorHandlingException
	at org.jenkinsci.plugins.github.common.CombineErrorHandler.handle(CombineErrorHandler.java:74)
	at org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter.perform(GitHubCommitStatusSetter.java:164)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:682)
	at hudson.model.Build$BuildExecution.post2(Build.java:186)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:627)
	at hudson.model.Run.execute(Run.java:1762)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:421)

It looks like response from GitHub API contains id value 4295001555 that is bigger than int.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:51
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
moleksyukcommented, Oct 26, 2017
7reactions
akeithballcommented, Oct 23, 2017

Same here. Started experiencing this issue on Wednesday, Oct. 18, 2017.

Read more comments on GitHub >

github_iconTop Results From Across the Web

numeric value out of range - java - Stack Overflow
when i am saving the data its giving the error i.e NUMERIC VALUE OUT OF RANGE I HAVE TAKEN THIS 3 FIELD AS...
Read more >
Numeric value out of range of int · Issue #387 · hub4j/github-api
I use GitHub commit status plugin to set commit status at the end of the build and get next error: com.fasterxml.jackson.core.
Read more >
Numeric value (*) out of range of int - Futures API
This implies that your code is trying to map an epoch millisecond timestamp to type int. Since the value of the timestamp is...
Read more >
"Numeric value out of range..." may occur while processing ...
Problem. Microsoft Access database tables utilizing Datatype: Number, Field Size: Integer may experience row specific errors.
Read more >
Java client: Jackson exception: Numeric value out of range of int
Hello, I am using Java client version 7.17.4 (server is 7.17.0). Executing the following code ElasticsearchIndicesClient indicesClient = new ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found