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

NoClassDefFoundError in BuildPluginTests #49404

Closed
DaveCTurner opened this issue Nov 20, 2019 · 3 comments · Fixed by #49459
Closed

NoClassDefFoundError in BuildPluginTests #49404

DaveCTurner opened this issue Nov 20, 2019 · 3 comments · Fixed by #49459
Assignees
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team >test-failure Triaged test failures from CI

Comments

@DaveCTurner
Copy link
Contributor

This build failed thusly:

:build-tools:test FAILED
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

org.elasticsearch.gradle.BuildPluginTests > testRepositoryThatUsesFileScheme FAILED
    java.lang.NoClassDefFoundError at BuildPluginTests.java:39

org.elasticsearch.gradle.BuildPluginTests > testRepositoryURIThatUsesHttpScheme FAILED
    java.lang.NoClassDefFoundError at BuildPluginTests.java:34

org.elasticsearch.gradle.BuildPluginTests > testRepositoryURIThatUsesS3Scheme FAILED
    java.lang.NoClassDefFoundError at BuildPluginTests.java:49

org.elasticsearch.gradle.BuildPluginTests > testRepositoryURIThatUsesHttpsScheme FAILED
    java.lang.NoClassDefFoundError at BuildPluginTests.java:44
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access using Lookup on org.gradle.internal.classloader.ClassLoaderUtils$AbstractClassLoaderLookuper (file:/var/lib/jenkins/.gradle/caches/5.6.4/generated-gradle-jars/gradle-api-5.6.4.jar) to class java.lang.ClassLoader
WARNING: Please consider reporting this to the maintainers of org.gradle.internal.classloader.ClassLoaderUtils$AbstractClassLoaderLookuper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

org.elasticsearch.gradle.ConcatFilesTaskTests > testConcatenationWithUnique FAILED
    org.gradle.api.reflect.ObjectInstantiationException at ConcatFilesTaskTests.java:84
        Caused by: java.lang.NoClassDefFoundError at ConcatFilesTaskTests.java:84

org.elasticsearch.gradle.ConcatFilesTaskTests > testHeaderAdded FAILED
    org.gradle.api.reflect.ObjectInstantiationException at ConcatFilesTaskTests.java:84
        Caused by: java.lang.NoClassDefFoundError at ConcatFilesTaskTests.java:84

org.elasticsearch.gradle.DistributionDownloadPluginTests > testFlavorForIntegTest FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testLocalBwcArchives FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testLocalCurrentVersionArchives FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testBadVersionFormat FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testTypeDefault FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testLocalCurrentVersionIntegTestZip FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testBundledJdkDefault FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testLocalBwcPackages FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testBundledJdkForIntegTest FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testPlatformForIntegTest FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testPlatformDefault FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testFlavorDefault FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testLocalCurrentVersionPackages FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.DistributionDownloadPluginTests > testVersionDefault FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DistributionDownloadPluginTests.java:237
        Caused by: java.lang.NoClassDefFoundError at DistributionDownloadPluginTests.java:237

org.elasticsearch.gradle.EmptyDirTaskTests > testCreateEmptyDirNoPermissions FAILED
    org.gradle.api.reflect.ObjectInstantiationException at EmptyDirTaskTests.java:56
        Caused by: java.lang.NoClassDefFoundError at EmptyDirTaskTests.java:56

org.elasticsearch.gradle.EmptyDirTaskTests > testCreateEmptyDir FAILED
    org.gradle.api.reflect.ObjectInstantiationException at EmptyDirTaskTests.java:33
        Caused by: java.lang.NoClassDefFoundError at EmptyDirTaskTests.java:33

org.elasticsearch.gradle.JdkDownloadPluginTests > classMethod FAILED
    org.gradle.api.reflect.ObjectInstantiationException at JdkDownloadPluginTests.java:35
        Caused by: java.lang.NoClassDefFoundError at JdkDownloadPluginTests.java:35

org.elasticsearch.gradle.doc.RestTestFromSnippetsTaskTests > testInvalidBlockQuote FAILED
    java.lang.AssertionError

