Aias00 opened a new issue, #6841: URL: https://github.com/apache/shenyu/issues/6841
## Description `AccessTokenManager` does `this.tokenExpiredTime = (long) tokenMap.get(Constants.ADMIN_RESULT_EXPIRED_TIME);` — unboxing a null `Long` when the admin login response omits `expiredTime`. The enclosing catch is only `IOException`, so the NPE propagates out of the `ScheduledExecutorService.scheduleWithFixedDelay` task. For `ScheduledExecutorService`, an uncaught `RuntimeException` from a scheduled task suppresses all subsequent executions — no further token refresh attempts are ever made. ## Location - `shenyu-sync-data-center/shenyu-sync-data-http/src/main/java/org/apache/shenyu/sync/data/http/AccessTokenManager.java:139` ## Impact The access token remains null/stale; all subsequent long-polling requests fail with 401, permanently breaking HTTP sync until gateway restart. ## Suggested fix Null-check before unboxing; return false (so the schedule continues) on a malformed response; widen the catch to `Exception`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
