ClassFormatException Invalid byte tag in constant pool
来源:互联网 发布:文艺句子 知乎 编辑:程序博客网 时间:2024/05/17 02:00
一、问题描述
新接手一个古老 JavaWeb 项目,启动的时候,报以下错误:
org.aspectj.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 18 at org.aspectj.apache.bcel.classfile.Constant.readConstant(Constant.java:133) at org.aspectj.apache.bcel.classfile.ConstantPool.<init>(ConstantPool.java:45)...
项目的 web.xml 文件里 version=2.4。
经过各找查找资料,就连 StackOverflow 上的回答也是说把 version 升级到 3.0 并加入 metadata-complete=”true” 设置,然而并没有什么效果。
二、解决方案
最终,找到了这篇文章:《解决在JDK8中org.aspectj.apache.bcel.classfile.ClassFormatException》
原博也真是厉害。
关键点是 aspectjweaver 的版本太低,不支持 JDK7 和 Java8 等等,可想而知我接手的这个项目有多古老啊。。。伤心
升级 aspectjweaver 的版本就可以解决了
所以,不用去升级 web.xml 并新加 metadata-complete=”true” 设置也是可以的,亲测,加了也没用。
三、参考
- 《解决在JDK8中org.aspectj.apache.bcel.classfile.ClassFormatException》
0 0
- ClassFormatException: Invalid byte tag in constant pool
- ClassFormatException Invalid byte tag in constant pool
- util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15
- org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 60
- org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 60
- org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool问题解决方案
- Invalid byte tag in constant pool: 15
- Invalid byte tag in constant pool 15
- 解决在JDK8中org.aspectj.apache.bcel.classfile.ClassFormatException Invalid byte tag in constant pool: 18
- 出现 org.apache.tomcat.xxx.ClassFormatException: Invalid byte tag in constant pool: 15 异常的原因及解决方法
- JDK8: Invalid byte tag in constant pool: 18
- Invalid byte tag in constant pool: 15报错解决
- Mac OS X+AspectJ+JDK 8,报Invalid byte tag in constant pool: 18的解决方法
- cas maven install 报错 Invalid byte tag in constant pool: 15
- Tomcat 7 + Java 8 : Invalid byte tag in constant pool: 15
- Tomcat 7 + Java 8 : Invalid byte tag in constant pool: 15
- Tomcat部署后访问报错Invalid byte tag in constant pool: 15
- 安装intellij idea的Tomact是遇见这个问题 Invalid byte tag in constant pool: 15
- 基于canvas的二维码邀请函生成插件
- Leetcode-414. Third Maximum Number
- GDKOI2017酱油记
- 火焰跳动小案例
- 理解哈希表算法
- ClassFormatException Invalid byte tag in constant pool
- Eclipse如何配置免安装JDK及maven
- 开源软件简介
- 我的博客
- CJOJ P2295 【HAOI2008】糖果传递
- POJ - 3882 Stammering Aliens 后缀数组、二分、二叉堆、ST表
- 分治思想之快速排序
- 【solr】——配置文件
- c++中的vector