KEMBAR78
debug: repro of GraalVM problem with arrow 17' by diegomarquezp · Pull Request #3914 · googleapis/java-bigquery · GitHub
Skip to content

Conversation

@diegomarquezp
Copy link
Contributor

@diegomarquezp diegomarquezp commented Jul 31, 2025

Would fix #3926

This is just a reproducer, not meant to be merged.

GOOGLE_CLOUD_PROJECT=[your-project] time mvn -ntp -Pnative test -Dagent=true -Denforcer.skip -Dcheckstyle.skip '-Dtest=com.google.cloud.bigquery.it.ITBigQueryTest#testArrowForName'

Failures (3):
  JUnit Vintage:ConnectionImplTest:initializationError
    ClassSource [className = 'org.junit.runner.manipulation.Filter', filePosition = null]
    => java.lang.Exception: No tests found matching Unique ID [engine:junit-vintage]/[runner:com.google.cloud.bigquery.ConnectionImplTest]/[test:testArrowForName(com.google.cloud.bigquery.ConnectionImplTest)] from org.junit.vintage.engine.descriptor.RunnerRequest@305552d6
  JUnit Vintage:ITBigQueryTest:testExecuteSelectWithCredentials
    MethodSource [className = 'com.google.cloud.bigquery.it.ITBigQueryTest', methodName = 'testExecuteSelectWithCredentials', methodParameterTypes = '']
    => java.lang.NullPointerException
       com.google.cloud.bigquery.it.ITBigQueryTest.testExecuteSelectWithCredentials(ITBigQueryTest.java:3533)
       java.base@24.0.1/java.lang.reflect.Method.invoke(Method.java:565)
       java.base@24.0.1/java.util.concurrent.FutureTask.run(FutureTask.java:328)
       java.base@24.0.1/java.lang.Thread.runWith(Thread.java:1460)
       java.base@24.0.1/java.lang.Thread.run(Thread.java:1447)
       org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:832)
       org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:808)
  JUnit Vintage:ITBigQueryTest:testArrowForName
    MethodSource [className = 'com.google.cloud.bigquery.it.ITBigQueryTest', methodName = 'testArrowForName', methodParameterTypes = '']
    => java.lang.ExceptionInInitializerError
       java.base@24.0.1/java.lang.Class.ensureInitialized(DynamicHub.java:658)
       com.google.cloud.bigquery.it.ITBigQueryTest.testArrowForName(ITBigQueryTest.java:224)
       java.base@24.0.1/java.lang.reflect.Method.invoke(Method.java:565)
       java.base@24.0.1/java.util.concurrent.FutureTask.run(FutureTask.java:328)
       java.base@24.0.1/java.lang.Thread.runWith(Thread.java:1460)
       [...]
     Caused by: java.lang.RuntimeException: Unable to instantiate Allocation Manager for org.apache.arrow.memory.netty.DefaultAllocationManagerFactory
       org.apache.arrow.memory.DefaultAllocationManagerOption.getFactory(DefaultAllocationManagerOption.java:109)
       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)
       org.apache.arrow.memory.ImmutableConfig$InitShim.getAllocationManagerFactory(ImmutableConfig.java:83)
       [...]
     Caused by: java.lang.ClassNotFoundException: org.apache.arrow.memory.netty.DefaultAllocationManagerFactory
       org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:215)
       org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:183)
       java.base@24.0.1/java.lang.Class.forName(DynamicHub.java:1509)
       java.base@24.0.1/java.lang.Class.forName(DynamicHub.java:1468)
       java.base@24.0.1/java.lang.Class.forName(DynamicHub.java:1461)
       [...]

Test run finished after 12 ms

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/java-bigquery API. labels Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/java-bigquery API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GraalVM] Tests running into NoClassDefFoundError for RootAllocator

2 participants