This is an automated email from the ASF dual-hosted git repository.
youling1128 pushed a commit to branch 2.8.x
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git
The following commit(s) were added to refs/heads/2.8.x by this push:
new c064070b2 [#4910] fixed registration center response exception cause
nullPointerException (#4911)
c064070b2 is described below
commit c064070b2ec95aa8b4fc819fa462fa633bbe645f
Author: Alex <[email protected]>
AuthorDate: Mon Sep 1 09:21:35 2025 +0800
[#4910] fixed registration center response exception cause
nullPointerException (#4911)
---
.../servicecomb/service/center/client/ServiceCenterRegistration.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRegistration.java
b/clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRegistration.java
index eafd58f48..97d414b26 100644
---
a/clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRegistration.java
+++
b/clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRegistration.java
@@ -291,7 +291,7 @@ public class ServiceCenterRegistration extends AbstractTask
{
if (failedCount == 2) {
LOGGER.error("send heart failed, and will try again.", e);
} else {
- LOGGER.warn("send heart failed, and will try again. message [{}]",
e.getCause().getMessage());
+ LOGGER.warn("send heart failed, and will try again. message [{}]",
e.getMessage());
}
eventBus.post(new HeartBeatEvent(false, microservice,
microserviceInstance));
startTask(new BackOffSleepTask(failedCount + 1, new
SendHeartBeatTask(failedCount + 1)));