【问题标题】:Illegal reflective access by Metro jarMetro jar 的非法反射访问
【发布时间】:2019-09-23 13:16:34
【问题描述】:

我有一个由我使用的 Metro jar 引起的非法反射访问操作:

jvm 1    | WARNING: An illegal reflective access operation has occurred
jvm 1    | WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 (file:/C:/myapp/webservices-rt.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
jvm 1    | WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1
jvm 1    | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
jvm 1    | WARNING: All illegal access operations will be denied in a future release
  • OpenJDK版本:采用OpenJDK 11.0.4+11
  • Metro 版本:metro-standalone-2.3.1

我在这里读到过什么是非法反射访问: what is an illegal reflective access

我需要使用特定的模块吗?如何?我在 Metro zip 文件中没有找到任何内容。

我不清楚如何解决这个问题。

【问题讨论】:

标签: java web-services module java-metro-framework


【解决方案1】:

“发生了非法反射访问操作”似乎是 Java 9 的一项功能。 “metro-standalone-2.3.1”是否兼容 Java 9+?

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-03-22
  • 1970-01-01
  • 2018-10-19
  • 1970-01-01
  • 2019-04-17
  • 1970-01-01
相关资源
最近更新 更多