diff --git a/easy-retry-common/easy-retry-common-log/src/main/java/com/aizuda/easy/retry/common/log/lang/LogCaller.java b/easy-retry-common/easy-retry-common-log/src/main/java/com/aizuda/easy/retry/common/log/lang/LogCaller.java
index 1c87b477..4f6abb1c 100644
--- a/easy-retry-common/easy-retry-common-log/src/main/java/com/aizuda/easy/retry/common/log/lang/LogCaller.java
+++ b/easy-retry-common/easy-retry-common-log/src/main/java/com/aizuda/easy/retry/common/log/lang/LogCaller.java
@@ -83,7 +83,7 @@ public class LogCaller {
private static Caller tryCreateCaller() {
Caller caller;
try {
- caller = new SecurityManagerCaller();
+ caller = new StackWalkerCaller();
if (null != caller.getCaller() && null != caller.getCallerCaller()) {
return caller;
}
diff --git a/easy-retry-common/easy-retry-common-log/src/main/java/com/aizuda/easy/retry/common/log/lang/SecurityManagerCaller.java b/easy-retry-common/easy-retry-common-log/src/main/java/com/aizuda/easy/retry/common/log/lang/SecurityManagerCaller.java
index be35e38b..129d0473 100644
--- a/easy-retry-common/easy-retry-common-log/src/main/java/com/aizuda/easy/retry/common/log/lang/SecurityManagerCaller.java
+++ b/easy-retry-common/easy-retry-common-log/src/main/java/com/aizuda/easy/retry/common/log/lang/SecurityManagerCaller.java
@@ -9,6 +9,7 @@ import java.io.Serializable;
*
* @author wodeyangzipingpingwuqi
*/
+@Deprecated
public class SecurityManagerCaller extends SecurityManager implements Caller, Serializable {
private static final long serialVersionUID = 1L;
diff --git a/easy-retry-common/easy-retry-common-log/src/main/java/com/aizuda/easy/retry/common/log/lang/StackWalkerCaller.java b/easy-retry-common/easy-retry-common-log/src/main/java/com/aizuda/easy/retry/common/log/lang/StackWalkerCaller.java
new file mode 100644
index 00000000..00c90e90
--- /dev/null
+++ b/easy-retry-common/easy-retry-common-log/src/main/java/com/aizuda/easy/retry/common/log/lang/StackWalkerCaller.java
@@ -0,0 +1,34 @@
+package com.aizuda.easy.retry.common.log.lang;
+
+import java.io.Serializable;
+
+/**
+ * @author xiaowoniu
+ * @date 2024-01-31 23:32:15
+ * @since 2.6.0
+ */
+public class StackWalkerCaller implements Caller, Serializable {
+
+ @Override
+ public Class> getCaller() {
+ return null;
+ }
+
+ @Override
+ public Class> getCallerCaller() {
+
+ StackWalker instance = StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE);
+ Class> callerClass = instance.getCallerClass();
+ return callerClass;
+ }
+
+ @Override
+ public Class> getCaller(int depth) {
+ return null;
+ }
+
+ @Override
+ public boolean isCalledBy(Class> clazz) {
+ return false;
+ }
+}
diff --git a/easy-retry-server/easy-retry-server-job-task/src/main/java/com/aizuda/easy/retry/server/job/task/support/callback/BroadcastClientCallbackHandler.java b/easy-retry-server/easy-retry-server-job-task/src/main/java/com/aizuda/easy/retry/server/job/task/support/callback/BroadcastClientCallbackHandler.java
index b9a3dbbe..0830225f 100644
--- a/easy-retry-server/easy-retry-server-job-task/src/main/java/com/aizuda/easy/retry/server/job/task/support/callback/BroadcastClientCallbackHandler.java
+++ b/easy-retry-server/easy-retry-server-job-task/src/main/java/com/aizuda/easy/retry/server/job/task/support/callback/BroadcastClientCallbackHandler.java
@@ -3,6 +3,8 @@ package com.aizuda.easy.retry.server.job.task.support.callback;
import akka.actor.ActorRef;
import com.aizuda.easy.retry.common.core.enums.JobTaskStatusEnum;
import com.aizuda.easy.retry.common.log.EasyRetryLog;
+import com.aizuda.easy.retry.common.log.lang.StackTraceCaller;
+import com.aizuda.easy.retry.common.log.lang.StackWalkerCaller;
import com.aizuda.easy.retry.server.common.akka.ActorGenerator;
import com.aizuda.easy.retry.server.common.util.ClientInfoUtils;
import com.aizuda.easy.retry.server.job.task.dto.LogMetaDTO;
@@ -28,6 +30,14 @@ import org.springframework.stereotype.Component;
@Component
@Slf4j
public class BroadcastClientCallbackHandler extends AbstractClientCallbackHandler {
+ public static void main(String[] args) {
+ StackTraceCaller securityManagerCaller = new StackTraceCaller();
+ StackWalkerCaller stackWalkerCaller = new StackWalkerCaller();
+ Class> callerCaller = stackWalkerCaller.getCallerCaller();
+ EasyRetryLog.LOCAL.info("aaa");
+ System.out.println(callerCaller);
+ System.out.println(securityManagerCaller.getCallerCaller());
+ }
@Autowired
private JobTaskMapper jobTaskMapper;
diff --git a/pom.xml b/pom.xml
index 2488ad2b..428a199e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
3.1.0-SNAPSHOT
1.0.0
4.1.94.Final
- 5.8.19
+ 5.8.25
3.5.5
2.0.0
2.0.0