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

Deserialization problem in case of 'total_pow' field is -1 (Testnet) #68

Closed
ismelykh opened this issue Aug 23, 2017 · 1 comment
Closed
Labels
Milestone

Comments

@ismelykh
Copy link

Exception in thread "main" java.lang.IllegalArgumentException: Can not deserialize value of type long from String "18446744073709551615": not a valid Long value
 at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: java.util.ArrayList[0]->eu.bittrade.libs.steemj.base.models.GlobalProperties["total_pow"])
	at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:3738)
	at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:3676)
	at eu.bittrade.libs.steemj.communication.CommunicationHandler.performRequest(CommunicationHandler.java:157)
	at eu.bittrade.libs.steemj.SteemApiWrapper.getDynamicGlobalProperties(SteemApiWrapper.java:706)
	at SteemJExample.main(SteemJExample.java:79)
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not deserialize value of type long from String "18446744073709551615": not a valid Long value
 at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: java.util.ArrayList[0]->eu.bittrade.libs.steemj.base.models.GlobalProperties["total_pow"])
	at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:67)
	at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:1504)
	at com.fasterxml.jackson.databind.DeserializationContext.handleWeirdStringValue(DeserializationContext.java:910)
	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$LongDeserializer._parseLong(NumberDeserializers.java:584)
	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$LongDeserializer.deserialize(NumberDeserializers.java:557)
	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$LongDeserializer.deserialize(NumberDeserializers.java:535)
	at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:136)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:287)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:285)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:244)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:27)
	at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:3733)
	... 4 more
@ismelykh
Copy link
Author

I was just changing long to BigInteger, forgot to report it.

@marvin-we marvin-we added the bug label Aug 23, 2017
@marvin-we marvin-we added this to the 0.3.4 milestone Aug 23, 2017
marvin-we pushed a commit that referenced this issue Aug 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants