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

arthas-4.0.0执行ognl命令无效果,arthas-3.7.2执行ognl命令有效果 #2892

Closed
1 task
genglongsir opened this issue Sep 5, 2024 · 1 comment
Closed
1 task
Labels
bug Something isn't working
Milestone

Comments

@genglongsir
Copy link

  • 我已经在 issues 里搜索,没有重复的issue。

环境信息

  • arthas-boot.jar 或者 as.sh 的版本: 4.0.0
  • Arthas 版本: 4.0.0
  • 操作系统版本: Windows 11 专业版 23H2
  • 目标进程的JVM版本: java version "1.8.0_202",Java(TM) SE Runtime Environment (build 1.8.0_202-b08),Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
  • 执行arthas-boot的版本: 4.0.0
  • springboot版本: 2.6.13

重现问题的步骤

  1. 启动应用
  2. 启动arthas,选择对应的进程
  3. 输入命令:ognl '#value1=@java.lang.System@out,#value1.println("hello \u4e2d\u6587")'

期望的结果

应用控制台打印 “hello 中文”

实际运行的结果

未打印 “hello 中文”
如果切换到arthas-3.7.2,相同的操作,可以打印 “hello 中文”
实际运行结果,最好有详细的日志,异常栈。尽量贴文本。

@hengyunabc
Copy link
Collaborator

这个确实有问题,应该是升级了 ognl 版本的原因。

@hengyunabc hengyunabc added the bug Something isn't working label Sep 9, 2024
@hengyunabc hengyunabc added this to the 4.0.1 milestone Sep 9, 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

2 participants