org.elasticsearch.gradle.doc.RestTestFromSnippetsTaskTests > testSimpleBlockQuote FAILED
    java.lang.NoClassDefFoundError at RestTestFromSnippetsTaskTests.java:22

org.elasticsearch.gradle.doc.RestTestFromSnippetsTaskTests > testMultipleBlockQuotes FAILED
    java.lang.NoClassDefFoundError at RestTestFromSnippetsTaskTests.java:27

org.elasticsearch.gradle.doc.RestTestFromSnippetsTaskTests > testEscapingInBlockQuote FAILED
    java.lang.NoClassDefFoundError at RestTestFromSnippetsTaskTests.java:31

org.elasticsearch.gradle.doc.RestTestFromSnippetsTaskTests > testIsDocWriteRequest FAILED
    java.lang.NoClassDefFoundError at RestTestFromSnippetsTaskTests.java:36

org.elasticsearch.gradle.doc.SnippetsTaskTests > testMatchSource FAILED
    java.lang.NoClassDefFoundError at SnippetsTaskTests.java:8

org.elasticsearch.gradle.plugin.PluginBuildPluginTests > testApply FAILED
    org.gradle.api.reflect.ObjectInstantiationException at PluginBuildPluginTests.java:23
        Caused by: java.lang.NoClassDefFoundError at PluginBuildPluginTests.java:23

org.elasticsearch.gradle.plugin.PluginPropertiesExtensionTests > testCreatingPluginPropertiesExtensionWithNameAndVersion FAILED
    org.gradle.api.reflect.ObjectInstantiationException at PluginPropertiesExtensionTests.java:51
        Caused by: java.lang.NoClassDefFoundError at PluginPropertiesExtensionTests.java:51

org.elasticsearch.gradle.plugin.PluginPropertiesExtensionTests > testCreatingPluginPropertiesExtensionWithNameWithoutVersion FAILED
    org.gradle.api.reflect.ObjectInstantiationException at PluginPropertiesExtensionTests.java:51
        Caused by: java.lang.NoClassDefFoundError at PluginPropertiesExtensionTests.java:51

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithALicenseButWithoutTheDependencyThenShouldThrowException FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithAShaButWithoutTheDependencyThenShouldThrowException FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithoutLicensesDirWhenAskingForShaFilesThenShouldThrowException FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithADependencyMappingThenShouldReturnSilently FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithoutLicensesDirButWithDependenciesThenShouldThrowException FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithLicensesDirButNoDependenciesThenShouldThrowException FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithoutLicensesDirNorDependenciesThenShouldReturnSilently FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithDependencyButNoShaFileThenShouldReturnException FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithDependencyButNoNoticeFileThenShouldReturnException FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithDependencyAndEverythingInOrderThenShouldReturnSilently FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithANoticeButWithoutTheDependencyThenShouldThrowException FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithADependencyWithWrongShaThenShouldThrowException FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithDependencyButNoLicenseFileThenShouldReturnException FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.DependencyLicensesTaskTests > givenProjectWithAIgnoreShaConfigurationAndNoShaFileThenShouldReturnSilently FAILED
    org.gradle.api.reflect.ObjectInstantiationException at DependencyLicensesTaskTests.java:219
        Caused by: java.lang.NoClassDefFoundError at DependencyLicensesTaskTests.java:219

org.elasticsearch.gradle.precommit.FilePermissionsTaskTests > testCheckPermissionsWhenAnExecutableFileExists FAILED
    org.gradle.api.reflect.ObjectInstantiationException at FilePermissionsTaskTests.java:94
        Caused by: java.lang.NoClassDefFoundError at FilePermissionsTaskTests.java:94

org.elasticsearch.gradle.precommit.FilePermissionsTaskTests > testCheckPermissionsWhenNoExecutableFileExists FAILED
    org.gradle.api.reflect.ObjectInstantiationException at FilePermissionsTaskTests.java:94
        Caused by: java.lang.NoClassDefFoundError at FilePermissionsTaskTests.java:94

org.elasticsearch.gradle.precommit.FilePermissionsTaskTests > testCheckPermissionsWhenNoFileExists FAILED
    org.gradle.api.reflect.ObjectInstantiationException at FilePermissionsTaskTests.java:94
        Caused by: java.lang.NoClassDefFoundError at FilePermissionsTaskTests.java:94

