getting Invalid byte tag in constant pool : 19

▼魔方 西西 提交于 2019-12-13 12:34:33

问题


i am creating one webservice and getting error like org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19. i am using tomcat 8.0 and java versoin is 1.8.0.152.


回答1:


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:

  • The BCEL version you are using doesn't understand the tag.
  • The class wouldn't load in a Java 8 JVM anyway. Modules were only introduced in Java 9, and the class file's major version number should be too recent for a Java 8 JVM.


来源:https://stackoverflow.com/questions/50567687/getting-invalid-byte-tag-in-constant-pool-19

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!