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

fastjson在jdk 17下抛出InaccessibleObjectException: module java.base does not "opens java.lang" to unnamed module #2153

Closed
hengyunabc opened this issue Apr 18, 2022 · 1 comment
Milestone

Comments

@hengyunabc
Copy link
Collaborator

复现办法:

  • 使用jdk 17执行 math-game.jar,再使用arthas attach
  • arthas执行options json-format true, watch demo.MathGame primeFactors throwExp
$ watch demo.MathGame primeFactors throwExp
Press Q or Ctrl+C to abort.
Affect(class count: 1 , method count: 1) cost in 59 ms, listenerId: 1
method=demo.MathGame.primeFactors location=AtExit
ts=2022-04-18 16:41:14; [cost=1.021625ms] result=null
method=demo.MathGame.primeFactors location=AtExit
ts=2022-04-18 16:41:15; [cost=1.561958ms] result=null
method=demo.MathGame.primeFactors location=AtExceptionExit
ts=2022-04-18 16:41:16; [cost=0.104583ms] result=ERROR DATA!!! object class: class java.lang.IllegalArgumentException, exception class: class java.lang.reflect.InaccessibleObjectException, exception message: Unable to make field private java.lang.Throwable java.lang.Throwable.cause accessible: module java.base does not "opens java.lang" to unnamed module @3a7a1e73
@hengyunabc
Copy link
Collaborator Author

在这个commit里修复: hengyunabc/fastjson@c04ceb9
暂时arthas自己发一个修复版本的fastjson。

@hengyunabc hengyunabc added this to the 3.6.1 milestone Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant