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

liberty-gradle-plugin 3.8 TestKit failure on com.ibm.websphere.ras.DataFormatHelper ClassNotFound #867

Closed
sreich opened this issue Dec 1, 2023 · 18 comments
Assignees

Comments

@sreich
Copy link

sreich commented Dec 1, 2023

This issue's an interesting one...and unfortunately, difficult for me to try and get a decent test case for you...

So I'm wondering, were there any changes that could have caused something like this with com.ibm.websphere.ras.DataFormatHelper between version 3.7 -> 3.8 of the liberty plugin??

I'm not seeing that class get used by my code anywhere. Interestingly, this failure case I've so far only been able to reproduce in our internal library, which utilizes TestKit...But unable to reproduce it outside of that, so far...

But, I can reproduce reliably in our tests and our CI, if I attempt to upgrade to liberty plugin from 3.7 -> 3.8, it fails in this way. Downgrading back to 3.7 resolves it...

(gradle run with -i so it's extra noisey)
This is with gradle 8.5, I tried with 8.4 just in case, same result.
openliberty-kernel = "23.0.0.11", I bumped this just to see if it would help, no change.


2023-12-01T12:03:53.268-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.lang.ClassNotFoundException: com.ibm.websphere.ras.DataFormatHelper

2023-12-01T12:03:53.188-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --scan to get full insights.
2023-12-01T12:03:53.188-0500 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 9: released lock on worker lease
2023-12-01T12:03:53.188-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Get more help at https://help.gradle.org.
2023-12-01T12:03:53.189-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
2023-12-01T12:03:53.190-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
2023-12-01T12:03:53.191-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':installFeature'.
2023-12-01T12:03:53.193-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:148)
2023-12-01T12:03:53.193-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
2023-12-01T12:03:53.194-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:146)
2023-12-01T12:03:53.196-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:134)
2023-12-01T12:03:53.197-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
2023-12-01T12:03:53.198-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
2023-12-01T12:03:53.195-0500 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 4: acquired lock on worker lease
2023-12-01T12:03:53.199-0500 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 4: released lock on worker lease
2023-12-01T12:03:53.199-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
2023-12-01T12:03:53.200-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
2023-12-01T12:03:53.201-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
2023-12-01T12:03:53.202-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
2023-12-01T12:03:53.200-0500 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 5: acquired lock on worker lease
2023-12-01T12:03:53.202-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
2023-12-01T12:03:53.203-0500 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 5: released lock on worker lease
2023-12-01T12:03:53.204-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
2023-12-01T12:03:53.205-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
2023-12-01T12:03:53.204-0500 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 10: acquired lock on worker lease
2023-12-01T12:03:53.206-0500 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 10: released lock on worker lease
2023-12-01T12:03:53.206-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
2023-12-01T12:03:53.209-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2023-12-01T12:03:53.209-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2023-12-01T12:03:53.209-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2023-12-01T12:03:53.210-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2023-12-01T12:03:53.210-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
2023-12-01T12:03:53.210-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
2023-12-01T12:03:53.211-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
2023-12-01T12:03:53.212-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
2023-12-01T12:03:53.212-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
2023-12-01T12:03:53.212-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
2023-12-01T12:03:53.213-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
2023-12-01T12:03:53.214-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80)
2023-12-01T12:03:53.208-0500 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 11: acquired lock on worker lease
2023-12-01T12:03:53.214-0500 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 11: released lock on worker lease
2023-12-01T12:03:53.214-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
2023-12-01T12:03:53.215-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
2023-12-01T12:03:53.216-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
2023-12-01T12:03:53.217-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
2023-12-01T12:03:53.217-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
2023-12-01T12:03:53.218-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
2023-12-01T12:03:53.218-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.lang.NoClassDefFoundError: com/ibm/websphere/ras/DataFormatHelper
2023-12-01T12:03:53.218-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallLogUtils$InstallKernelConsoleHandler.logToOutStream(InstallLogUtils.java:59)
2023-12-01T12:03:53.219-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallLogUtils$InstallKernelConsoleHandler.publish(InstallLogUtils.java:54)
2023-12-01T12:03:53.219-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.VerifySignatureUtility.downloadPublicKeys(VerifySignatureUtility.java:148)
2023-12-01T12:03:53.220-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallKernelMap.downloadPublicKeys(InstallKernelMap.java:2293)
2023-12-01T12:03:53.220-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallKernelMap.get(InstallKernelMap.java:327)
2023-12-01T12:03:53.221-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.map.InstallMap.get(InstallMap.java:275)
2023-12-01T12:03:53.221-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at io.openliberty.tools.common.plugins.util.InstallFeatureUtil.downloadPublicKeys(InstallFeatureUtil.java:1258)
2023-12-01T12:03:53.222-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at io.openliberty.tools.common.plugins.util.InstallFeatureUtil.verifyFeatures(InstallFeatureUtil.java:1232)
2023-12-01T12:03:53.222-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at io.openliberty.tools.common.plugins.util.InstallFeatureUtil.installFeatures(InstallFeatureUtil.java:740)
2023-12-01T12:03:53.224-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at io.openliberty.tools.common.plugins.util.InstallFeatureUtil$installFeatures$3.call(Unknown Source)
2023-12-01T12:03:53.224-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at io.openliberty.tools.gradle.tasks.InstallFeatureTask.installFeature(InstallFeatureTask.groovy:82)
2023-12-01T12:03:53.224-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-12-01T12:03:53.225-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2023-12-01T12:03:53.226-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-12-01T12:03:53.226-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
2023-12-01T12:03:53.226-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
2023-12-01T12:03:53.227-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
2023-12-01T12:03:53.227-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
2023-12-01T12:03:53.227-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:248)
2023-12-01T12:03:53.228-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
2023-12-01T12:03:53.228-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
2023-12-01T12:03:53.228-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2023-12-01T12:03:53.228-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2023-12-01T12:03:53.229-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2023-12-01T12:03:53.229-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2023-12-01T12:03:53.229-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
2023-12-01T12:03:53.229-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
2023-12-01T12:03:53.230-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:233)
2023-12-01T12:03:53.230-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:216)
2023-12-01T12:03:53.230-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:199)
2023-12-01T12:03:53.230-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:166)
2023-12-01T12:03:53.230-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
2023-12-01T12:03:53.231-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
2023-12-01T12:03:53.231-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
2023-12-01T12:03:53.231-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
2023-12-01T12:03:53.231-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
2023-12-01T12:03:53.232-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
2023-12-01T12:03:53.232-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2023-12-01T12:03:53.232-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2023-12-01T12:03:53.232-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2023-12-01T12:03:53.232-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2023-12-01T12:03:53.233-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
2023-12-01T12:03:53.233-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
2023-12-01T12:03:53.234-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56)
2023-12-01T12:03:53.234-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
2023-12-01T12:03:53.234-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
2023-12-01T12:03:53.235-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
2023-12-01T12:03:53.235-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
2023-12-01T12:03:53.235-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
2023-12-01T12:03:53.236-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
2023-12-01T12:03:53.236-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:50)
2023-12-01T12:03:53.236-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:28)
2023-12-01T12:03:53.237-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.executeDelegateBroadcastingChanges(CaptureStateAfterExecutionStep.java:100)
2023-12-01T12:03:53.237-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:72)
2023-12-01T12:03:53.238-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:50)
2023-12-01T12:03:53.239-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
2023-12-01T12:03:53.240-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
2023-12-01T12:03:53.241-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:179)
2023-12-01T12:03:53.242-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:70)
2023-12-01T12:03:53.243-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.Either$Right.fold(Either.java:175)
2023-12-01T12:03:53.244-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:59)
2023-12-01T12:03:53.244-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:68)
2023-12-01T12:03:53.244-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:46)
2023-12-01T12:03:53.244-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:36)
2023-12-01T12:03:53.244-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:25)
2023-12-01T12:03:53.245-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36)
2023-12-01T12:03:53.245-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22)
2023-12-01T12:03:53.245-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:91)
2023-12-01T12:03:53.245-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:55)
2023-12-01T12:03:53.246-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
2023-12-01T12:03:53.246-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:37)
2023-12-01T12:03:53.246-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)
2023-12-01T12:03:53.246-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)
2023-12-01T12:03:53.247-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
2023-12-01T12:03:53.247-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
2023-12-01T12:03:53.247-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:76)
2023-12-01T12:03:53.247-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:37)
2023-12-01T12:03:53.247-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:108)
2023-12-01T12:03:53.248-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:55)
2023-12-01T12:03:53.248-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:71)
2023-12-01T12:03:53.248-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:45)
2023-12-01T12:03:53.248-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNonEmptySources(SkipEmptyWorkStep.java:177)
2023-12-01T12:03:53.249-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:81)
2023-12-01T12:03:53.249-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:53)
2023-12-01T12:03:53.249-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:32)
2023-12-01T12:03:53.249-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:21)
2023-12-01T12:03:53.250-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
2023-12-01T12:03:53.250-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
2023-12-01T12:03:53.250-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
2023-12-01T12:03:53.250-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:75)
2023-12-01T12:03:53.251-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:41)
2023-12-01T12:03:53.251-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:66)
2023-12-01T12:03:53.251-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:66)
2023-12-01T12:03:53.251-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:38)
2023-12-01T12:03:53.252-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:32)
2023-12-01T12:03:53.252-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:293)
2023-12-01T12:03:53.252-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
2023-12-01T12:03:53.253-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:21)
2023-12-01T12:03:53.253-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
2023-12-01T12:03:53.254-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
2023-12-01T12:03:53.254-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:47)
2023-12-01T12:03:53.255-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:34)
2023-12-01T12:03:53.256-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:64)
2023-12-01T12:03:53.257-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)
2023-12-01T12:03:53.257-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:134)
2023-12-01T12:03:53.257-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
2023-12-01T12:03:53.258-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
2023-12-01T12:03:53.259-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
2023-12-01T12:03:53.259-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
2023-12-01T12:03:53.259-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
2023-12-01T12:03:53.260-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
2023-12-01T12:03:53.260-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
2023-12-01T12:03:53.261-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
2023-12-01T12:03:53.261-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
2023-12-01T12:03:53.261-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
2023-12-01T12:03:53.262-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2023-12-01T12:03:53.262-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2023-12-01T12:03:53.263-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2023-12-01T12:03:53.263-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2023-12-01T12:03:53.263-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
2023-12-01T12:03:53.264-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
2023-12-01T12:03:53.264-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
2023-12-01T12:03:53.264-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
2023-12-01T12:03:53.264-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
2023-12-01T12:03:53.265-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
2023-12-01T12:03:53.265-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
2023-12-01T12:03:53.265-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80)
2023-12-01T12:03:53.265-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
2023-12-01T12:03:53.266-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
2023-12-01T12:03:53.266-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
2023-12-01T12:03:53.266-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
2023-12-01T12:03:53.267-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
2023-12-01T12:03:53.268-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
2023-12-01T12:03:53.268-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.lang.ClassNotFoundException: com.ibm.websphere.ras.DataFormatHelper
2023-12-01T12:03:53.269-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	... 133 more
2023-12-01T12:03:53.269-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
2023-12-01T12:03:53.269-0500 [WARN] [org.gradle.internal.featurelifecycle.LoggingDeprecatedFeatureHandler] 
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

