尝试将应用程序部署到WildFly 8.2时。我收到以下错误,我的应用程序根本无法启动。 JDK版本是1.8.0_51。
016-02-06 09
:38:49 [e8c32865] info [native] Instrumentation channel connected successfully
2016-02-06 09:38:50 [e8c32865] warning [native] Error during parsing of java bytecode: Java 7 classes with "invokedynamic" are not supported, skipping class transformation (class java/lang/CharSequence)
2016-02-06 09:38:50 [e8c32865] warning [native] Error during parsing of java bytecode: Java 7 classes with "invokedynamic" are not supported, skipping class transformation (class java/lang/reflect/AnnotatedElement)
2016-02-06 09:38:53 [e8c32865] warning [native] Error during parsing of java bytecode: Java 7 classes with "invokedynamic" are not supported, skipping class transformation (class java/util/Comparator)
2016-02-06 09:39:04 [e8c32865] info [native] Agent classes defined successfully
2016-02-06 09:39:05 [e8c32865] warning [native] Error during parsing of java bytecode: Java 7 classes with "invokedynamic" are not supported, skipping class transformation (class java/util/Map$Entry)
2016-02-06 09:39:06 [e8c32865] warning [native] Error during parsing of java bytecode: Java 7 classes with "invokedynamic" are not supported, skipping class transformation (class java/util/Arrays)
我们如何解决这个问题?任何帮助将不胜感激。
更新:
当我们在服务器中禁用“ dynatrace”时,此问题已修复。
但是,需要在不禁用dynatrace的情况下解决此问题。
最佳答案
这是dynatrace无法正确支持Java 8字节码的问题。
你可以
禁用dynatrace
尝试将dynatrace配置为不处理java.lang类
忽略消息
请与dynatrace联系以获取可能的升级或配置选项以解决此问题