Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71922

Google OAuth Credentials fails to compile on Java 21 with Lombok error

XMLWordPrintable

    • 1.0.11

      Google OAuth Credentials fails to compile on Java 21 with:

      java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid' -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project build-monitor-acceptance: Fatal error compiling
      	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:347)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
      	at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
      	at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
      	at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
      	at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
      	at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
      	at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
      	at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
      	at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
      	at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
      	at java.lang.reflect.Method.invoke (Method.java:580)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error compiling
      	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1143)
      	at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:193)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
      	at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
      	at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
      	at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
      	at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
      	at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
      	at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
      	at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
      	at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
      	at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
      	at java.lang.reflect.Method.invoke (Method.java:580)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
      Caused by: org.codehaus.plexus.compiler.CompilerException: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid'
      	at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess (JavaxToolsCompiler.java:198)
      	at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile (JavacCompiler.java:183)
      	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1140)
      	at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:193)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
      	at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
      	at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
      	at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
      	at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
      	at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
      	at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
      	at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
      	at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
      	at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
      	at java.lang.reflect.Method.invoke (Method.java:580)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
      Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid'
      	at com.sun.tools.javac.api.JavacTaskImpl.invocationHelper (JavacTaskImpl.java:168)
      	at com.sun.tools.javac.api.JavacTaskImpl.doCall (JavacTaskImpl.java:100)
      	at com.sun.tools.javac.api.JavacTaskImpl.call (JavacTaskImpl.java:94)
      	at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess (JavaxToolsCompiler.java:136)
      	at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile (JavacCompiler.java:183)
      	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1140)
      	at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:193)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
      	at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
      	at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
      	at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
      	at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
      	at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
      	at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
      	at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
      	at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
      	at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
      	at java.lang.reflect.Method.invoke (Method.java:580)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
      Caused by: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid'
      	at lombok.javac.JavacImportList.getFullyQualifiedNameForSimpleNameNoAliasing (JavacImportList.java:53)
      	at lombok.core.TypeResolver.typeRefToFullyQualifiedName (TypeResolver.java:60)
      	at lombok.javac.HandlerLibrary.handleAnnotation (HandlerLibrary.java:247)
      	at lombok.javac.JavacTransformer$AnnotationVisitor.visitAnnotationOnMethodArgument (JavacTransformer.java:94)
      	at lombok.javac.JavacNode.traverse (JavacNode.java:143)
      	at lombok.javac.JavacAST.traverseChildren (JavacAST.java:222)
      	at lombok.javac.JavacNode.traverse (JavacNode.java:116)
      	at lombok.javac.JavacAST.traverseChildren (JavacAST.java:222)
      	at lombok.javac.JavacNode.traverse (JavacNode.java:105)
      	at lombok.javac.JavacAST.traverseChildren (JavacAST.java:222)
      	at lombok.javac.JavacNode.traverse (JavacNode.java:95)
      	at lombok.javac.JavacAST.traverseChildren (JavacAST.java:222)
      	at lombok.javac.JavacNode.traverse (JavacNode.java:90)
      	at lombok.javac.JavacAST.traverse (JavacAST.java:218)
      	at lombok.javac.JavacTransformer.transform (JavacTransformer.java:63)
      	at lombok.javac.apt.LombokProcessor.process (LombokProcessor.java:328)
      	at lombok.core.AnnotationProcessor$JavacDescriptor.process (AnnotationProcessor.java:187)
      	at lombok.core.AnnotationProcessor.process (AnnotationProcessor.java:241)
      	at lombok.launch.AnnotationProcessorHider$AnnotationProcessor.process (AnnotationProcessor.java:90)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor (JavacProcessingEnvironment.java:1021)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs (JavacProcessingEnvironment.java:937)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run (JavacProcessingEnvironment.java:1265)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing (JavacProcessingEnvironment.java:1380)
      	at com.sun.tools.javac.main.JavaCompiler.processAnnotations (JavaCompiler.java:1271)
      	at com.sun.tools.javac.main.JavaCompiler.compile (JavaCompiler.java:948)
      	at com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0 (JavacTaskImpl.java:104)
      	at com.sun.tools.javac.api.JavacTaskImpl.invocationHelper (JavacTaskImpl.java:152)
      	at com.sun.tools.javac.api.JavacTaskImpl.doCall (JavacTaskImpl.java:100)
      	at com.sun.tools.javac.api.JavacTaskImpl.call (JavacTaskImpl.java:94)
      	at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess (JavaxToolsCompiler.java:136)
      	at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile (JavacCompiler.java:183)
      	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1140)
      	at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:193)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
      	at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
      	at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
      	at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
      	at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
      	at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
      	at org.apache.maven.cli.MavenCli.execute (MavenCli.java:910)
      	at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
      	at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
      	at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
      	at java.lang.reflect.Method.invoke (Method.java:580)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
      

            alecharp Adrien Lecharpentier
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: