awslabs / amazon-kinesis-client

Client library for Amazon Kinesis
Apache License 2.0
644 stars 466 forks source link

Build Failure: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags #713

Open funston opened 4 years ago

funston commented 4 years ago

1) git clone 2) mvn clean install 3)

[INFO] Compiling 170 source files to /Users/rich/dev/amazon-kinesis-client/amazon-kinesis-client/target/classes WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by lombok.javac.apt.LombokProcessor to field com.sun.tools.javac.processing.JavacProcessingEnvironment.discoveredProcs WARNING: Please consider reporting this to the maintainers of lombok.javac.apt.LombokProcessor WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Amazon Kinesis Client Library 2.2.11-SNAPSHOT: [INFO] [INFO] Amazon Kinesis Client Library ...................... SUCCESS [ 0.207 s] [INFO] Amazon Kinesis Client Library for Java ............. FAILURE [ 1.982 s] [INFO] amazon-kinesis-client-multilang .................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.304 s [INFO] Finished at: 2020-04-23T17:55:37-07:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project amazon-kinesis-client: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :amazon-kinesis-client

4) java -version

java version "11.0.7" 2020-04-14 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.7+8-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.7+8-LTS, mixed mode)

maxter125 commented 3 years ago

I had the same issue caused by lombok version, so I changed lombok version to latest 1.18.18. it worked for me

cris-Duarte commented 3 years ago

I had the same issue caused by lombok version, so I changed lombok version to latest 1.18.18. it worked for me

This was the solution to my problems... Thanks.

moaxcp commented 2 years ago

This is a duplicate of #617

skywang001 commented 1 year ago

I had the same issue caused by lombok version, so I changed lombok version to latest 1.18.8. it also worked for me. but I don't know why?