org.elasticsearch.gradle.precommit.ForbiddenPatternsTaskTests > testCheckInvalidPatternsWithCustomRule FAILED
    org.gradle.api.reflect.ObjectInstantiationException at ForbiddenPatternsTaskTests.java:66
        Caused by: java.lang.NoClassDefFoundError at ForbiddenPatternsTaskTests.java:66

org.elasticsearch.gradle.precommit.ForbiddenPatternsTaskTests > testCheckInvalidPatternsWhenNoSourceFilesExist FAILED
    org.gradle.api.reflect.ObjectInstantiationException at ForbiddenPatternsTaskTests.java:66
        Caused by: java.lang.NoClassDefFoundError at ForbiddenPatternsTaskTests.java:66

org.elasticsearch.gradle.precommit.ForbiddenPatternsTaskTests > testCheckInvalidPatternsWhenSourceFilesExistHavingTab FAILED
    org.gradle.api.reflect.ObjectInstantiationException at ForbiddenPatternsTaskTests.java:66
        Caused by: java.lang.NoClassDefFoundError at ForbiddenPatternsTaskTests.java:66

org.elasticsearch.gradle.precommit.ForbiddenPatternsTaskTests > testCheckInvalidPatternsWhenSourceFilesExistNoViolation FAILED
    org.gradle.api.reflect.ObjectInstantiationException at ForbiddenPatternsTaskTests.java:66
        Caused by: java.lang.NoClassDefFoundError at ForbiddenPatternsTaskTests.java:66

org.elasticsearch.gradle.precommit.ForbiddenPatternsTaskTests > testCheckInvalidPatternsWhenExcludingFiles FAILED
    org.gradle.api.reflect.ObjectInstantiationException at ForbiddenPatternsTaskTests.java:66
        Caused by: java.lang.NoClassDefFoundError at ForbiddenPatternsTaskTests.java:66

org.elasticsearch.gradle.precommit.UpdateShasTaskTests > whenDependencyDoesntExistThenShouldDeleteDependencySha FAILED
    org.gradle.api.reflect.ObjectInstantiationException at UpdateShasTaskTests.java:96
        Caused by: java.lang.NoClassDefFoundError at UpdateShasTaskTests.java:96

org.elasticsearch.gradle.precommit.UpdateShasTaskTests > whenDependencyAndWrongShaExistsThenShouldNotOverwriteShaFile FAILED
    org.gradle.api.reflect.ObjectInstantiationException at UpdateShasTaskTests.java:96
        Caused by: java.lang.NoClassDefFoundError at UpdateShasTaskTests.java:96

org.elasticsearch.gradle.precommit.UpdateShasTaskTests > whenLicensesDirDoesntExistThenShouldThrowException FAILED
    org.gradle.api.reflect.ObjectInstantiationException at UpdateShasTaskTests.java:96
        Caused by: java.lang.NoClassDefFoundError at UpdateShasTaskTests.java:96

org.elasticsearch.gradle.precommit.UpdateShasTaskTests > whenDependencyExistsButShaNotThenShouldCreateNewShaFile FAILED
    org.gradle.api.reflect.ObjectInstantiationException at UpdateShasTaskTests.java:96
        Caused by: java.lang.NoClassDefFoundError at UpdateShasTaskTests.java:96
@DaveCTurner DaveCTurner added :Delivery/Build Build or test infrastructure >test-failure Triaged test failures from CI labels Nov 20, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

@DaveCTurner
Copy link
Contributor Author

Possibly relates this build failure too:

