Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Agent 0.4.6 启动异常,新增系统变量log4j2解析失败 #574

Open
1 of 2 tasks
pony-qd opened this issue Oct 11, 2024 · 1 comment
Open
1 of 2 tasks
Labels
bug 🐞 Something isn't working

Comments

@pony-qd
Copy link

pony-qd commented Oct 11, 2024

Search before asking

  • I have searched the existing issues before asking.

AREX Test Service

AREX Java Agent (arextest/arex-agent-java)

Current Behavior

Springboot项目启动
不加载arex-agent启动正常
加载agent:0.4.4启动正常
加载agent:0.4.6启动异常
项目依赖信息如下:
image

image

Expected Behavior

不产生异常

Steps To Reproduce

异常信息如下:
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.apache.logging.log4j.util.PropertiesUtil
at org.apache.logging.log4j.status.StatusLogger.(StatusLogger.java:71)
at org.apache.logging.log4j.LogManager.(LogManager.java:60)
at org.apache.commons.logging.LogFactory$Log4jLog.(LogFactory.java:199)
at org.apache.commons.logging.LogFactory$Log4jDelegate.createLog(LogFactory.java:166)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:109)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:99)
at org.springframework.boot.SpringApplication.(SpringApplication.java:198)

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!
@pony-qd pony-qd added the bug 🐞 Something isn't working label Oct 11, 2024
@pony-qd
Copy link
Author

pony-qd commented Oct 11, 2024

经过分析原因如下:
0.4.6版本,新增了系统属性,且设置为Map类型
image

而log4j2-api
解析属性时统一为String,类型不匹配
image

@pony-qd pony-qd changed the title [Bug] Agent 0.4.6 启动类冲突 [Bug] Agent 0.4.6 启动异常,新增系统变量log4j2解析失败 Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant