Skip to content

Commit

Permalink
fix: classloader issue for SerializedThrowableDeserializer
Browse files Browse the repository at this point in the history
  • Loading branch information
jierwang committed Feb 22, 2024
1 parent e7e973e commit 26bbaef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public SerializedThrowable deserialize(final JsonParser p, final Deserialization
final byte[] serializedException = root.get(FIELD_NAME_SERIALIZED_THROWABLE).binaryValue();
try {
return InstantiationUtil.deserializeObject(
serializedException, ClassLoader.getSystemClassLoader());
serializedException, Thread.currentThread().getContextClassLoader());
} catch (ClassNotFoundException e) {
throw new IOException(
"Failed to deserialize " + SerializedThrowable.class.getCanonicalName(), e);
Expand Down

0 comments on commit 26bbaef

Please sign in to comment.