Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup issues on Java 20 #215

Closed
pjfanning opened this issue Dec 21, 2022 · 14 comments · Fixed by #224
Closed

Startup issues on Java 20 #215

pjfanning opened this issue Dec 21, 2022 · 14 comments · Fixed by #224
Assignees
Milestone

Comments

@pjfanning
Copy link

Get this issue:

An exception occurred applying plugin request [id: 'de.thetaphi.forbiddenapis', version: '3.4']
> Failed to apply plugin 'de.thetaphi.forbiddenapis'.
   > Could not create plugin of type 'ForbiddenApisPlugin'.
      > BUG! exception in phase 'semantic analysis' in source unit 'jar:file:/home/jenkins/.gradle/caches/jars-9/44c0918c2065e44691dc9f62ded124ac/forbiddenapis-3.4.jar!/de/thetaphi/forbiddenapis/gradle/plugin-init.groovy' Unsupported class file major version 64
@uschindler
Copy link
Member

Can you post a full stack trace?

Are you running Forbiddenapis in Gradle that's iraself running in Java 20? That is indeed not yet supported, but should not break.

Do you have failOnUnsupportedJava=true?

Generally, official support will come with release of Java 20 and when ASM was updated.

@pjfanning
Copy link
Author

Thanks @uschindler - I'll close this. We run builds for multiple Java versions and we don't really need to have forbiddenapis run on all builds.

@uschindler
Copy link
Member

Anyways, do you know the full stacktrace?

I wonder why forbiddenapis fails on plugin initialization where it does not do any ASM related stuff (or should not do it).

@pjfanning
Copy link
Author

The issue originally happened in https://ci-builds.apache.org/job/POI/job/POI-DSL-1.20/1/console but now when I try to reproduce it on my laptop, it looks Gradle itself won't run with jdk 20-ea.

I'm happy to just ignore this issue and have forbiddenapis enforcement happen on other Java versions.

@centic9
Copy link
Contributor

centic9 commented Dec 22, 2022

For me it reproduces locally, full stacktrace is as follows

Make sure to call gradle as

./gradlew --stacktrace --debug --no-daemon forbiddenApisMain

the "--no-daemon" was important to get the proper stacktrace

2022-12-22T20:04:45.832+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Where:
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Build file '/opt/apache/poi/git-svn/build.gradle' line: 38
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] An exception occurred applying plugin request [id: 'de.thetaphi.forbiddenapis', version: '3.4']
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Failed to apply plugin 'de.thetaphi.forbiddenapis'.
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]    > Could not create plugin of type 'ForbiddenApisPlugin'.
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]       > BUG! exception in phase 'semantic analysis' in source unit 'jar:file:/home/dstadler/.gradle/caches/jars-9/44c0918c2065e44691dc9f62ded124ac/forbiddenapis-3.4.jar!/de/thetaphi/forbiddenapis/gradle/plugin-init.groovy' Unsupported class file major version 64
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
2022-12-22T20:04:45.833+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --scan to get full insights.
2022-12-22T20:04:45.834+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2022-12-22T20:04:45.834+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
2022-12-22T20:04:45.834+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'de.thetaphi.forbiddenapis', version: '3.4']
2022-12-22T20:04:45.834+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.exceptionOccurred(DefaultPluginRequestApplicator.java:223)
2022-12-22T20:04:45.834+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPlugin(DefaultPluginRequestApplicator.java:205)
2022-12-22T20:04:45.834+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyLegacyPlugin(DefaultPluginRequestApplicator.java:158)
2022-12-22T20:04:45.834+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.access$300(DefaultPluginRequestApplicator.java:61)
2022-12-22T20:04:45.834+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator$1$1.lambda$addLegacy$0(DefaultPluginRequestApplicator.java:114)
2022-12-22T20:04:45.834+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.lambda$applyPlugins$0(DefaultPluginRequestApplicator.java:143)
2022-12-22T20:04:45.834+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPlugins(DefaultPluginRequestApplicator.java:143)
2022-12-22T20:04:45.834+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:117)
2022-12-22T20:04:45.835+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:65)
2022-12-22T20:04:45.835+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
2022-12-22T20:04:45.835+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
2022-12-22T20:04:45.835+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2022-12-22T20:04:45.835+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.835+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2022-12-22T20:04:45.835+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.835+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
2022-12-22T20:04:45.835+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.BuildOperationScriptPlugin.lambda$apply$0(BuildOperationScriptPlugin.java:62)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:44)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:62)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$0(DefaultProjectStateRegistry.java:360)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:378)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:359)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:42)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:35)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.lambda$run$0(LifecycleProjectEvaluator.java:109)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$0(DefaultProjectStateRegistry.java:360)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:378)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:359)
2022-12-22T20:04:45.836+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:100)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:72)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:762)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:153)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.ProjectLifecycleController.lambda$ensureSelfConfigured$1(ProjectLifecycleController.java:63)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.lambda$doTransition$12(StateTransitionController.java:236)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:247)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:235)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.lambda$maybeTransitionIfNotCurrentlyTransitioning$9(StateTransitionController.java:196)
2022-12-22T20:04:45.837+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:34)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.maybeTransitionIfNotCurrentlyTransitioning(StateTransitionController.java:192)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.ProjectLifecycleController.ensureSelfConfigured(ProjectLifecycleController.java:63)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.ensureConfigured(DefaultProjectStateRegistry.java:334)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:33)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:47)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.execution.DefaultTaskSelector.getSelection(DefaultTaskSelector.java:61)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.execution.selection.DefaultBuildTaskSelector.resolveTaskName(DefaultBuildTaskSelector.java:97)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.execution.commandline.CommandLineTaskParser.parseTasks(CommandLineTaskParser.java:49)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.execution.TaskNameResolvingBuildTaskScheduler.scheduleRequestedTasks(TaskNameResolvingBuildTaskScheduler.java:50)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.execution.DefaultTasksBuildTaskScheduler.scheduleRequestedTasks(DefaultTasksBuildTaskScheduler.java:72)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.initialization.DefaultTaskExecutionPreparer.lambda$scheduleRequestedTasks$0(DefaultTaskExecutionPreparer.java:46)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.Factories$1.create(Factories.java:31)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.work.DefaultWorkerLeaseService.withReplacedLocks(DefaultWorkerLeaseService.java:345)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.DefaultProjectStateRegistry$DefaultBuildProjectRegistry.withMutableStateOfAllProjects(DefaultProjectStateRegistry.java:205)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.project.DefaultProjectStateRegistry$DefaultBuildProjectRegistry.withMutableStateOfAllProjects(DefaultProjectStateRegistry.java:198)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.initialization.DefaultTaskExecutionPreparer.scheduleRequestedTasks(DefaultTaskExecutionPreparer.java:45)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.initialization.VintageBuildModelController.lambda$scheduleRequestedTasks$0(VintageBuildModelController.java:76)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.lambda$inState$1(StateTransitionController.java:110)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.lambda$inState$2(StateTransitionController.java:125)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:44)
2022-12-22T20:04:45.838+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.inState(StateTransitionController.java:121)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.inState(StateTransitionController.java:109)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.initialization.VintageBuildModelController.scheduleRequestedTasks(VintageBuildModelController.java:76)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.build.DefaultBuildLifecycleController$DefaultWorkGraphBuilder.addRequestedTasks(DefaultBuildLifecycleController.java:255)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.DefaultBuildTreeWorkPreparer.lambda$scheduleRequestedTasks$0(DefaultBuildTreeWorkPreparer.java:38)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$populateWorkGraph$3(DefaultBuildLifecycleController.java:143)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.build.DefaultBuildWorkPreparer.populateWorkGraph(DefaultBuildWorkPreparer.java:42)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.build.BuildOperationFiringBuildWorkPreparer$PopulateWorkGraph.populateTaskGraph(BuildOperationFiringBuildWorkPreparer.java:120)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.build.BuildOperationFiringBuildWorkPreparer$PopulateWorkGraph.run(BuildOperationFiringBuildWorkPreparer.java:91)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.build.BuildOperationFiringBuildWorkPreparer.populateWorkGraph(BuildOperationFiringBuildWorkPreparer.java:68)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$populateWorkGraph$4(DefaultBuildLifecycleController.java:143)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.lambda$inState$1(StateTransitionController.java:110)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.lambda$inState$2(StateTransitionController.java:125)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:44)
2022-12-22T20:04:45.839+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.inState(StateTransitionController.java:121)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.inState(StateTransitionController.java:109)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.build.DefaultBuildLifecycleController.populateWorkGraph(DefaultBuildLifecycleController.java:143)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.build.DefaultBuildWorkGraphController$DefaultBuildWorkGraph.populateWorkGraph(DefaultBuildWorkGraphController.java:148)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.composite.internal.DefaultBuildController.populateWorkGraph(DefaultBuildController.java:73)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph$DefaultBuildTreeWorkGraphBuilder.withWorkGraph(DefaultIncludedBuildTaskGraph.java:150)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.DefaultBuildTreeWorkPreparer.lambda$scheduleRequestedTasks$1(DefaultBuildTreeWorkPreparer.java:38)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph$DefaultBuildTreeWorkGraph$1.run(DefaultIncludedBuildTaskGraph.java:197)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph$DefaultBuildTreeWorkGraph.scheduleWork(DefaultIncludedBuildTaskGraph.java:192)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.DefaultBuildTreeWorkPreparer.scheduleRequestedTasks(DefaultBuildTreeWorkPreparer.java:37)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$doScheduleAndRunTasks$3(DefaultBuildTreeLifecycleController.java:96)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph.withNewWorkGraph(DefaultIncludedBuildTaskGraph.java:109)
2022-12-22T20:04:45.840+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.doScheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:95)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$scheduleAndRunTasks$1(DefaultBuildTreeLifecycleController.java:76)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$runBuild$5(DefaultBuildTreeLifecycleController.java:113)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.lambda$transition$5(StateTransitionController.java:166)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.doTransition(StateTransitionController.java:247)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.lambda$transition$6(StateTransitionController.java:166)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.work.DefaultSynchronizer.withLock(DefaultSynchronizer.java:44)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.model.StateTransitionController.transition(StateTransitionController.java:166)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.runBuild(DefaultBuildTreeLifecycleController.java:110)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.scheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:76)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.scheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:71)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.ProblemReportingBuildActionRunner.run(ProblemReportingBuildActionRunner.java:49)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:65)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:136)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.lambda$execute$0(RootBuildLifecycleBuildActionExecutor.java:40)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:122)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.execute(RootBuildLifecycleBuildActionExecutor.java:40)
2022-12-22T20:04:45.841+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.DefaultBuildTreeContext.execute(DefaultBuildTreeContext.java:40)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.lambda$execute$0(BuildTreeLifecycleBuildActionExecutor.java:65)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:53)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.execute(BuildTreeLifecycleBuildActionExecutor.java:65)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:61)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:57)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor.execute(RunAsBuildOperationBuildActionExecutor.java:57)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.lambda$execute$0(RunAsWorkerThreadBuildActionExecutor.java:36)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:249)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:109)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.execute(RunAsWorkerThreadBuildActionExecutor.java:36)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.continuous.ContinuousBuildActionExecutor.execute(ContinuousBuildActionExecutor.java:110)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.SubscribableBuildActionExecutor.execute(SubscribableBuildActionExecutor.java:64)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.session.DefaultBuildSessionContext.execute(DefaultBuildSessionContext.java:46)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:100)
2022-12-22T20:04:45.842+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:88)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.session.BuildSessionState.run(BuildSessionState.java:69)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:62)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:41)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:63)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:52)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:40)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:47)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:31)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:65)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.util.internal.Swapper.swap(Swapper.java:38)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
2022-12-22T20:04:45.843+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:50)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:84)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'de.thetaphi.forbiddenapis'.
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:173)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:146)
2022-12-22T20:04:45.844+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.lambda$applyLegacyPlugin$2(DefaultPluginRequestApplicator.java:160)
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPlugin(DefaultPluginRequestApplicator.java:201)
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   ... 187 more
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: org.gradle.api.plugins.PluginInstantiationException: Could not create plugin of type 'ForbiddenApisPlugin'.
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.plugins.DefaultPluginManager.instantiatePlugin(DefaultPluginManager.java:83)
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.plugins.DefaultPluginManager.producePluginInstance(DefaultPluginManager.java:206)
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.plugins.DefaultPluginManager.addPlugin(DefaultPluginManager.java:182)
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.plugins.DefaultPluginManager.access$100(DefaultPluginManager.java:52)
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.plugins.DefaultPluginManager$AddPluginBuildOperation.run(DefaultPluginManager.java:282)
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2022-12-22T20:04:45.845+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.plugins.DefaultPluginManager.lambda$doApply$0(DefaultPluginManager.java:167)
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:44)
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:166)
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   ... 190 more
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: BUG! exception in phase 'semantic analysis' in source unit 'jar:file:/home/dstadler/.gradle/caches/jars-9/44c0918c2065e44691dc9f62ded124ac/forbiddenapis-3.4.jar!/de/thetaphi/forbiddenapis/gradle/plugin-init.groovy' Unsupported class file major version 64
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin$1.run(ForbiddenApisPlugin.java:102)
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin$1.run(ForbiddenApisPlugin.java:93)
2022-12-22T20:04:45.846+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin.loadScript(ForbiddenApisPlugin.java:93)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin.<clinit>(ForbiddenApisPlugin.java:82)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:300)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newConstructorAccessor(MethodHandleAccessorFactory.java:103)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/jdk.internal.reflect.ReflectionFactory.newConstructorAccessor(ReflectionFactory.java:200)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.instantiation.generator.AsmBackedClassGenerator$InvokeConstructorStrategy.newInstance(AsmBackedClassGenerator.java:1913)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.instantiation.generator.AbstractClassGenerator$GeneratedClassImpl$GeneratedConstructorImpl.newInstance(AbstractClassGenerator.java:506)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:64)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.newInstance(DependencyInjectingInstantiator.java:55)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.plugins.DefaultPluginManager.instantiatePlugin(DefaultPluginManager.java:81)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   ... 205 more
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 64
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
2022-12-22T20:04:45.847+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
2022-12-22T20:04:45.848+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)

