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

Numeric value (2345908848) out of range of int #44

Closed
zsh0103 opened this issue Jul 30, 2018 · 5 comments
Closed

Numeric value (2345908848) out of range of int #44

zsh0103 opened this issue Jul 30, 2018 · 5 comments

Comments

@zsh0103
Copy link

zsh0103 commented Jul 30, 2018

com.fasterxml.jackson.databind.JsonMappingException: Numeric value (2345908848) out of range of int
at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@60940cc1; line: 1, column: 1562]
at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@60940cc1; line: 1, column: 1552] (through reference chain: com.msgilligan.jsonrpc.JsonRpcResponse["result"]->com.msgilligan.bitcoinj.json.pojo.BlockInfo["nonce"])
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:1611)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:513)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:400)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1191)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:314)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:148)
at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:504)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:104)
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:2938)
at com.msgilligan.jsonrpc.RPCClient.send(RPCClient.java:119)
at com.msgilligan.jsonrpc.AbstractRPCClient.sendForResult(AbstractRPCClient.java:55)
at com.msgilligan.jsonrpc.AbstractRPCClient.send(AbstractRPCClient.java:89)
at com.msgilligan.jsonrpc.AbstractRPCClient.send(AbstractRPCClient.java:96)
at com.msgilligan.bitcoinj.rpc.BitcoinClient.getBlockInfo(BitcoinClient.java:278)

@msgilligan
Copy link
Member

msgilligan commented Jul 30, 2018

What chain are you running on? It looks like it is the nonce field that is out of range. Can you please provide some information besides the stack trace?

@zsh0103
Copy link
Author

zsh0103 commented Jul 31, 2018

Hello, in bitcoins provids the environment, use the "OmniCliClient. GetBlockInfo (Sha256Hash txid)" query blockInfo, parameter class "com. Msgilligan. Bitcoinj. Json. Pojo. BlockInfo" the nonce is defined as an int type, lead to failure

@zsh0103
Copy link
Author

zsh0103 commented Jul 31, 2018

Query when height 324140 pieces of this BUG

@msgilligan
Copy link
Member

Fixed in 56f8137

@msgilligan
Copy link
Member

The fix has been released as part of ConsensusJ v0.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants