web-dev-qa-db-ja.com

定数プールの無効なバイトタグ:19エラーメッセージ

このエラーメッセージは、Tomcatが8.0.30であり、JDK 8を使用していることを示しています。Spring-bootプロジェクトを作成しています。 JDK 8を使用するよう提案された方もいらっしゃいますが、私は実際にJDK 8を使用しています。ここでの問題は何ですか?

信息: Starting Servlet Engine: Apache Tomcat/8.0.30
十月 18, 2018 12:26:19 下午 org.Apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor /home/export/Domains/nluqe.jd.com/server1/conf/Catalina/localhost/ROOT.xml
十月 18, 2018 12:26:19 下午 org.Apache.catalina.core.StandardContext setPath
警告: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []
十月 18, 2018 12:26:32 下午 org.Apache.catalina.startup.ContextConfig processAnnotationsJar
严重: Unable to process Jar entry [module-info.class] from Jar [jar:file:/home/export/App/nluqe.jd.com/WEB-INF/lib/lombok-1.16.22.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:97)
at org.Apache.Tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.Java:55)
at org.Apache.Tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.Java:176)
at org.Apache.Tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.Java:85)
at org.Apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.Java:2011)
at org.Apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.Java:1961)
at org.Apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.Java:1936)
at org.Apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.Java:1897)
at org.Apache.catalina.startup.ContextConfig.webConfig(ContextConfig.Java:1149)
at org.Apache.catalina.startup.ContextConfig.configureStart(ContextConfig.Java:771)
at org.Apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.Java:305)
at org.Apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.Java:95)
at org.Apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.Java:90)
at org.Apache.catalina.core.StandardContext.startInternal(StandardContext.Java:5154)
at org.Apache.catalina.util.LifecycleBase.start(LifecycleBase.Java:150)
at org.Apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.Java:725)
at org.Apache.catalina.core.ContainerBase.addChild(ContainerBase.Java:701)
at org.Apache.catalina.core.StandardHost.addChild(StandardHost.Java:717)
at org.Apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.Java:586)
at org.Apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.Java:1777)
at Java.util.concurrent.Executors$RunnableAdapter.call(Executors.Java:511)
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)
十月 18, 2018 12:26:34 下午 org.Apache.catalina.startup.ContextConfig processAnnotationsJar
严重: Unable to process Jar entry [module-info.class] from Jar [jar:file:/home/export/App/nluqe.jd.com/WEB-INF/lib/log4j-api-2.10.0.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:97)
at org.Apache.Tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.Java:55)
at org.Apache.Tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.Java:176)
at org.Apache.Tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.Java:85)
at org.Apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.Java:2011)
at org.Apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.Java:1961)
at org.Apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.Java:1936)
at org.Apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.Java:1897)
at org.Apache.catalina.startup.ContextConfig.webConfig(ContextConfig.Java:1149)
at org.Apache.catalina.startup.ContextConfig.configureStart(ContextConfig.Java:771)
at org.Apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.Java:305)
at org.Apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.Java:95)
at org.Apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.Java:90)
at org.Apache.catalina.core.StandardContext.startInternal(StandardContext.Java:5154)
at org.Apache.catalina.util.LifecycleBase.start(LifecycleBase.Java:150)
at org.Apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.Java:725)
at org.Apache.catalina.core.ContainerBase.addChild(ContainerBase.Java:701)
at org.Apache.catalina.core.StandardHost.addChild(StandardHost.Java:717)
at org.Apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.Java:586)
at org.Apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.Java:1777)
at Java.util.concurrent.Executors$RunnableAdapter.call(Executors.Java:511)
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)

更新されました(提案ごとにアノテーションをスキャンしないように構成します):

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
       xmlns:aop="http://www.springframework.org/schema/aop" xmlns:mvc="http://www.springframework.org/schema/mvc"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
    http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
    <bean id="executorService" class="Java.util.concurrent.Executors" factory-method="newFixedThreadPool">
        <constructor-arg value="20"></constructor-arg>
    </bean>

    <!-- jsf -->
    <import resource="jsf-context.xml"/>


    <aop:aspectj-autoproxy proxy-target-class="true"/>


    <bean class="com.jd.ump.annotation.JAnnotation">

        <property name="systemKey" value="com.nlu-qe-service.systemKey"></property>

        <property name="jvmKey" value="com.nlu-qe-service.jvmKey"></property>
    </bean>


    </beans>
6
user697911

私も同じ問題を抱えています。私はaspectjrtとaspectjweaver jarバージョンを変更しました

    <dependency>
        <groupId>org.aspectj</groupId>
        <artifactId>aspectjrt</artifactId>
        <version>1.8.5</version>
    </dependency>

    <dependency>
        <groupId>org.aspectj</groupId>
        <artifactId>aspectjweaver</artifactId>
        <version>1.8.5</version>
    </dependency>

これも試してみてください。

0
Navnath Adsul