@cherylking
Copy link
Member

@sreich Very interesting indeed. What version of Java are you using?

@cherylking
Copy link
Member

So the new thing in 3.8 vs 3.7 is the automatic verification of signatures for features. I see in this part of the stack trace it is trying to verify a feature signature:

Caused by: java.lang.NoClassDefFoundError: com/ibm/websphere/ras/DataFormatHelper
2023-12-01T12:03:53.218-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallLogUtils$InstallKernelConsoleHandler.logToOutStream(InstallLogUtils.java:59)
2023-12-01T12:03:53.219-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallLogUtils$InstallKernelConsoleHandler.publish(InstallLogUtils.java:54)
2023-12-01T12:03:53.219-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.VerifySignatureUtility.downloadPublicKeys(VerifySignatureUtility.java:148)
2023-12-01T12:03:53.220-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallKernelMap.downloadPublicKeys(InstallKernelMap.java:2293)
2023-12-01T12:03:53.220-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallKernelMap.get(InstallKernelMap.java:327)
2023-12-01T12:03:53.221-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.map.InstallMap.get(InstallMap.java:275)
2023-12-01T12:03:53.221-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at io.openliberty.tools.common.plugins.util.InstallFeatureUtil.downloadPublicKeys(InstallFeatureUtil.java:1258)
2023-12-01T12:03:53.222-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at io.openliberty.tools.common.plugins.util.InstallFeatureUtil.verifyFeatures(InstallFeatureUtil.java:1232)

