GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [GraalVM] Tests running into NoClassDefFoundError for RootAllocator · Issue #3926 · googleapis/java-bigquery

This repository was archived by the owner on Aug 30, 2026. It is now read-only.
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

[GraalVM] Tests running into NoClassDefFoundError for RootAllocator #3926

Copy link
Copy link
Closed
Bug
#3928
Closed
[GraalVM] Tests running into NoClassDefFoundError for RootAllocator#3926
Bug
#3928
Copy link
Labels
api: bigqueryIssues related to the googleapis/java-bigquery API.priority: p2Moderately-important priority. Fix may not be included in next release.

Description

@mpeddada1
mpeddada1
opened on Aug 5, 2025
Issue body actions

This has been occurring since the previous release:

Failures (16):
  JUnit Vintage:ITBigQueryTest:testExecuteSelectWithCredentials
    MethodSource [className = 'com.google.cloud.bigquery.it.ITBigQueryTest', methodName = 'testExecuteSelectWithCredentials', methodParameterTypes = '']
    => java.lang.ExceptionInInitializerError
       [email protected]/java.lang.Class.ensureInitialized(DynamicHub.java:658)
       com.google.cloud.bigquery.ConnectionImpl$ArrowRowReader.(ConnectionImpl.java:1096)
       com.google.cloud.bigquery.ConnectionImpl$ArrowRowReader.(ConnectionImpl.java:1093)
       com.google.cloud.bigquery.ConnectionImpl.highThroughPutRead(ConnectionImpl.java:1034)
       com.google.cloud.bigquery.ConnectionImpl.getSubsequentQueryResultsWithJob(ConnectionImpl.java:880)
       [...]
     Caused by: java.lang.RuntimeException: No DefaultAllocationManager found on classpath. Can't allocate Arrow buffers. Please consider adding arrow-memory-netty or arrow-memory-unsafe as a dependency.
       org.apache.arrow.memory.CheckAllocator.assertOnlyOne(CheckAllocator.java:107)
       org.apache.arrow.memory.CheckAllocator.check(CheckAllocator.java:44)
       org.apache.arrow.memory.DefaultAllocationManagerOption.getDefaultAllocationManagerFactory(DefaultAllocationManagerOption.java:92)
       org.apache.arrow.memory.BaseAllocator$Config.getAllocationManagerFactory(BaseAllocator.java:824)
       org.apache.arrow.memory.ImmutableConfig.access$801(ImmutableConfig.java:24)
       [...]
  JUnit Vintage:ITBigQueryTest:testBQResultSetMultiThreadedOrder
    MethodSource [className = 'com.google.cloud.bigquery.it.ITBigQueryTest', methodName = 'testBQResultSetMultiThreadedOrder', methodParameterTypes = '']
    => java.lang.NoClassDefFoundError: Could not initialize class org.apache.arrow.memory.RootAllocator
       com.google.cloud.bigquery.ConnectionImpl$ArrowRowReader.(ConnectionImpl.java:1096)
       com.google.cloud.bigquery.ConnectionImpl$ArrowRowReader.(ConnectionImpl.java:1093)
       com.google.cloud.bigquery.ConnectionImpl.highThroughPutRead(ConnectionImpl.java:1034)
       com.google.cloud.bigquery.ConnectionImpl.getSubsequentQueryResultsWithJob(ConnectionImpl.java:880)
       com.google.cloud.bigquery.ConnectionImpl.queryRpc(ConnectionImpl.java:520)
       com.google.cloud.bigquery.ConnectionImpl.getExecuteSelectResponse(ConnectionImpl.java:254)
       com.google.cloud.bigquery.ConnectionImpl.executeSelect(ConnectionImpl.java:213)
       com.google.cloud.bigquery.it.ITBigQueryTest.testBQResultSetMultiThreadedOrder(ITBigQueryTest.java:3872)
       [email protected]/java.lang.reflect.Method.invoke(Method.java:565)
       [email protected]/java.util.concurrent.FutureTask.run(FutureTask.java:328)
       [...]
  JUnit Vintage:ITBigQueryTest:testBQResultSetPagination
    MethodSource [className = 'com.google.cloud.bigquery.it.ITBigQueryTest', methodName = 'testBQResultSetPagination', methodParameterTypes = '']
    => java.lang.NoClassDefFoundError: Could not initialize class org.apache.arrow.memory.RootAllocator
       com.google.cloud.bigquery.ConnectionImpl$ArrowRowReader.(ConnectionImpl.java:1096)
       com.google.cloud.bigquery.ConnectionImpl$ArrowRowReader.(ConnectionImpl.java:1093)
       com.google.cloud.bigquery.ConnectionImpl.highThroughPutRead(ConnectionImpl.java:1034)
       com.google.cloud.bigquery.ConnectionImpl.getSubsequentQueryResultsWithJob(ConnectionImpl.java:880)
       com.google.cloud.bigquery.ConnectionImpl.queryRpc(ConnectionImpl.java:520)
       com.google.cloud.bigquery.ConnectionImpl.getExecuteSelectResponse(ConnectionImpl.java:254)
       com.google.cloud.bigquery.ConnectionImpl.executeSelect(ConnectionImpl.java:213)
       com.google.cloud.bigquery.it.ITBigQueryTest.testBQResultSetPagination(ITBigQueryTest.java:4083)
       [email protected]/java.lang.reflect.Method.invoke(Method.java:565)
       [email protected]/java.util.concurrent.FutureTask.run(FutureTask.java:328)
       [...]

