Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Numeric value xxx out of range of long #2397

Closed
kirill-astapov opened this issue Jul 30, 2019 · 1 comment
Closed

Error: Numeric value xxx out of range of long #2397

kirill-astapov opened this issue Jul 30, 2019 · 1 comment
Labels
duplicate Duplicate of an existing (usually earlier) issue

Comments

@kirill-astapov
Copy link

kirill-astapov commented Jul 30, 2019

When I use version 2.10.0.pr1 I get this error.

@Test 
public void errorDeserialization(){
  ObjectMapper objectMapper = new ObjectMapper();  
  JsonNode node= objectMapper.readTree("{ \"id\":1561417200000 }");
  objectMapper.readValue(objectMapper.treeAsTokens(node), Snapshot.class) ;
}

@Data
private static class Snapshot {
  private long id;
}
com.fasterxml.jackson.databind.JsonMappingException: Numeric value (1561417200000) out of range of long (-9223372036854775808 - 9223372036854775807)
@cowtowncoder
Copy link
Member

Thank you for reporting this!

I think this is same as #2393, which was just fixed and will be in pr2?

@cowtowncoder cowtowncoder added the duplicate Duplicate of an existing (usually earlier) issue label Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate of an existing (usually earlier) issue
Projects
None yet
Development

No branches or pull requests

2 participants