telegram-notifications-plugin
telegram-notifications-plugin copied to clipboard
out of range of int
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
Hi everyone! I've the same problem. Google says that this err may occurred because the lib version of telegrambots is too low.
+1
+1
I fixed, upgrade telegrambots to 6.5.0 Create a branch with changes no access, so update these 3 files here. 1. src/main/java/jenkinsci/plugins/telegrambot/telegram/TelegramBot.java TelegramBot.java.txt 2. src/main/java/jenkinsci/plugins/telegrambot/telegram/TelegramBotRunner.java TelegramBotRunner.java.txt 3. pom.xml.txt
@AlePc4el I replaced files with yours, but mvn install doesnt work, it falls to error
how to build this project?
@AlePc4el I replaced files with yours, but
mvn installdoesnt work, it falls to error how to build this project?
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.
docker volume create --name maven-repo
Run this when u in root folder
docker run --rm -it -v maven-repo:/root/.m2 -v "$(pwd)":/usr/src/mymaven -w /usr/src/mymaven maven:3.9.5-amazoncorretto-8-debian-bookworm mvn clean install