@uschindler
Copy link
Member

uschindler commented Dec 22, 2022

Hi,
this problem and stacktrace has nothing to with forbiddenapis, although it is triggered by it. The problem is here:

  • Forbiddenapis uses Groovy to compile the plugin initialization. It does this using the Groovy version provided by Gradle, as it is part of their API
  • While compiling the script, Gradle's own groovy version cannot compile the script, as the class files inside the JDK cannot be linked with the code (for what every reason).
  • Forbiddenapis therefor bails out. The error message comes from Gradle's internal groovy.

In fact the problem is simple: Gradle in the version you use does not support the Java version you are running on. I can't fix this. forbiddenapis is just the plugin that fails first. Under other circumstances Gradle will report the same when it compiles "settings.gradle" or similar plain text files. When this happens depends on what code is used. If setting.gradle does not refer to JDK's classes, some later code like build.gradle may fail (when build.gradle refers or imports classes from JDK).

To correctly compile and test POI against Java 20, you have to start Gradle with (ideally 17) and just have the java compile and test runner use a toolkit-provided JDK.

@centic9
Copy link
Contributor

centic9 commented Dec 23, 2022

Thanks for the detailed explanation!

@ben-manes
Copy link

This fails because of the lack of signatures for jdk20, e.g.

Caused by: java.io.FileNotFoundException: Bundled signatures resource not found: jdk-internal-20

