Bug #23
open[ CTS ] Class initialization failure due to NoClassDefFoundError in MetadataTests.
0%
Description
Failure Analysis Report¶
Cluster Summary¶
| Property | Value |
|---|---|
| Cluster ID | #4 |
| Severity | High |
| Category | Test Case Issue |
| Confidence | 4/5 |
| Impact | 14 failures |
System Information¶
| Property | Value |
|---|---|
| Fingerprint | Trimble/T70/thorpe:15/AQ3A.250408.001/02.00.20.251106:user/release-keys |
| Build ID | AQ3A.250408.001 |
| Product | T70 |
| Model | T70 |
| Android Version | 15 |
| Security Patch | 2025-10-01 |
| Test Suite | CTS |
AI Analysis¶
Summary:
Class initialization failure due to NoClassDefFoundError in MetadataTests.
The test 'testSystemServerLossErrorCode' in the MetadataTests class of the CtsStatsdHostTestCases module failed due to a NoClassDefFoundError. This error indicates that the class 'android.aconfig.Aconfig$parsed_flag' could not be initialized, which often happens due to missing class files or issues in the classpath during test execution. The underlying cause appears to be related to the loading mechanism of the class from the Guava library's caching system, which failed to retrieve the required class.
Root Cause:
The 'android.aconfig.Aconfig$parsed_flag' class is either missing or has initialization issues, leading to NoClassDefFoundError.
Suggested Solution:
Verify that the 'Aconfig$parsed_flag' class is correctly included in the build and accessible in the test classpath. Rebuild the project if necessary. Additionally, check for any static initializers in the class for exceptions that might prevent normal initialization.
Technical Details¶
Stack Trace Signature:
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.HostFlagsValueProvide
Affected Test Cases¶
Failure 1¶
- Module:
CtsStatsdHostTestCases - Test Case:
android.cts.statsd.metadata.MetadataTests#testSystemServerLossErrorCode - 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.r
...
(truncated)
Failure 2¶
- Module:
CtsStatsdHostTestCases - Test Case:
android.cts.statsd.metadata.MetadataTests#testAtomIdLossDistributionCollection - 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.r
...
(truncated)
Failure 3¶
- Module:
CtsStatsdHostTestCases - Test Case:
android.cts.statsd.metadata.MetadataTests#testConfigTtl - 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.r
...
(truncated)
Failure 4¶
- Module:
CtsStatsdHostTestCases - Test Case:
android.cts.statsd.metadata.MetadataTests#testSocketRateLimiting - 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.r
...
(truncated)
Failure 5¶
- Module:
CtsStatsdHostTestCases - Test Case:
android.cts.statsd.metadata.MetadataTests#testAtomLossInfoCollection - 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.r
...
(truncated)
... and 9 more failures not shown