-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
新版本 ognl 有一个 UseStricterInvocation 模块,默认开启,执行 ognl 表达式容易出现: cannot be called from within OGNL invokeMethod() under stricter invocation mode #2955
Comments
I recently encountered this issue as well. Has it been resolved in the new version? |
The current version of Arthas (4.0.4) has not resolved this issue with OGNL. You can solve it using the following steps:
|
I seems not work for me. I also use Arthas 4.0.4. Following is the exception stack. [arthas-command-execute] WARN c.t.a.c.command.klass100.OgnlCommand -ognl: failed execute express: #field = @com.taobao.arthas.core.util.reflect.FieldUtils@getDeclaredField(Class.forName("ognl.OgnlRuntime"),"_useStricterInvocation",true), #modifiers = @com.taobao.arthas.core.util.reflect.FieldUtils@getDeclaredField(#field.getClass(),"modifiers",true),#modifiers.setInt(#field, #field.getModifiers() & [email protected]@FINAL),#field.set(null,false) |
If you're using JDK 17 or higher, you can try the following steps:
Its effect is equivalent to the following code:
|
Thank you very much. It works now.
A bash shell command style like. |
需要和 arthas 本身的
options strict
对应起来。The text was updated successfully, but these errors were encountered: