После технических проблем со стороны серверов API longpoll больше не оживает - подозреваю, что проблема возникает из-за исключения на клиенте. После этого исключения других сообщений от VK API SDK больше не возникает.
`2023-03-29T01:32:14.690+03:00 ERROR 25240 --- [pool-7-thread-1] com.vk.api.sdk.client.ApiRequest : API error
com.vk.api.sdk.exceptions.ApiServerException: Internal server error (10): Internal server error
at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:28) ~[sdk-1.0.14.jar:na]
at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104) ~[sdk-1.0.14.jar:na]
at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79) ~[sdk-1.0.14.jar:na]
at com.vk.api.sdk.events.longpoll.LongPollApi.getLongPollServer(LongPollApi.java:51) ~[sdk-1.0.14.jar:na]
at com.vk.api.sdk.events.longpoll.LongPollApi.lambda$run$1(LongPollApi.java:92) ~[sdk-1.0.14.jar:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
2023-03-29T01:32:14.690+03:00 WARN 25240 --- [pool-7-thread-1] com.vk.api.sdk.client.ApiRequest : API Server error
com.vk.api.sdk.exceptions.ApiServerException: Internal server error (10): Internal server error
at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:28) ~[sdk-1.0.14.jar:na]
at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104) ~[sdk-1.0.14.jar:na]
at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79) ~[sdk-1.0.14.jar:na]
at com.vk.api.sdk.events.longpoll.LongPollApi.getLongPollServer(LongPollApi.java:51) ~[sdk-1.0.14.jar:na]
at com.vk.api.sdk.events.longpoll.LongPollApi.lambda$run$1(LongPollApi.java:92) ~[sdk-1.0.14.jar:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
2023-03-29T01:32:14.690+03:00 ERROR 25240 --- [pool-7-thread-1] c.v.api.sdk.events.longpoll.LongPollApi : Getting LongPoll server was failed
2023-03-29T01:32:14.690+03:00 INFO 25240 --- [pool-7-thread-1] c.v.api.sdk.events.longpoll.LongPollApi : LongPoll handler started to handle events
Exception in thread "pool-7-thread-1" java.lang.NullPointerException: Cannot invoke "com.vk.api.sdk.objects.groups.LongPollServer.getTs()" because "lpServer" is null
at com.vk.api.sdk.events.longpoll.LongPollApi.handleUpdates(LongPollApi.java:65)
at com.vk.api.sdk.events.longpoll.LongPollApi.lambda$run$1(LongPollApi.java:93)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)`
После технических проблем со стороны серверов API longpoll больше не оживает - подозреваю, что проблема возникает из-за исключения на клиенте. После этого исключения других сообщений от VK API SDK больше не возникает.
Java SDK - https://repo.maven.apache.org/maven2/com/vk/api/sdk/1.0.14/ Версия API - 1.131
Выдержка из логов:
`2023-03-29T01:32:14.690+03:00 ERROR 25240 --- [pool-7-thread-1] com.vk.api.sdk.client.ApiRequest : API error
com.vk.api.sdk.exceptions.ApiServerException: Internal server error (10): Internal server error at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:28) ~[sdk-1.0.14.jar:na] at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104) ~[sdk-1.0.14.jar:na] at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79) ~[sdk-1.0.14.jar:na] at com.vk.api.sdk.events.longpoll.LongPollApi.getLongPollServer(LongPollApi.java:51) ~[sdk-1.0.14.jar:na] at com.vk.api.sdk.events.longpoll.LongPollApi.lambda$run$1(LongPollApi.java:92) ~[sdk-1.0.14.jar:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
2023-03-29T01:32:14.690+03:00 WARN 25240 --- [pool-7-thread-1] com.vk.api.sdk.client.ApiRequest : API Server error
com.vk.api.sdk.exceptions.ApiServerException: Internal server error (10): Internal server error at com.vk.api.sdk.exceptions.ExceptionMapper.parseException(ExceptionMapper.java:28) ~[sdk-1.0.14.jar:na] at com.vk.api.sdk.client.ApiRequest.executeWithoutRetry(ApiRequest.java:104) ~[sdk-1.0.14.jar:na] at com.vk.api.sdk.client.ApiRequest.execute(ApiRequest.java:79) ~[sdk-1.0.14.jar:na] at com.vk.api.sdk.events.longpoll.LongPollApi.getLongPollServer(LongPollApi.java:51) ~[sdk-1.0.14.jar:na] at com.vk.api.sdk.events.longpoll.LongPollApi.lambda$run$1(LongPollApi.java:92) ~[sdk-1.0.14.jar:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
2023-03-29T01:32:14.690+03:00 ERROR 25240 --- [pool-7-thread-1] c.v.api.sdk.events.longpoll.LongPollApi : Getting LongPoll server was failed 2023-03-29T01:32:14.690+03:00 INFO 25240 --- [pool-7-thread-1] c.v.api.sdk.events.longpoll.LongPollApi : LongPoll handler started to handle events Exception in thread "pool-7-thread-1" java.lang.NullPointerException: Cannot invoke "com.vk.api.sdk.objects.groups.LongPollServer.getTs()" because "lpServer" is null at com.vk.api.sdk.events.longpoll.LongPollApi.handleUpdates(LongPollApi.java:65) at com.vk.api.sdk.events.longpoll.LongPollApi.lambda$run$1(LongPollApi.java:93) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833)`