• lombok, Invalid byte tag in constant pool: 19


    Dec 25, 2019 4:40:46 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar
    SEVERE: Unable to process Jar entry [module-info.class] from Jar [jar:file:/home/appops/webroot/WEB-INF/lib/lombok-1.18.6.jar!/] for annotations
    org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19
        at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:136)
        at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:59)
        at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:208)
        at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:118)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2055)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1931)
        at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1897)
        at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1882)
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1314)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:873)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:371)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

    解决:试着将tomcat7.0.52升级到tomcat8.0.42 错误不报了,但是任然无法启动 , 查看了下,lombok包是其它包引入的,由于工程并未使用lombok相关注解,所以排除了lombok包 

    其它方案:https://stackoverflow.com/a/52882816

  • 相关阅读:
    c++析构函数、虚析构函数、纯虚析构函数详解
    php实现设计模式之 策略模式
    php实现设计模式之 简单工厂模式
    记录一下工作中碰到的一些有用的命令
    预估高并发下API服务器数量
    囧啊!!时间戳转化为时间出错php
    php 实现hash表
    php 中使用cURL发送get/post请求,上传图片,批处理
    redis虚拟内存
    redis主从同步
  • 原文地址:https://www.cnblogs.com/hsuchan/p/12097617.html
Copyright © 2020-2023  润新知