asfimport opened a new issue, #282:
URL: https://github.com/apache/arrow-java/issues/282

   When I run this simple code with JVM setting: "-Xmx64m"
   ```java
   
   package com.snowflake;
   import org.apache.arrow.memory.RootAllocator;
   
   public class TestArrow
   {
     public static void main(String args[]) throws Exception
     {
       new RootAllocator(Integer.MAX_VALUE);
     }
   }
   ```
   and got the following error
   ```java
   
   Picked up JAVA_TOOL_OPTIONS: 
-Djavax.net.ssl.trustStore=/etc/pki/ca-trust/extracted/java/cacerts
   Exception in thread "main" java.lang.ExceptionInInitializerError 
   at org.apache.arrow.memory.BaseAllocator.createEmpty(BaseAllocator.java:263) 
   at org.apache.arrow.memory.BaseAllocator.<init>(BaseAllocator.java:89) 
   at org.apache.arrow.memory.RootAllocator.<init>(RootAllocator.java:34) 
   at org.apache.arrow.memory.RootAllocator.<init>(RootAllocator.java:30) 
   at com.snowflake.TestArrow.main(TestArrow.java:13)
   
   Caused by: java.lang.NullPointerException 
   at 
io.netty.buffer.PooledByteBufAllocatorL$InnerAllocator.<init>(PooledByteBufAllocatorL.java:145)
 
   at 
io.netty.buffer.PooledByteBufAllocatorL.<init>(PooledByteBufAllocatorL.java:49) 
   at 
org.apache.arrow.memory.AllocationManager.<clinit>(AllocationManager.java:61) 
... 5 more
   Process finished with exit code 1
   ```
   So how to use RootAllocator in such low memory case?
   
   **Reporter**: [Andong Zhan](https://issues.apache.org/jira/browse/ARROW-6500)
   
   <sub>**Note**: *This issue was originally created as 
[ARROW-6500](https://issues.apache.org/jira/browse/ARROW-6500). Please see the 
[migration documentation](https://github.com/apache/arrow/issues/14542) for 
further details.*</sub>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to