@jjiwooLim Sarah, any ideas on this one?

@cherylking
Copy link
Member

@sreich As a workaround, you may be able to set verify to skip like the following config so that feature signatures are not verified.

liberty {
    server {
        features {
            acceptLicense = true
            verify = 'skip'
        }
    }
}

@jjiwooLim
Copy link
Contributor

@sreich Could you try cleaning the Gradle cache or restart the Gradle daemon?

@sreich
Copy link
Author

sreich commented Dec 1, 2023

@jjiwooLim yep, already did before posting, did it a few more times since then too, problem is reproducible on my machine and our CI agents as well

@cherylking Gradle's executing under JDK 11, it seems like logs indicate that was what it built with too (just to double-confirm)

I added the verify skip which after that, I can see the logs indicate that liberty is choosing to skip verification, but it still has the same ClassNotFound. Do we know what is the expected origin of that class it can't find?

I've attached the full --info dump here, it's a bit large

liberty gradle classnotfound.log

@cherylking
Copy link
Member

cherylking commented Dec 1, 2023

I added the verify skip which after that, I can see the logs indicate that liberty is choosing to skip verification, but it still has the same ClassNotFound.

Well darn...was hoping that would bypass this problem. Having looked at the latest log, this is the current stacktrace:

Caused by: java.lang.NoClassDefFoundError: com/ibm/websphere/ras/DataFormatHelper
2023-12-01T16:27:43.466-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallLogUtils$InstallKernelConsoleHandler.logToOutStream(InstallLogUtils.java:59)
2023-12-01T16:27:43.466-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallLogUtils$InstallKernelConsoleHandler.publish(InstallLogUtils.java:54)
2023-12-01T16:27:43.466-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.AbstractDirector.log(AbstractDirector.java:100)
2023-12-01T16:27:43.466-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallKernelImpl.installLocalFeatureNoResolve(InstallKernelImpl.java:178)
2023-12-01T16:27:43.467-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallKernelMap.localESAInstall(InstallKernelMap.java:1458)
2023-12-01T16:27:43.467-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.internal.InstallKernelMap.get(InstallKernelMap.java:268)
2023-12-01T16:27:43.467-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at com.ibm.ws.install.map.InstallMap.get(InstallMap.java:275)
2023-12-01T16:27:43.467-0500 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 	at io.openliberty.tools.common.plugins.util.InstallFeatureUtil.installFeatures(InstallFeatureUtil.java:764)