``` org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [class 'de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin'] at __randomizedtesting.SeedInfo.seed([F0BD75FFF6AB0160:DC02CCA05C7D3229]:0) at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:167) at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:141) at org.gradle.api.plugins.PluginManager$apply.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127) at org.elasticsearch.gradle.precommit.PrecommitTasks.configureForbiddenApisCli(PrecommitTasks.groovy:141) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104) at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:151) at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:102) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:196) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:208) at org.elasticsearch.gradle.precommit.PrecommitTasks.create(PrecommitTasks.groovy:60) at org.elasticsearch.gradle.BuildPlugin.configurePrecommit(BuildPlugin.groovy:759) at org.elasticsearch.gradle.BuildPlugin.apply(BuildPlugin.groovy:139) at org.elasticsearch.gradle.BuildPlugin.apply(BuildPlugin.groovy) at org.gradle.api.internal.plugins.ImperativeOnlyPluginTarget.applyImperative(ImperativeOnlyPluginTarget.java:43) at org.gradle.api.internal.plugins.RuleBasedPluginTarget.applyImperative(RuleBasedPluginTarget.java:51) at org.gradle.api.internal.plugins.DefaultPluginManager.addPlugin(DefaultPluginManager.java:181) at org.gradle.api.internal.plugins.DefaultPluginManager.access$300(DefaultPluginManager.java:51) at org.gradle.api.internal.plugins.DefaultPluginManager$AddPluginBuildOperation.run(DefaultPluginManager.java:276) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.plugins.DefaultPluginManager$2.execute(DefaultPluginManager.java:159) at org.gradle.api.internal.plugins.DefaultPluginManager$2.execute(DefaultPluginManager.java:156) at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:49) at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:156) at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:141) at org.gradle.api.plugins.PluginManager$apply.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127) at org.elasticsearch.gradle.plugin.PluginBuildPlugin.apply(PluginBuildPlugin.groovy:52) at org.elasticsearch.gradle.plugin.PluginBuildPlugin.apply(PluginBuildPlugin.groovy) at org.gradle.api.internal.plugins.ImperativeOnlyPluginTarget.applyImperative(ImperativeOnlyPluginTarget.java:43) at org.gradle.api.internal.plugins.RuleBasedPluginTarget.applyImperative(RuleBasedPluginTarget.java:51) at org.gradle.api.internal.plugins.DefaultPluginManager.addPlugin(DefaultPluginManager.java:181) at org.gradle.api.internal.plugins.DefaultPluginManager.access$300(DefaultPluginManager.java:51) at org.gradle.api.internal.plugins.DefaultPluginManager$AddPluginBuildOperation.run(DefaultPluginManager.java:276) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.plugins.DefaultPluginManager$2.execute(DefaultPluginManager.java:159) at org.gradle.api.internal.plugins.DefaultPluginManager$2.execute(DefaultPluginManager.java:156) at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:49) at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:156) at org.gradle.api.internal.plugins.DefaultPluginManager.addImperativePlugin(DefaultPluginManager.java:88) at org.gradle.api.internal.plugins.DefaultPluginManager.addImperativePlugin(DefaultPluginManager.java:95) at org.gradle.api.internal.plugins.DefaultPluginContainer.apply(DefaultPluginContainer.java:94) at org.elasticsearch.gradle.plugin.PluginBuildPluginTests.testApply(PluginBuildPluginTests.java:31) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750) at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:938) at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:974) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817) at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947) at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832) at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883) at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368) at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817) at com.carrotsearch.randomizedtesting.ThreadLeakControl$2.evaluate(ThreadLeakControl.java:404) at com.carrotsearch.randomizedtesting.RandomizedRunner.runSuite(RandomizedRunner.java:708) at com.carrotsearch.randomizedtesting.RandomizedRunner.access$200(RandomizedRunner.java:138) at com.carrotsearch.randomizedtesting.RandomizedRunner$2.run(RandomizedRunner.java:629) Caused by: org.gradle.api.plugins.PluginInstantiationException: Could not create plugin of type 'ForbiddenApisPlugin'. at org.gradle.api.internal.plugins.DefaultPluginManager.instantiatePlugin(DefaultPluginManager.java:82) at org.gradle.api.internal.plugins.DefaultPluginManager.producePluginInstance(DefaultPluginManager.java:200) at org.gradle.api.internal.plugins.DefaultPluginManager.addPlugin(DefaultPluginManager.java:176) at org.gradle.api.internal.plugins.DefaultPluginManager.access$300(DefaultPluginManager.java:51) at org.gradle.api.internal.plugins.DefaultPluginManager$AddPluginBuildOperation.run(DefaultPluginManager.java:276) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.plugins.DefaultPluginManager$2.execute(DefaultPluginManager.java:159) at org.gradle.api.internal.plugins.DefaultPluginManager$2.execute(DefaultPluginManager.java:156) at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:49) at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:156) ... 85 more Caused by: BUG! exception in phase 'semantic analysis' in source unit 'jar:file:/var/lib/jenkins/.gradle/caches/modules-2/files-2.1/de.thetaphi/forbiddenapis/2.7/6e1f6659dc650629af1ad108156be391b1aaf035/forbiddenapis-2.7.jar!/de/thetaphi/forbiddenapis/gradle/plugin-init.groovy' Unsupported class file major version 57 at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:980) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:651) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:600) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:390) at groovy.lang.GroovyClassLoader.access$300(GroovyClassLoader.java:89) at groovy.lang.GroovyClassLoader$5.provide(GroovyClassLoader.java:330) at groovy.lang.GroovyClassLoader$5.provide(GroovyClassLoader.java:327) at org.codehaus.groovy.runtime.memoize.ConcurrentCommonCache.getAndPut(ConcurrentCommonCache.java:147) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:325) at de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin$1.run(ForbiddenApisPlugin.java:75) at de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin$1.run(ForbiddenApisPlugin.java:69) at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) at de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin.(ForbiddenApisPlugin.java:69) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481) at org.gradle.internal.instantiation.AsmBackedClassGenerator.newInstance(AsmBackedClassGenerator.java:179) at org.gradle.internal.instantiation.AbstractClassGenerator$GeneratedClassImpl$GeneratedConstructorImpl.newInstance(AbstractClassGenerator.java:395) at org.gradle.internal.instantiation.DependencyInjectingInstantiator.newInstance(DependencyInjectingInstantiator.java:49) at org.gradle.api.internal.plugins.DefaultPluginManager.instantiatePlugin(DefaultPluginManager.java:80) ... 100 more Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 57 at groovyjarjarasm.asm.ClassReader.(ClassReader.java:184) at groovyjarjarasm.asm.ClassReader.(ClassReader.java:166) at groovyjarjarasm.asm.ClassReader.(ClassReader.java:152) at groovyjarjarasm.asm.ClassReader.(ClassReader.java:273) at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:81) at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:254) at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:192) at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:172) at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:128) at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisitor.java:784) at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:395) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1352) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:227) at org.codehaus.groovy.control.CompilationUnit$13.call(CompilationUnit.java:709) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:976) ... 121 more ```

