[ https://issues.apache.org/jira/browse/ARROW-9315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17150730#comment-17150730 ]
Liya Fan edited comment on ARROW-9315 at 7/3/20, 4:35 AM: ---------------------------------------------------------- This problem is related to the order of class loading: DefaultAllocationManagerOption#getDefaultAllocationManagerType => init DefaultAllocationManagerOption => DefaultAllocationManagerOption#getFactory => init NettyAllocationManager#EMPTY_BUFFER => init ArrowBuf => init BaseAllocator (line 74) => init DEFAULT_CONFIG => ImmutableConfig (constructor) => ImmutableConfig#getAllocationManagerFactory => BaseAllocator.Config#getAllocationManagerFactory => NPE was (Author: fan_li_ya): This problem is related to the order of class loading: DefaultAllocationManagerOption#getDefaultAllocationManagerType => DefaultAllocationManagerOption#getFactory => init NettyAllocationManager#EMPTY_BUFFER => init ArrowBuf => init BaseAllocator (line 74) => init DEFAULT_CONFIG => ImmutableConfig (constructor) => ImmutableConfig#getAllocationManagerFactory => BaseAllocator.Config#getAllocationManagerFactory => NPE > [Java] Fix the failure of testAllocationManagerType > --------------------------------------------------- > > Key: ARROW-9315 > URL: https://issues.apache.org/jira/browse/ARROW-9315 > Project: Apache Arrow > Issue Type: Bug > Components: Java > Reporter: Liya Fan > Assignee: Liya Fan > Priority: Major > > It appears sometimes in the CI build. > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.503 > s <<< FAILURE! - in org.apache.arrow.memory.TestAllocationManager > [ERROR] testAllocationManagerType Time elapsed: 0.483 s <<< ERROR! > java.lang.ExceptionInInitializerError > at > org.apache.arrow.memory.TestAllocationManager.testAllocationManagerType(TestAllocationManager.java:35) > Caused by: java.lang.NullPointerException: allocationManagerFactory > at > org.apache.arrow.memory.TestAllocationManager.testAllocationManagerType(TestAllocationManager.java:35) -- This message was sent by Atlassian Jira (v8.3.4#803005)