Project

General

Profile

Actions

Bug #29

open

Bug #23: [ CTS ] Class initialization failure due to NoClassDefFoundError in MetadataTests.

[Failure] CtsStatsdHostTestCases - android.cts.statsd.metadata.MetadataTests#testSystemServerLossErrorCode

Added by Billy Chen 7 days ago.

Status:
New
Priority:
Urgent
Assignee:
Start date:
12/02/2025
Due date:
% Done:

0%

Estimated time:

Description

Module: CtsStatsdHostTestCases
Test Case: android.cts.statsd.metadata.MetadataTests#testSystemServerLossErrorCode
Error Message:

com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: Could not initialize class android.aconfig.Aconfig$parsed_flag

Stack Trace:

com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: Could not initialize class android.aconfig.Aconfig$parsed_flag
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2083)
    at com.google.common.cache.LocalCache.get(LocalCache.java:4017)
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4040)
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4989)
    at android.platform.test.flag.junit.host.HostFlagsValueProvider.setUp(HostFlagsValueProvider.java:88)
    at android.platform.test.flag.junit.CheckFlagsRule$1.evaluate(CheckFlagsRule.java:46)
    at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
    at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
    at com.android.tradefed.testtype.DeviceJUnit4ClassRunner.runChild(DeviceJUnit4ClassRunner.java:111)
    at com.android.tradefed.testtype.DeviceJUnit4ClassRunner.runChild(DeviceJUnit4ClassRunner.java:63)
    at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
    at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
    at com.android.tradefed.testtype.DeviceJUnit4ClassRunner.run(DeviceJUnit4ClassRunner.java:151)
    at com.android.tradefed.testtype.junit4.ExceptionThrowingRunnerWrapper.run(ExceptionThrowingRunnerWrapper.java:43)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at com.android.tradefed.testtype.HostTest.runJUnit4Tests(HostTest.java:775)
    at com.android.tradefed.testtype.HostTest.runTestClasses(HostTest.java:655)
    at com.android.tradefed.testtype.HostTest.run(HostTest.java:603)
    at com.android.compatibility.common.tradefed.testtype.JarHostTest.run(JarHostTest.java:56)
    at com.android.tradefed.testtype.suite.GranularRetriableTestWrapper.intraModuleRun(GranularRetriableTestWrapper.java:454)
    at com.android.tradefed.testtype.suite.GranularRetriableTestWrapper.run(GranularRetriableTestWrapper.java:346)
    at com.android.tradefed.testtype.suite.ModuleDefinition.run(ModuleDefinition.java:648)
    at com.android.tradefed.testtype.suite.ITestSuite.runSingleModule(ITestSuite.java:1495)
    at com.android.tradefed.testtype.suite.ITestSuite.run(ITestSuite.java:1117)
    at com.android.tradefed.invoker.InvocationExecution.runTest(InvocationExecution.java:1538)
    at com.android.tradefed.invoker.InvocationExecution.runTests(InvocationExecution.java:1313)
    at com.android.tradefed.invoker.TestInvocation.prepareAndRun(TestInvocation.java:685)
    at com.android.tradefed.invoker.TestInvocation.performInvocation(TestInvocation.java:304)
    at com.android.tradefed.invoker.TestInvocation.invoke(TestInvocation.java:1522)
    at com.android.tradefed.command.CommandScheduler$InvocationThread.run(CommandScheduler.java:723)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class android.aconfig.Aconfig$parsed_flag
    at android.aconfig.Aconfig$parsed_flags$Builder.mergeFrom(Aconfig.java:10310)
    at android.aconfig.Aconfig$parsed_flags$1.parsePartialFrom(Aconfig.java:10613)
    at android.aconfig.Aconfig$parsed_flags$1.parsePartialFrom(Aconfig.java:10605)
    at com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:215)
    at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:232)
    at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:237)
    at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:48)
    at com.google.protobuf.GeneratedMessageV3.parseWithIOException(GeneratedMessageV3.java:346)
    at android.aconfig.Aconfig$parsed_flags.parseFrom(Aconfig.java:10101)
    at android.platform.test.flag.junit.host.DeviceFlags.getAconfigParsedFlags(DeviceFlags.java:173)
    at android.platform.test.flag.junit.host.DeviceFlags.getAconfigFlags(DeviceFlags.java:113)
    at android.platform.test.flag.junit.host.DeviceFlags.init(DeviceFlags.java:92)
    at android.platform.test.flag.junit.host.DeviceFlags.createDeviceFlags(DeviceFlags.java:73)
    at android.platform.test.flag.junit.host.HostFlagsValueProvider$1.load(HostFlagsValueProvider.java:53)
    at android.platform.test.flag.junit.host.HostFlagsValueProvider$1.load(HostFlagsValueProvider.java:45)
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3574)
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2316)
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2189)
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2079)
    ... 35 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalAccessError: class android.aconfig.Aconfig$parsed_flag tried to access method 'com.google.protobuf.LazyStringArrayList com.google.protobuf.LazyStringArrayList.emptyList()' (android.aconfig.Aconfig$parsed_flag and com.google.protobuf.LazyStringArrayList are in unnamed module of loader 'app') [in thread "Invocation-DBB252400014"]
    at android.aconfig.Aconfig$parsed_flag.<init>(Aconfig.java:7544)
    at android.aconfig.Aconfig$parsed_flag.<clinit>(Aconfig.java:9849)
    ... 54 more

No data to display

Actions

Also available in: Atom PDF