Skip to content

Commit 9f056ec

Browse files
authored
[#4910] fixed config center response exception cause nullPointerException (#4912)
1 parent c064070 commit 9f056ec

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clients/config-center-client/src/main/java/org/apache/servicecomb/config/center/client/ConfigCenterClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public QueryConfigurationsResponse queryConfigurations(QueryConfigurationsReques
147147
} catch (IOException e) {
148148
addressManager.recordFailState(address);
149149
LOGGER.error("query configuration from {} failed, message={}", uri, e.getMessage());
150-
throw new OperationException("", e);
150+
throw new OperationException("query configuration failed!", e);
151151
}
152152
}
153153

clients/config-center-client/src/main/java/org/apache/servicecomb/config/center/client/ConfigCenterManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void execute() {
9090
startTask(new BackOffSleepTask(configCenterConfiguration.getRefreshIntervalInMillis(), new PollConfigurationTask(0)));
9191
} catch (Exception e) {
9292
LOGGER.warn("get configurations from ConfigCenter failed, and will try again, cause message: {}. current "
93-
+ "fail does not affect the obtained historical configuration.", e.getCause().getMessage());
93+
+ "fail does not affect the obtained historical configuration.", e.getMessage());
9494
startTask(new BackOffSleepTask(failCount + 1, new PollConfigurationTask(failCount + 1)));
9595
}
9696
}

clients/config-kie-client/src/main/java/org/apache/servicecomb/config/kie/client/KieConfigManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void execute() {
156156
}
157157
} catch (Exception e) {
158158
LOGGER.warn("get configurations from KieConfigCenter failed, and will try again, cause message: {}. current "
159-
+ "fail does not affect the obtained historical configuration.", e.getCause().getMessage());
159+
+ "fail does not affect the obtained historical configuration.", e.getMessage());
160160
startTask(
161161
new BackOffSleepTask(failCount + 1, new PollConfigurationTask(failCount + 1, this.configurationsRequest)));
162162
}

0 commit comments

Comments
 (0)