Ideally it should walk the bundle to what is supported, rather than require waiting for a release because the newer jdk version does not have a signature yet.

Alternatively, these checks could be an ErrorProne extension and not need to inspect the bytecode directly and decoupling it from the jdk release.

@uschindler
Copy link
Member

uschindler commented Mar 27, 2023

Hi,
Java 20 is supported out of the box. Actually to me it is strange that you see those errors. They should only happen, if you have Maven/Gradle configuration without valid target/release on the compiler plugin. Generally I would not expect anybody to compile code *today" against Java 20, so I don't see a reason to hurry at all.

What is not supported is only checking the compiled classes against the explicitely given signatures files of a not yet supported java version.

So instead of complaining here make sure:

  • setup your maven projects correctly and set target or release version on BOTH the compiler plugin and the the forbiddenapis plugin. In Maven this can be done using global project properties (see example).
  • setup your gradle projects correctly and set target or release in the Java Plugin configuration for each sourceSet or globally on the plugin.

Always execute the checks against the version your are compiling against. Everything else is not a correct setup. Sorry for complications with some build system inefficiencies. Unfortunatley Maven has no easy and documented way (the project property trick is just reliyung on the project property of the compiler plugin and it reads it) to set the release/target version for a project like Gradle does.

@uschindler
Copy link
Member

uschindler commented Mar 27, 2023

The original problem reported here was about Gradle not working on Java 20 at all. This was unrelated to the plugin, it was just the first one running into this. Actually the plugin bottstrap was already improved for this, so it will have precompiled Groovy code for the plugin (see #221).

Everything else is on the way. I will check later today if ASM 9 was updated for recent bytecode (version 21), so we get support for 20 (signatures) and 21 (bytecode).

@ben-manes: There are no plans to rewrite this plugin against errorprone. To me scanning bytecode has more options, because you will also find hidden forbiddenapis calls. Elasticearch for example scans external JAR files for invalid calls to Runtime.exec(). This plugin can also scan code produced by Groovy, Kotlin and Scala.

@uschindler
Copy link
Member

ASM 9.5 was relased. Will upgrade, then add new signatures and trigger a release.

@ben-manes
Copy link

No problem, it was just an idea if simpler for you to maintain. Everything always worked great for me, I run this task at a supported jdk and others at higher (like EA). Just moved up builds and was looking if jdk20 signatures were ready, but not in a rush. Thanks!

@uschindler
Copy link
Member

Adding the option to use "best possible" jdk-XXX signatures is some idea, but haven't implemented it. This would be helpful indeed.

@uschindler
Copy link
Member

Here is the PR for Java 20: #224

@uschindler uschindler added this to the 3.5 milestone Mar 27, 2023
@uschindler uschindler changed the title Add support for Java 20 Startup issues on Java 20 Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

4 participants