@jjiwooLim ^^

@cherylking
Copy link
Member

@sreich The class that is not found is located in the com.ibm.ws.logging.*.jar in Open Liberty runtime. Speaking to Sarah, she said she has seen this occasionally and that clearing the Gradle cache fixed it. I see that is not the case for you, but I am wondering if there is another cache somewhere else since you are using the TestKit? I saw this path in the log:

2023-12-01T16:27:43.414-0500 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Found artifact 'io.openliberty.servlet.internal-3.1-23.0.0.11.esa (io.openliberty.features:io.openliberty.servlet.internal-3.1:23.0.0.11)' in resolver cache: C:\Liferay\Git Services\ampi-service-cookbook\convention-plugins\build\tmp\testkit\caches\modules-2\files-2.1\io.openliberty.features\io.openliberty.servlet.internal-3.1\23.0.0.11\8545b4205e371658495ab8235abfe6414029fa4e\io.openliberty.servlet.internal-3.1-23.0.0.11.esa

Also, does this nexusExcellus Maven repo need cleaning/refreshing maybe?

2023-12-01T16:27:43.410-0500 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver] No meta-data file or artifact found for module 'io.openliberty.features:io.openliberty.servlet.internal-3.1:23.0.0.11' in repository 'MavenLocal'.
2023-12-01T16:27:43.410-0500 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.modulecache.PersistentModuleMetadataCache] Recording absence of module descriptor in cache: io.openliberty.features:io.openliberty.servlet.internal-3.1:23.0.0.11 [changing = false]
2023-12-01T16:27:43.410-0500 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Using cached module metadata for module 'io.openliberty.features:io.openliberty.servlet.internal-3.1:23.0.0.11' in 'nexusExcellus'
2023-12-01T16:27:43.410-0500 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainComponentMetaDataResolver] Using io.openliberty.features:io.openliberty.servlet.internal-3.1:23.0.0.11 from Maven repository 'nexusExcellus'

