Project

General

Profile

Actions

Bug #23

open

[ CTS ] Class initialization failure due to NoClassDefFoundError in MetadataTests.

Added by Billy Chen 7 days ago. Updated 7 days ago.

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

0%

Estimated time:
(Total: 0:00 h)

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


Subtasks 14 (14 open0 closed)

Bug #24: [Failure] CtsStatsdHostTestCases - android.cts.statsd.metadata.MetadataTests#testSystemServerLossErrorCodeNewNick Chuang12/02/2025

Actions
Bug #25: [Failure] CtsStatsdHostTestCases - android.cts.statsd.metadata.MetadataTests#testAtomIdLossDistributionCollectionNewNick Chuang12/02/2025

Actions
Bug #26: [Failure] CtsStatsdHostTestCases - android.cts.statsd.metadata.MetadataTests#testConfigTtlNewNick Chuang12/02/2025

Actions
Bug #27: [Failure] CtsStatsdHostTestCases - android.cts.statsd.metadata.MetadataTests#testSocketRateLimitingNewNick Chuang12/02/2025

Actions
Bug #28: [Failure] CtsStatsdHostTestCases - android.cts.statsd.metadata.MetadataTests#testAtomLossInfoCollectionNewNick Chuang12/02/2025

Actions
Bug #29: [Failure] CtsStatsdHostTestCases - android.cts.statsd.metadata.MetadataTests#testSystemServerLossErrorCodeNewNick Chuang12/02/2025

Actions
Bug #30: [Failure] CtsStatsdHostTestCases - android.cts.statsd.metadata.MetadataTests#testAtomIdLossDistributionCollectionNewNick Chuang12/02/2025

Actions
Bug #31: [Failure] CtsStatsdHostTestCases - android.cts.statsd.metadata.MetadataTests#testConfigTtlNewNick Chuang12/02/2025

Actions
Bug #32: [Failure] CtsStatsdHostTestCases - android.cts.statsd.metadata.MetadataTests#testSocketRateLimitingNewNick Chuang12/02/2025

Actions
Bug #33: [Failure] CtsStatsdHostTestCases - android.cts.statsd.metadata.MetadataTests#testAtomLossInfoCollectionNewNick Chuang12/02/2025

Actions
Bug #34: [Failure] CtsStatsdHostTestCases[instant] - android.cts.statsd.metadata.MetadataTests#testAtomIdLossDistributionCollectionNewNick Chuang12/02/2025

Actions
Bug #35: [Failure] CtsStatsdHostTestCases[instant] - android.cts.statsd.metadata.MetadataTests#testConfigTtlNewNick Chuang12/02/2025

Actions
Bug #36: [Failure] CtsStatsdHostTestCases[instant] - android.cts.statsd.metadata.MetadataTests#testSocketRateLimitingNewNick Chuang12/02/2025

Actions
Bug #37: [Failure] CtsStatsdHostTestCases[instant] - android.cts.statsd.metadata.MetadataTests#testAtomLossInfoCollectionNewNick Chuang12/02/2025

Actions
Actions #1

Updated by Billy Chen 7 days ago

  • Subtask #24 added
Actions #2

Updated by Billy Chen 7 days ago

  • Subtask #25 added
Actions #3

Updated by Billy Chen 7 days ago

  • Subtask #26 added
Actions #4

Updated by Billy Chen 7 days ago

  • Subtask #27 added
Actions #5

Updated by Billy Chen 7 days ago

  • Subtask #28 added
Actions #6

Updated by Billy Chen 7 days ago

  • Subtask #29 added
Actions #7

Updated by Billy Chen 7 days ago

  • Subtask #30 added
Actions #8

Updated by Billy Chen 7 days ago

  • Subtask #31 added
Actions #9

Updated by Billy Chen 7 days ago

  • Subtask #32 added
Actions #10

Updated by Billy Chen 7 days ago

  • Subtask #33 added
Actions #11

Updated by Billy Chen 7 days ago

  • Subtask #34 added
Actions #12

Updated by Billy Chen 7 days ago

  • Subtask #35 added
Actions #13

Updated by Billy Chen 7 days ago

  • Subtask #36 added
Actions #14

Updated by Billy Chen 7 days ago

  • Subtask #37 added
Actions

Also available in: Atom PDF