diff --git a/core/src/main/java/com/taobao/arthas/core/util/JsonUtils.java b/core/src/main/java/com/taobao/arthas/core/util/JsonUtils.java index 5ab6acb67..a2b184b8b 100644 --- a/core/src/main/java/com/taobao/arthas/core/util/JsonUtils.java +++ b/core/src/main/java/com/taobao/arthas/core/util/JsonUtils.java @@ -27,7 +27,7 @@ public class JsonUtils { } serializeWriterBufferThreshold.setAccessible(true); serializeWriterBufferThreshold.set(null, value); - } catch (Exception e) { + } catch (Throwable e) { logger.error("update SerializeWriter.BUFFER_THRESHOLD value failed", e); } } @@ -59,7 +59,7 @@ public class JsonUtils { if (bytesLocal == null || bytesLocal.length < bufSize) { bytesBufLocal.set(new byte[bufSize]); } - } catch (Exception e) { + } catch (Throwable e) { logger.error("update SerializeWriter.BUFFER_THRESHOLD value failed", e); } } @@ -84,7 +84,7 @@ public class JsonUtils { serializeWriterBytesBufLocal.setAccessible(true); ThreadLocal bytesBufLocal = (ThreadLocal) serializeWriterBytesBufLocal.get(null); bytesBufLocal.set(bytesBuf); - } catch (Exception e) { + } catch (Throwable e) { logger.error("update SerializeWriter.BUFFER_THRESHOLD value failed", e); } }