getting Invalid byte tag in constant pool : 19(在常量池中获取无效的字节标签:19)
问题描述
我正在创建一个 web 服务并收到类似的错误
i am creating one webservice and getting error like
org.apache.tomcat.util.bcel.classfile.ClassFormatException:常量池中的无效字节标记:19.
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19.
我使用的是 tomcat 8.0,java 版本是 1.8.0.152.
i am using tomcat 8.0 and java versoin is 1.8.0.152.
推荐答案
标签类型为 19 的常量池条目是模块描述符;请参阅 JVM 规格表 4.4-A一个>.我认为您已尝试在使用 Java 9(或更高版本)编译器编译的类上使用 BCEL:
A constant pool entry with tag type 19 is a module descriptor; see JVM spec table 4.4-A. I think you have attempted to use BCEL on a class compiled with a Java 9 (or later) compiler:
- 您使用的 BCEL 版本不理解标签.
- 无论如何,该类都不会加载到 Java 8 JVM 中.模块仅在 Java 9 中引入,并且类文件的主要版本号对于 Java 8 JVM 来说应该太新了.
这篇关于在常量池中获取无效的字节标签:19的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在常量池中获取无效的字节标签:19


- 如何使用WebFilter实现授权头检查 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01