@cherylking
Copy link
Member

@sreich Please try the 3.8.1-SNAPSHOT to see if it resolves this problem. I changed the logging back to what it was in the previous 3.7 version. So hopefully it fixes it. Still not sure why it doesn't work in your scenario (since we do not know how to easily recreate the problem).

@timdvail
Copy link

I work with Shaun. I've attached a project that reproduces the issue. We have worked around it on our end by simply splitting a test that ran on the same project 3 times (with slightly different configurations) to each have its own test case. But basically, you have to have debug running in the testkit run, do libertyCreate on the same project twice, then switch to another project and run it -- all in the same JVM run.

Kind of a corner case, I guess.
liberty-gradle-issue.zip

@cherylking
Copy link
Member

@timdvail Thanks for the details and the project to recreate. Were you able to try the snapshot to see if it fixed the issue?

@timdvail
Copy link

I tried the snapshot, same test failure when I bumped the version in the libs.versions.toml file under gradle folder and pointed to sonar snapshot repo as per README.

@cherylking
Copy link
Member

I tried the snapshot, same test failure when I bumped the version in the libs.versions.toml file under gradle folder and pointed to sonar snapshot repo as per README.

@timdvail @sreich Ok, thanks for trying. I am glad you have a workaround. Is it okay if this waits until January for further debugging? We are trying to wrap up quite a bit before holiday vacations start kicking in.

@timdvail
Copy link

It is fine to wait until after holiday. Thanks!

@cherylking
Copy link
Member

@timdvail I am picking this back up today and am wondering if you have specific instructions to recreate? I downloaded the zip file and extracted it, but did not see a readme or instructions. Also, did either you or Shaun look into the other caches I had mentioned in this comment? TIA

@cherylking cherylking self-assigned this Jan 9, 2024
@timdvail
Copy link

All you have to do is run gradle clean build in that project. I just tried it on my personal laptop (which is Linux), I did find that the gradlew script incorrectly had Windows carriage returns in it which caused issues for running it. But once I stripped out those carriage returns, running:
./gradlew clean build

The build will fail in the test step -- test is 'should run successfully every time'. The failed test exhibits the exact issue that is brought up in this issue. You can always try a different version by bumping the version in libs.versions.toml in the gradle folder.

@cherylking
Copy link
Member

The actual fix is in Open Liberty. See this PR. Adding a work around to ci.common for now. Will leave this issue open to remove work around when fix is available in OL.

@cherylking
Copy link
Member

I've updated the 3.8.1-SNAPSHOT with the temporary fix for this issue.

@timdvail
Copy link

Sorry for taking a long time to get back. Anyways, this can be closed. We have tried out the latest (3.8.2) release and this issue doesn't occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

4 participants