-
Notifications
You must be signed in to change notification settings - Fork 65
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
out of range of int #75
Comments
Hi everyone! |
+1 |
1 similar comment
+1 |
I fixed, upgrade telegrambots to 6.5.0 |
@AlePc4el I replaced files with yours, but |
Once done replace the file provided by [AlePc4el]. Run the following using docker maven to build. The issue I encounter is that my java version it too new for the build (exact error was file not found hudson.exception) instead of revert back on my actual java version I'm using docker maven with java version 8 to build. Not sure if u encounter the same issue. Hope this help.
Run this when u in root folder |
Jenkins and plugins versions report
com.fasterxml.jackson.core.JsonParseException: Numeric value (5xxxxxxxxx) out of range of int
at [Source: (String)"{"ok":true,"result":[{"update_id":1xxxxxxxx,
"message":{"message_id":1,"from":{"id":5xxxxxxxxx,"is_bot":false,"first_name":"---","language_code":"en"},"chat":{"id":5xxxxxxxxx,"first_name":"---","type":"private"},"date":1660388790,"text":"/start","entities":[{"offset":0,"length":6,"type":"bot_command"}]}},{"update_id":131742974,
"my_chat_member":{"chat":{"id":-6xxxxxxxx,"title":"---","type":"group","all_members_are_administrators":true},"from":{"id":5xxxxxxxxx,"is_bot":false"[truncated 6844 chars]; line: 2, column: 50]
at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1804)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:693)
at com.fasterxml.jackson.core.base.ParserBase.convertNumberToInt(ParserBase.java:886)
at com.fasterxml.jackson.core.base.ParserBase._parseIntValue(ParserBase.java:801)
at com.fasterxml.jackson.core.base.ParserBase.getIntValue(ParserBase.java:645)
at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:472)
at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:452)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:138)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
Caused: com.fasterxml.jackson.databind.JsonMappingException: Numeric value (5xxxxxxxxx) out of range of int
at [Source: (String)"{"ok":true,"result":[{"update_id":1xxxxxxxx,
"message":{"message_id":1,"from":{"id":5xxxxxxxxx,"is_bot":false,"first_name":"---","language_code":"en"},"chat":{"id":5xxxxxxxxx,"first_name":"---","type":"private"},"date":1660388790,"text":"/start","entities":[{"offset":0,"length":6,"type":"bot_command"}]}},{"update_id":131742974,
"my_chat_member":{"chat":{"id":-6xxxxxxxx,"title":"---","type":"group","all_members_are_administrators":true},"from":{"id":5xxxxxxxxx,"is_bot":false"[truncated 6844 chars]; line: 2, column: 40] (through reference chain: org.telegram.telegrambots.meta.api.objects.ApiResponse["result"]->java.util.ArrayList[0]->org.telegram.telegrambots.meta.api.objects.Update["message"]->org.telegram.telegrambots.meta.api.objects.Message["from"]->org.telegram.telegrambots.meta.api.objects.User["id"])
at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:394)
at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:353)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.wrapAndThrow(BeanDeserializerBase.java:1711)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:290)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:138)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:138)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:286)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:245)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:27)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:138)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4013)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3023)
at org.telegram.telegrambots.meta.api.methods.updates.GetUpdates.deserializeResponse(GetUpdates.java:113)
Caused: org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException: Unable to deserialize response
at org.telegram.telegrambots.meta.api.methods.updates.GetUpdates.deserializeResponse(GetUpdates.java:121)
at org.telegram.telegrambots.updatesreceivers.DefaultBotSession$ReaderThread.getUpdatesFromServer(DefaultBotSession.java:257)
at org.telegram.telegrambots.updatesreceivers.DefaultBotSession$ReaderThread.run(DefaultBotSession.java:186)
What Operating System are you using (both controller, and any agents involved in the problem)?
Windows 10
Reproduction steps
when new bot is added
Expected Results
added bod
Actual Results
not work
Anything else?
No response
The text was updated successfully, but these errors were encountered: