Log4J2:Java 11不支持Reflection.getCallerClass

时间:2019-03-12 13:27:26

标签: java reflection log4j2 java-11

第一次使用Log4J2,并且在IDEA之外运行我的应用程序时,出现以下错误。拥有在Liberika JDK 11上运行的Maven Projekt。据我了解,这与JDK 11和Log4J2之间的兼容性有关-但我不知道如何摆脱此错误。非常感谢您的帮助-谢谢!

xxxxxx MINGW64 /c/Data/Project/Terraform/Terraform (master)

    $ git status

On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        deleted:    FirstTerraform.tf

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        Main.tf

no changes added to commit (use "git add" and/or "git commit -a")

xxxxxxx MINGW64 /c/Data/Project/Terraform/Terraform (master)
$ git add Main.tf

xxxxxxx MINGW64 /c/Data/Project/Terraform/Terraform (master)
$ git commit -m 'Changed file name'
[master 5254f64] Changed file name
1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 Main.tf

xxxxxx MINGW64 /c/Data/Project/Terraform/Terraform (master)
$ git push origin master
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 468 bytes | 156.00 KiB/s, done.
Total 4 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 1 local object.
To https://github.com/xxxxxxxxx
   c397b99..5254f64  master -> master

0 个答案:

没有答案