@markharwood
Copy link
Contributor

Another today

@jaymode jaymode self-assigned this Nov 21, 2019
jaymode added a commit to jaymode/elasticsearch that referenced this issue Nov 21, 2019
The test task is configured to use the runtime java version, but there
are issues with the version of groovy used by gradle pre 6.0. In order
to workaround this, we use the compiler java to execute the build-tools
tests.

Closes elastic#49404
jaymode added a commit that referenced this issue Nov 22, 2019
The test task is configured to use the runtime java version, but there
are issues with the version of groovy used by gradle pre 6.0. In order
to workaround this, we use the Gradle JDK to execute the build-tools
tests.

Closes #49404
Closes #49253
jaymode added a commit to jaymode/elasticsearch that referenced this issue Nov 22, 2019
The test task is configured to use the runtime java version, but there
are issues with the version of groovy used by gradle pre 6.0. In order
to workaround this, we use the Gradle JDK to execute the build-tools
tests.

Closes elastic#49404
Closes elastic#49253
jaymode added a commit that referenced this issue Nov 22, 2019
The test task is configured to use the runtime java version, but there
are issues with the version of groovy used by gradle pre 6.0. In order
to workaround this, we use the Gradle JDK to execute the build-tools
tests.

Closes #49404
Closes #49253
jaymode added a commit that referenced this issue Nov 22, 2019
The test task is configured to use the runtime java version, but there
are issues with the version of groovy used by gradle pre 6.0. In order
to workaround this, we use the Gradle JDK to execute the build-tools
tests.

Closes #49404
Closes #49253
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team >test-failure Triaged test failures from CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants