运行报错:java.io.IOException: invalid constant type: 15

jdk,tomcat更新到jdk1.8与 tomcat8

运行报错:java.io.IOException: invalid constant type: 15

pom.xml文件中更新javassist的版本从3.15到3.18

1 <dependency>
2 <groupId>org.javassistgroupId>
3 <artifactId>javassistartifactId>
4 <version>3.18.2-GAversion>
5 dependency>

 

注意:如果找不到javassist 依赖,可能包含在其他的依赖中。可以像我这样排除这个依赖再引用

      <dependency>
            <groupId>com.alibabagroupId>
            <artifactId>dubboartifactId>
            <version>2.5.3version>
            <exclusions>
                <exclusion>
                    <artifactId>springartifactId>
                    <groupId>org.springframeworkgroupId>
                exclusion>
                <exclusion>
                    <artifactId>javassistartifactId>
                    <groupId>org.javassistgroupId>
                exclusion>
            exclusions>
        dependency>

        
        <dependency>
            <groupId>org.javassistgroupId>
            <artifactId>javassistartifactId>
            <version>3.18.2-GAversion>
        dependency>

 

你可能感兴趣的:(运行报错:java.io.IOException: invalid constant type: 15)