Intellij Idea java:Lombok访问者处理程序类lombok.javac.handlers.HandleVal失败:java.lang.NoSuchMethodError:类型符号. isLocal()

koaltpgm  于 2023-01-25  发布在  Java
关注(0)|答案(1)|浏览(1044)

我试图用Maven构建Springboot项目,但在Tomcat服务器上运行时出现以下错误。
请提出解决办法。谢谢。

java: Lombok visitor handler class lombok.javac.handlers.HandleVal failed: java.lang.NoSuchMethodError: 'boolean com.sun.tools.javac.code.Symbol$TypeSymbol.isLocal()'

Lombok岛

<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.18.8</version>
</dependency>

梅文

Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Maven home: /usr/local/Cellar/maven/3.8.4/libexec
Java version: 11.0.11, vendor: AdoptOpenJDK, runtime: /Users/psingh/.jabba/jdk/adopt@1.11.0-11/Contents/Home
Default locale: en_IN, platform encoding: US-ASCII
OS name: "mac os x", version: "11.1", arch: "x86_64", family: "mac"

雄猫

Using CATALINA_BASE:   /usr/local/Cellar/tomcat@9/9.0.55/libexec
Using CATALINA_HOME:   /usr/local/Cellar/tomcat@9/9.0.55/libexec
Using CATALINA_TMPDIR: /usr/local/Cellar/tomcat@9/9.0.55/libexec/temp
Using JRE_HOME:        /Users/psingh/.jabba/jdk/adopt@1.11.0-11/Contents/Home
Using CLASSPATH:       /usr/local/Cellar/tomcat@9/9.0.55/libexec/bin/bootstrap.jar:/usr/local/Cellar/tomcat@9/9.0.55/libexec/bin/tomcat-juli.jar
Using CATALINA_OPTS:   
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
Server version: Apache Tomcat/9.0.55
Server built:   Nov 10 2021 08:26:45 UTC
Server number:  9.0.55.0
OS Name:        Mac OS X
OS Version:     11.1
Architecture:   x86_64
JVM Version:    11.0.11+9
JVM Vendor:     AdoptOpenJDK
zpgglvta

zpgglvta1#

我已经把Lombok更新到了1. 18. 24。它解决了这个问题!!现在它正在Tomcat服务器上的Intellij idea中运行。

相关问题