Activity

  1. product-auto-label
    added
    api: bigqueryIssues related to the googleapis/java-bigquery API.
    on Aug 5, 2025
  2. mpeddada1
    added the
    Bug
    issue type on Aug 5, 2025
  3. mpeddada1
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Aug 5, 2025
  4. diegomarquezp commented on Aug 11, 2025

    @diegomarquezp
    diegomarquezp
    on Aug 11, 2025
    Contributor
    More actions

    Minimal reproducer:

      @Test
      public void testArrowForName() throws Exception {
        final String clazzName = "org.apache.arrow.memory.netty.DefaultAllocationManagerFactory";
        try {
          BufferAllocator allocator = new RootAllocator(Long.MAX_VALUE);
          //java.lang.reflect.Field field = Class.forName(clazzName).getDeclaredField("FACTORY");
          //field.setAccessible(true);
          //System.out.println("OK");
        } catch (Exception e) {
          throw new RuntimeException("Unable to instantiate Allocation Manager for " + clazzName, e);
        }
      }

    Something is going on when building a new RootAllocator

    (This observation is implied in #3925 as well)

  5. diegomarquezp commented on Aug 11, 2025

    @diegomarquezp
    diegomarquezp
    on Aug 11, 2025
    Contributor
    More actions

    The following native-image.config makes the tests pass:

    Args = --add-opens=java.base/java.nio=ALL-UNNAMED \
      --initialize-at-build-time=org.apache.arrow.memory.BaseAllocator \
      --initialize-at-build-time=org.apache.arrow.memory.BaseAllocator$Config \
      --initialize-at-build-time=org.apache.arrow.memory.DefaultAllocationManagerOption \
      --initialize-at-build-time=org.apache.arrow.memory.netty.NettyAllocationManager$1
    

    Will now look for a reflection config approach

  6. diegomarquezp
    added a commit that references this issue on Aug 11, 2025

    fix: adapt graalvm config to arrow update

    f4ea354
  7. diegomarquezp
    closed this as completedin #3928on Aug 12, 2025
  8. diegomarquezp
    added a commit that references this issue on Aug 12, 2025

    fix: adapt graalvm config to arrow update (#3928)

    ecfabc4
  9. Talakh
    added a commit that references this issue on Nov 19, 2025

    ENG-686: update from main repo (#7)

    6e9b3f9
  10. lqiu96
    added a commit that references this issue on Mar 20, 2026

    fix: adapt graalvm config to arrow update (#3928)

    f147e01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigqueryIssues related to the googleapis/java-bigquery API.priority: p2Moderately-important priority. Fix may not be included in next release.

    Type

    Bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.