Skip to content

Commit

Permalink
fix classlaoder setting
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeCqupt committed May 28, 2024
1 parent dca34c2 commit 206f2e4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ public void run() {
+ ResponseStatus.UNKNOWN, future.getCause());
}

Object responseObj = RpcResponseResolver.resolveResponseObject(response,
this.remoteAddress);

ClassLoader oldClassLoader = null;
try {
if (future.getAppClassLoader() != null) {
oldClassLoader = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(future.getAppClassLoader());
}

Object responseObj = RpcResponseResolver.resolveResponseObject(response,
this.remoteAddress);
response.setInvokeContext(future.getInvokeContext());
try {
callback.onResponse(responseObj);
Expand Down

0 comments on commit 206f2e4

Please sign in to comment.